Elevation between two different heights

571
2
12-04-2012 01:13 PM
WillBooth
New Contributor
Hi,

Apologies if this is posted in the incorrect section of the forums.

I am having difficulties, when trying to determine the heights between 1200m and 1500m, with the coding.

I have tried various variations of:

"DEM" >= 1200 & "DEM" <= 1500"

Sorry if this isn't clear at all, fairly new to GIS as you can probably tell.

Thanks in advance.
Tags (2)
0 Kudos
2 Replies
MarcinGasior
Occasional Contributor III
If you just want to identify raster cells with those values range use the following expression in Raster Calculator:
("DEM" >= 1200) & ("DEM" <= 1500)

This gives a raster with values 0 and 1, where 1 indicates cells with values in given range.

If you want to extract the part of a raster where cell values are in your range, use:
Con(("DEM" >= 1200) & ("DEM" <= 1500), "DEM")
0 Kudos
DarrenWiens2
MVP Honored Contributor
Another method (among many more, I'm sure) is to use the Image Analysis Window:
1.) Open Image Analysis Window
2.) Select your elevation raster in the top section of the window
3.) Click Add Function button under Processing
4.) Right-click your elevation raster in the Raster Function Editor pop-up. Choose Insert->Mask function.
5.) Enter the minimum (1200) and maximum (1500) values you're interested in.
6.) That's it.
0 Kudos