i have 3 classified rasters and i wanted to use the following query from r. calculator:

(rclslope>=45) & (rclmosaic>=2000) & (rclfocal>15)

to arcpy. How can i write it? Is it better to use local - combine tool with arcpy to do it?

I am using ArcGis 10.2


with arcpy

import arcpy
from arcpy.sa import *

out = (Raster("rclslope")>=45) & (Raster("rclmosaic")>=2000) & (Raster("rclfocal")>15)
  • thank you very much, i had a problemwith spaces and i solved it – por.bet Mar 17 '15 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.