I'm using the expression below to try convert all the values that are negative or equal to zero to NoData
SetNull("cov_fdg_ct" <= 0,"cov_fdg_ct")
But it failed to execute with the error message below:
Executing: RasterCalculator SetNull("cov_fdg_ct" <= 0,"cov_fdg_ct") "E:\GIS Data\Thesis modeling\FloodDepthGrids\cov_fdg_c" Start Time: Fri Jun 12 17:49:33 2015 SetNull("cov_fdg_ct" <= 0,"cov_fdg_ct") ERROR 000539: Error running expression: rcexec() Traceback (most recent call last): File "<expression>", line 1, in <module> File "<string>", line 5, in rcexec File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\sa\Functions.py", line 320, in SetNull where_clause) 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 309, in Wrapper ["SetNull", in_conditional_raster, in_false_raster_or_constant]) RuntimeError: ERROR 000732: Input Raster: Dataset cov_fdg_ct does not exist or is not supported Failed to execute (RasterCalculator). Failed at Fri Jun 12 17:49:34 2015 (Elapsed Time: 0.16 seconds)
I've been reading many posts from those who also got the ERROR 000539 and most of them seem to be due to a syntax error. However, I can't seem to figure out what syntax error is in my simple expression. It would be much appreciated if you can provide some advice!