3

I have a raster with elevations above 2000m that I want to "cut" to 1800m.

I cannot quite figure out the correct string and most simple way to do this in the ArcGIS 9.3 raster calculator.

I tried to ceiling function without much luck; would an expression similar to IF([my_raster]>2000,1800,[my_raster]) do the trick?

  • 1
    You might be looking for con. – whuber Apr 2 '13 at 17:45
16

You can use a conditional (Con) statement in the raster calculator or the con tool in ArcToolbox. The below statement is evaluated as [IF myrasters > 2000 THEN 1800 ELSE myraster]

Con("myraster" > 2000, 1800, "myraster")
  • Cheers! Con([myraster] > 2000, 1800, [myraster]) worked perfectly. Thank you!! – Peter Apr 3 '13 at 7:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.