[Gdal-dev] Change indicated colour maps into gray gradient
Frank Warmerdam
warmerdam at pobox.com
Wed Sep 12 09:45:14 EDT 2007
shortyII wrote:
> Hi,
>
> Is it possible to use GDAL to change a GeoTIFF from
> indicated colour to a gray gradient?
>
> I've looked at doc and e-mail archives for several hours but I haven't
> found anything yet - hoping someone can spend 30 seconds on the answer!
Shorty II,
The easiest way to accomplish this is to translate to a format that does
not support palettes, and then back to GeoTIFF.
eg.
gdal_translate your.tif -of FIT your.fit
gdal_translate your.fit your.tif
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 | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list