AnsweredAssumed Answered

Con Statement issue in Raster Calculator

Question asked by jhalligan on Feb 3, 2016
Latest reply on Feb 3, 2016 by jhalligan

Can anyone solve this issue:


I need to create a new raster that will have 3 different values based on 2 other rasters.  Here is what I have:


Con((0.0005*"velocity"^3-0.0204*"velocity"^2-0.0094*"velocity"+5.9262)<"depth", 30, Con("depth"<(0.0002*"velocity"^3-0.0099*"velocity"^2-0.0337*"velocity"+2.9758), 20),10)


in short it should be something like this

con((equation)< depthraster,10, con(depthraster<(equation2), 20, 100))


So if equation 1 is less than the depth raster, make those values "10"

If Depth Raster is less than equation 2, make those values "20"

If neither are true, make those values "100"


I am only getting 2 out of the 3 values.  The values that are coming out as "10" are correct but there is no differentiation between the other two.