Redefine Nodata Value to Zero in QGIS – Handling Imagery Nodata

imagerynodataqgis

I have an image which I clipped with an AOI polygon. The contour area was set to pixel value = 0 and I have a nodata value of -32768. I want to redefine the nodata value into zero. I used to do this with ArcMap easily in the raster calculator, but in QGIS I don't see how I could do it. Any ideas?

Best Answer

In QGIS, you can use Raster Calculator with the following calculation:

("your_raster" != -32768) * "your_raster"

With this calculation, if the cell value is -32768 you will get a 0 in that cell and if it is different from -32768 the cell will keep the value it had.