Use gdal_calc.py . Example:
gdal_calc.py -A crop.tif
read as: `taking into account the input -A (crop.tif), with the output level 0100.tif, when the pixel has the value of the first strip A> 100, the value is set to 100. Else is set to 0.
Inside --calc="" you can set other conditions. If you want to set values ββlike 100 <v <200 to 100, then:
gdal_calc.py -A crop.tif
must work. (this last one has not been tested)
source share