I would like to write a condition in ArcGIS 10.1 in Raster calculator.
I have 2 overlapping rasters (Ras1.img, Ras2.img) with different attributes in attribute table:
- Ras1.img: Class - results of supervised maximum likelihood classification
- Ras2.img: Att - landuse, raster converted from shapefile polygon format
I want to change pixel values Class in Ras1.img based on the values in Att, Ras2.img. something like:
if ((Ras1.img, Class == 20 & Ras2.img, Att == 5), then change Class value 20 in Ras1.img to Class 25))
I can't figure that out. It is super simple in R, but I have no idea how to make it in ArcGIS 10.1.
I was trying to figure that out by : http://resources.arcgis.com/en/help/main/10.1/index.html#//009z000000zn000000
and applying something like:
Con(("landuse1" == 1) & ("landuse2" == 5), "landuse1" + "landuse2", 99)
but I don't understand where I specify the attributes of my rasters I would like to change?