gdal_calc.py -A input.tif --outfile=output.tif \
--calc="(A>-32767)*A" --NoDataValue=0.00000 \
--co=COMPRESS=DEFLATE --co=PREDICTOR=3 
Description :

If the value A (used for the default raster pixel value, B can also be used if there is a second raster) is greater than -32767 (Global Mapper automatically assigns this value), it returns 1 and multiplies by itself (A). 0.00000 is given as --NoDataValue. If the raster type is integer, 0 can also be used.

Example :

2025 Mar