The Spatial Analyst > Conditional > Con Python snippet from Results window uses incorrect syntax.
Last Published: August 25, 2014ArcGIS for Desktop
Bug ID Number
NIM078805
Submitted
March 2, 2012
Last Modified
June 5, 2024
Applies to
ArcGIS for Desktop
Version found
10.0
Version Fixed
10.1
Status
Fixed
The bug has been fixed. See the Version Fixed and Additional Information, if applicable, for more information.
Additional Information
Fixed in 10.1
Workaround
Correct syntax may be one of the following.:<a href="http://arcpy.gp" target="_blank">arcpy.gp</a>.Con_sa("arelev","1","//chipotle2/ESRI_Test/Open/1015017_python/ConPython","0","VALUE < 1840")<a href="http://arcpy.gp" target="_blank">arcpy.gp</a>.Con("arelev","1","//chipotle2/ESRI_Test/Open/1015017_python/ConPython","0","VALUE < 1840")myRaster = <a href="http://arcpy.sa" target="_blank">arcpy.sa</a>.Con("arelev","1","0","VALUE < 1840")