I'm working with MOD-16-evapotranspiration and I have a problem. I made a composition 180 bands, but in this images I have predefined high values(such as 32767, 32765..). So, I would like to hide this values for all 180 bands. I'm working with QGIS software.
This is achievable using
gdal_calc.py, which should be accessible if you have Qgis installed.
The basic format of the
gdal_calc.py call would be:
gdal_calc.py -A path_to_raster --allBands=A \ --calc="A * (A < threshold) + nodata * (A >= threshold)" \ --outfile=path_to_new_raster --NoDataValue=nodata
threshold is a value above which the data will be hidden
nodata is the value that will be written to the masked pixels
calc option may need to be more complex than this if you already have
NoData values in the raster, but you should be able to understand the logic. The boolean results within the
calc argument are essentially 1 and 0 which makes the multiplication work.
See also this question which shows some more advance logic.