AnsweredAssumed Answered

con function use in the raster calculator

Question asked by mstrager99 on Jan 20, 2011
Latest reply on Dec 2, 2011 by curtvprice
Ok, I am trying to use the con function in ArcGIS 10 raster calculator on a grid called "slopeperc" which is a floating point grid.

I want to change all values in "slopeperc" that are < 20 to 0 and if > 60 I want them to be 1.   All other values should be subject to the equation ("slopeperc" -20) / 40.  My resulting grid should be something that ranges from 0 to 1.

Thanks for your help!

Oh, this is what I have tried but can't figure out why I get an ERROR 000539 message and an output raster with nothing added to my table of contents.

Con("slopeperc" < 20, 0, con("slopeperc" > 60, 1, "slopeperc" - 20 / 40))

Outcomes