spredar

ArcGIS 10 python script and raster calculator

Discussion created by spredar on Oct 28, 2010
Latest reply on Oct 28, 2010 by fperks
Export this from a working model,

    arcpy.gp.RasterCalculator_sa("\"%Temp Raster%\" * 3.28083", Output_Raster)

but throws this error,

Traceback (most recent call last):
  File "C:\Temp\bs2.py", line 37, in <module>
    arcpy.gp.RasterCalculator_sa("\"%Temp Raster%\" * 3.28083", Output_Raster)
  File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\geoprocessing\_base.py", line 474, in <lambda>
    return lambda *args: val(*gp_fixargs(args))
ExecuteError: ERROR 000539: Error running expression: rcexec() <type 'exceptions.TypeError'>: can't multiply sequence by non-int of type 'float'
Failed to execute (RasterCalculator).

Outcomes