2

I've got a DEM ("ASTER_Nepal.tif") and a slope ("ASTER_Slope.tif") and am trying to create a new raster for elevation values between 2000 & 7000m and between 5 & 60 degree slope. I've tried to use the raster calculator but the expression escapes me and I cannot get it to work!

  • 3
    Can you include the expression that you have so far (that isn't working)? :) – Erica Dec 17 '15 at 18:55
3

Con(((ASTER_Nepal.tif > 2000) & (ASTER_Nepal.tif <7000)) & ((ASTER_Slope.tif >5) & (ASTER_Slope.tif<60)),1,0)

It is however, advisable to change your tif files into ESRI grid before doing raster calculations. Also the above gives you a raster with value 1 for the conditions you set above and 0 if it doesn't meet the criteria. You can choose what values to give the true and false statement.

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.