AnsweredAssumed Answered

raster operations in python

Question asked by rrasterr on Mar 25, 2012
Latest reply on Mar 26, 2012 by curtvprice
How can I sum two rasters and after reclassify the value field of the result according to the value of both input rasters ?

I can do the outPlus = Plus(inRaster1, inRaster2)
after I can do a loop for each row in outPlus

rows = arcpy.SearchCursor(outPlus)
fields=arcpy.ListFields(outPlus)
for row in rows:
    for field in fields:
         (...)

How do I grab the row value that are in inRaster1 and inRaster2 from inside the loop ?
I want to do something like: if (inRaster=1 and inRaster2=8): new.row.value="area under development"

Outcomes