[gdal-dev] scale in gdal_translate

Frank Warmerdam warmerdam at pobox.com
Tue Jan 19 16:53:03 EST 2010


Shawn GONG wrote:
> hi Frank and list,
> 
> Does gdal_translate do individual band scaling ?
> i.e. gdal_translate -b 1 -scale [min1 max1] -b 2 -scale [min2 max2] -b 3 
> -scale [min3 max3]

Shawn,

No, you would need to scale them to individual files, and then restack them.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the gdal-dev mailing list