Same problem for me.
Exporting a tool that works well in Model builder to Python and running it as a script produces this error.
Band_1 = "D:\\tmp\\raster.png\\Band_1"Band_2 = "D:\\tmp\\raster.png\\Band_2"Band_3 = "D:\\tmp\\raster.png\\Band_3"
# Process: Raster Calculator (Raster Calculator) (ia)ap_tmpCon = "D:\\tmp\\lcFromRaster.gdb\\ap_tmpCon"Raster_Calculator = ap_tmpConap_tmpCon = Con((Band_1 == 176) & (Band_2 == 176) & (Band_3 == 176), 1, 0)ap_tmpCon .save(Raster_Calculator)
gets me the same error. I assume its a but with the Con function in arcpy.ia .
Any ideas how to fix?
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.