1

How does one manually change STATISTIC_MIN/STATISTIC_MAX metadata within a raster band using gdal?

I want to preserve the color scale but ensure that the STATISTIC values are set as needed.

1

1 Answer 1

1

Use gdal_edit.py -unsetstats your_raster_file arg to remove existing stats, then gdalinfo -stats your_raster_file to recalculate them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.