[GIS] Using Raster calculator in Modelbuilder ArcGis 10

arcgis-10.0arcgis-desktoperror-000539modelbuilderraster-calculator

I am using Modelbuilder to calculate several rasters with different parameters for each grid cell. One of the final steps is to calculate the log of one of the rasters using Raster calculator. Unfortunately, I get the error at that last final step:

ERROR 000539: Error running expression: rcexec() Traceback (most
recent call last): File "", line 1, in File
"", line 5, in rcexec TypeError: cannot concatenate 'str' and
'int' objects

Failed to execute (Raster Calculator).

My model looks that way:

enter image description here

I use the raster calculator to compute the ln
enter image description here

I can imagine that one of the reasons is that the arrow to the "raster calculator" is not solid. But I dont know why. The rasters derived from the previous step are fine. When using raster calculator outside modelbuilder to do that last step, all works fine. I am a bit at a loss here.

enter image description here

Best Answer

Definitely need to rename your model elements so they don't have percent signs in the element name. That will definitely break the parsing in the raster calculator!

Note, the value of the element can have percent signs in it, but the element name/label cannot have percent signs.

Related Question