what happens if i have to make a add opperation like the one i mentioned earlier e. soil.Ph + vegetation.Ph can i do this on the calculator or do i have to make more steps?
I didn't see a direct answer to this in the thread, so here's how you do that in one step using the Raster Calculator tool in ArcMap:("soil" and "vegetation" are two raster layers, both with a raster table field "ph")Lookup("soil","ph") + Lookup("vegetation","ph")
In arcpy scripting, you may have to access the rasters by pathname. Here's how that works:
from arcpy.sa import *
arcpy.env.workspace = "D:/myfolder"
# "soil.img" and "vegetation.img" are in this folder
# the Raster function is used to convert the path strings to a raster object
phsum = Lookup(Raster("soil.img"),"Ph") + Lookup(Raster("vegetation.img"),"ph")
phsum.save("phgrid") # save to Esri grid D:\myfolder\phgrid