AnswerBun.com

Deleting values less than 0.31 in NDVI raster layer in QGIS

In my research I have a Ndvi raster layer, and I want to delete the values corresponding to bare soil, which are those minor of 0.31. Therefore, I will obtain a new raster layer with those values higher or equal to 0.31.

Could anybody help me with this?

I am using QGIS.

Geographic Information Systems Asked on December 8, 2021

2 Answers

2 Answers

You cant delete values in a raster but you can set them to no data.

  1. Set values <0.31 to -5 and all other to the ndvi raster values using Raster calculator: ("[email protected]"<0.31)*-5 + ("[email protected]">=0.31)*"[email protected]"

enter image description here

  1. Translate and set no data value to -5 enter image description here Result: enter image description here

(See: How to set all pixels with value <= 0 to "nodata" in DEM raster?)

Answered by BERA on December 8, 2021

Use the Reclassify by Table on your NDVI layer where all values less than or equal to 0.31 get values of -9999 and all other values get a value of 1. Ensure -9999 is the no data value in the Reclassify by Table tool. Then, use the raster calculator to multiply you newly reclassified output by the original NDVI. The resulting layer will have no data values anyplace there was a 0.31 or less value and the original NDVI value if greater. Here is a link to the reclassify by table tool.

Answered by GBG on December 8, 2021

Add your own answers!

Related Questions

Issue while adding layer as QGIS

1  Asked on November 1, 2021

   

How to export a table in a geopackage

1  Asked on November 1, 2021

   

QGIS: data defined position of bar diagram

1  Asked on November 1, 2021

   

Can I copy files using QGIS browser?

1  Asked on November 1, 2021

   

How to read geometry from gpkg?

1  Asked on November 1, 2021

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.