Hello,
I have forgotten how to express in the Raster Calculator, that I want elevations " 35m through 100m" from a raster.
Any help is appreciated, also if there is an example reference guide somewhere, please feel free to share.
Thanks
Phil
Did you 'type' the expression? Always select the grid from the list of layers and variables, then select the operands and numbers like on a calculator. In that way, the expression will be correct.
Try
Con((bells >= 3150) & ( bells < 3400), 1, 0)
no typing... except for the grid name... and try a *.tif in a folder rather than a geodatabase (ie c:\GISwork\...\rast6.tif
("Elev" > 35) and ("Elev" < 100)
or whatever... you grid AND you must reuse the grid's name for both conditions, you can't do "Elev" > 35 and < 100
Thanks!
Philipp, no problem... but if it works, mark the question answered so others will know a solution was found
Almost forgot this related and similar thread
https://community.esri.com/thread/214639-what-is-the-proper-syntax-for-pulling-elev-ranges-in-raster-calculator
I wish I could say it worked, but it did not. I tried a few other options like using "&" etc., but did not find a combination that worked. I also tried the instructions in the link you provided. Thanks again. (p.s. the other two rasters are just simple queries made from "bells" < 3000 and "bells" > 3500. "bells" is a DEM just to clarify.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.