[gdal-dev] Change the min and max value of raster image in gdal

Andre Joost andre+joost at nurfuerspam.de
Tue Feb 3 07:26:10 PST 2015

Am 03.02.2015 um 09:52 schrieb user_name:
> I want to change the min and max value of my raster images since its min and
> max values are always negative(e,g. -1, -1; -3.2, -3.2). What if I want to
> change that into -1 as the min value and 1 as the max value? Any idea?
> Thanks!

Add 2.1 to all your values, then divide by 1.1.

André Joost

More information about the gdal-dev mailing list