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

420
1
05-08-2018 06:28 AM
SimbarasheKapfumo
New Contributor

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


0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

See your other post

0 Kudos