AnsweredAssumed Answered

Raster calculator error in Model builder

Question asked by gcaspar on Sep 5, 2014

I want to perform a raster calculation over and over again, about 300 times, adding rasters that all end in the same number.  There are 3 sets of suitability rasters – gwv, sac and spa.  These have each been multiplied 300 times, by certain weights, resulting in wt_gwv%n%, wt_sac%n% and wt_spa%n%, where %n% is 0 - 300.  I now want to add the three rasters that end with the same number. 


I am using the raster caculator, adding the rasters that end with the same %n%, but when I run it, I get the error:

ERROR 000539: Error running expression: rcexec()

Traceback (most recent call last):

  File "<expression>", line 1, in <module>

  File "<string>", line 8, in rcexec

AttributeError: 'str' object has no attribute 'save'


I am not familiar with python, as I know this would probably be simple to do that way. How do I get around this issue using the raster caculator in Model Builder?