Select to view content in your preferred language

get field value output in raster calculator

2159
0
05-27-2014 06:09 AM
frans-joostboogert
New Contributor
Good afternoon everyone,
I´m not sure if this is the right place for this post so if it isn´t please tell me.

I have a problem trying to get values from an excel sheet to batch process landsat images.
So far I managed to create tables for specific images and bands. This in order to use these namd specific values in the raster calculator using the get field value command in the modelbuilder. This also seems to work, but when I try to use the raster calculator it gives me the following message:

Executing (Raster Calculator): RasterCalculator ""0,012301" * "l8_10c1" * "-61,50382"" E:\10m_cas\Temp\L8_1_SR_B1
Start Time: Tue May 27 14:35:23 2014
"0,012301" * Raster(r"l8_10c1") * "-61,50382"
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\arcgis\desktop10.1\arcpy\arcpy\sa\Functions.py", line 4049, in Times
    in_raster_or_constant2)
  File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\sa\Utils.py", line 47, in swapper
    result = wrapper(*args, **kwargs)
  File "c:\program files\arcgis\desktop10.1\arcpy\arcpy\sa\Functions.py", line 4046, in wrapper
    return _wrapLocalFunctionRaster(u"Times_sa", ["Times", in_raster_or_constant1, in_raster_or_constant2])
RuntimeError: ERROR 000732: Input Raster: Dataset 0,012301 does not exist or is not supported

Failed to execute (Raster Calculator).
Failed at Tue May 27 14:35:25 2014 (Elapsed Time: 2,00 seconds)


Is there anyone who knows how to define the values as float? I suspect this is the problem but I´m not sure.
The expression used is like this:
%LM% * Raster * %AL%
with LM and AL being the result of get field value functions.
0 Kudos
0 Replies