Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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?

share|improve this question
    
You might be looking for con. –  whuber Apr 2 '13 at 17:45
    
Thank you - yes! –  Peter Apr 3 '13 at 7:28
add comment

1 Answer

up vote 11 down vote accepted

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")
share|improve this answer
    
Cheers! Con([myraster] > 2000, 1800, [myraster]) worked perfectly. Thank you!! –  Peter Apr 3 '13 at 7:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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