Hi all,
I would like to know if there is a way to perform a conditional raster calculation between two layers A and B.
I would like to have the following conditions:
If (inRastA <= 43) (condition 1) and (inRastB> = 42) (condition2) and (inRastA+inRastB <= 85) (condition3), then the result is (ouRast = 86), otherwise (inRastA+inRastB).
How can I write this statement within the Raster Calculator?
Below the same example written in Excel
=IF(And(A1<=43; B1>=42; O1<=85);86;O1+B1)
Regards!
Solved! Go to Solution.
Hi Dan,
Sorry to mislead you. The first condition is what my colleague has done in Excel using the non kriged data. She just wanted to provide the syntax of a conditional request to Excel as an example. I was afraid that it induces the readers into error, but she insisted ...
But in reality, it is probably the second case we would like to evaluate the three conditions from two rasters provided, in my previous post
Regards.
Dan,
What we want to achieve is to overlay two raster grids with using 3 conditions mentioned in the second stament you pointed out. Looking to your first check statement logic, I think this logic summerize the Con statement that Kishore suggest.
But can't figure out how to achieve this using Spatial Analyst Con staement.
Regards.