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.

bumped to the homepage by Community 2 days ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

0

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, privacy policy and cookie policy

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