Thursday, 7 November 2019

arcgis desktop - Getting Error 000539 from Raster Calculator?


I am new to Arc and 10.2 but can not seem to figure out why this won't work.


Executing: RasterCalculator Con(("SLOPE_SLO.tif"  >=  .015) & ("SLOPE_SLO.tif" <= .15,1,0)) D:\GEOG_480\Final2\RastCalSlope

Start Time: Tue Jul 29 22:24:21 2014
Con((Raster(r"SLOPE_SLO.tif") >= .015) & (Raster(r"SLOPE_SLO.tif") <= .15,1,0))
ERROR 000539: Error running expression: rcexec()
Traceback (most recent call last):
File "", line 1, in
File "", line 5, in rcexec
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 3620, in BooleanAnd
in_raster_or_constant2)
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Utils.py", line 47, in swapper
result = wrapper(*args, **kwargs)

File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 3617, in Wrapper
["BooleanAnd", in_raster_or_constant1, in_raster_or_constant2])
TypeError: expected a raster or layer name

Failed to execute (RasterCalculator).
Failed at Tue Jul 29 22:24:21 2014 (Elapsed Time: 0.02 seconds)


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...