[gdal-dev] gdal_translate to get rid of 3th band:

John Mitchell mitchelljj98 at gmail.com
Fri Apr 10 11:11:30 EDT 2009


Hi,
When running gdal_translate to get rid of the 3th band of a 3 band RGB
geotiff image:

gdal_translate -b 1 -b 2 sourcefilename outputfilename

It got rid of the 3rd band but it made the first band gray and the second
band undefined which caused the new geotiff to be gray.

How can I keep the color of the first 2 bands when getting rid of the 3rd
band

Thanks,

John Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090410/16689959/attachment.html


More information about the gdal-dev mailing list