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.

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

share|improve this question
    
How about creating an unsigned 8+ bit raster? –  Aaron Nov 6 '12 at 15:29
add comment

2 Answers

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

share|improve this answer
    
That's exactly what I needed - thought it would be an easy one! Thanks! –  Ed Rollason Nov 6 '12 at 15:26
add comment

Haven't tested it, but the "Sieve" function in the QGIS raster menu (gdal tools) should output a raster containing only values up to a specific value.

share|improve this answer
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.