AnsweredAssumed Answered

raster calculator from model builder to python returning error " 'int' object has no attribute 'save"

Question asked by simbakapfumo@gmail.com on May 8, 2018
Latest reply on May 8, 2018 by Dan_Patterson

hie there.

I used model builder to automate my work flow. in the model i used raster calculator tool and it worked perfectly well. when i exported the model to a python scripted, it returned and error : 'int' object has no attribute 'save'. 

Is there  a way of correcting the code or an alternative. the code is below. Thank you.

arcpy.gp.RasterCalculator_sa("(\"%FlowAcc%\" > 5000)", Rstream)
i want to select all Flow Accumulation values greater than 5000 and save them to Rstream


Outcomes