Monday 26 September 2016

QGIS - extract raster values greater than 0


How can I extract values > 0 from an overall raster?


I have a water level grid and a DTM from which I've derived flood depths (using the raster calculator) but obviously the final result contains negative values where there is no flooding.


I want to remove these values (or set them to null) just leaving the positive flood depths.


Many thanks



Answer



You can use the Raster Calculator for this, see "Using a Mask" here


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...