

Return _wrapLocalFunctionRaster(u"Con_sa", ) Learn more about validating table and field names. Consider using either the ValidateTableName or ValidateFieldName function to ensure your name is valid. ArcPy methods exist that allow you to validate table and field names. For instance, consider using an underscore () in place of a space. Xecuting: RasterCalculator Con("narr_grid_Clip" = 1,"sc_neg15") H:\ajm236.gdb\rastercalc3Ĭon(Raster(r"narr_grid_Clip") = 1,Raster(r"sc_neg15"))ĮRROR 000539: Error running expression: rcexec()įile "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\sa\Functions.py", line 240, in Conįile "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\sa\Utils.py", line 47, in swapperįile "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\sa\Functions.py", line 225, in wrapper Solution Alter the name to remove any invalid characters. You might prefer to try using map algebra instead. I figure it will be easier to debug the small version, and then apply it to the larger one as a whole.Ĭon("narr_grid_Clip" = 1,"sc_neg15") Is it possible that you have called a raster calculator operation from model builder via a python script, or directly from python In that case the next link might be useful, as it seems that arcmap cant preform raster calculator called from a python script. I have trimmed it down to just the part dealing with sc_neg15, but the error remains exactly the same. The calculation I am trying to run is very long, but repetitive with other layers similar to sc_neg15 that correspond to other values of narr_grid_Clip. The second (sc.) only has data when the first is equal to 1. Click the ArcGIS Spatial Analyst dropdown arrow and click Options. Alternatively, specify a cell size in the Cell Size tab of the Options dialog before performing an operation in the Raster Calculator using a mask. The first (narr.) has values ranging from 1 to 10. Solution or Workaround This is fixed in ArcGIS 8.1 Service Pack 1. I have 2 rasters, narr_grid_Clip and sc_neg15. aux files for this raster.I am getting an error running raster calculator that I can't figure out. In the default case, the nearest neighbor assignment resampling technique is used. It is also advisable to inspect the raster proxy folder for any conflicting or corrupt. When multiple raster datasets are input into any ArcGIS Spatial Analyst extension tool and their resolutions are different, one or more of the input datasets will be automatically resampled to the coarsest resolution of the input datasets. If the new raster does not return this error, and it is necessary to maintain the original raster in it's original location, delete or rename the.

Add the new raster to ArcMap or preview it in ArcCatalog.
Arcmap raster calculator invalid script error windows#

Refer to the Related Links for other solutions for this error.Īn error occurs when attempting to add a raster dataset into ArcMap:

Later versions of ArcGIS may contain different functionality, as well as different names and locations for menus, commands and geoprocessing tools. The content in this article pertains to ArcGIS versions 8.x and 9.x only.
