2

I have a CHM model (raster) with values -10 up 100.

I need to reclassify values as:

  • value < 0 => 0
  • 0 < value < 50 => the same value
  • value > 50 => 0

I tried so many tools, but I cannot find the correct way. Do you have any ideas?

1
  • 1
    Try Raster Calculator
    – Bera
    Commented Mar 18, 2019 at 7:36

1 Answer 1

4

You can use Raster Calculator with the following formula:

(("RasterFile@1" >  0) AND ("RasterFile@1" < 50)) * "RasterFile@1"

The above expression will produce a raster data with pixel values of more than Zero and less than 50 as they are (No change in pixel values). Other pixel values will be Zeros.

You need to replace RasterFile in the expression above with the correct name of the raster data that you have in the Raster Calculator.

1
  • Thank you so much! It works perfectly!
    – Slunicko
    Commented Mar 18, 2019 at 9:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.