[gdal-dev] RGB bands
Emilio de Torres Fernández
emilio.detorres at fueca.es
Wed Mar 30 03:44:04 EDT 2011
Thanks Chaitanya,
I did
$ gdal_translate src.tif dst.tif -b 3 -b 2 -b 1 co PHOTOMETRIC=RGB
to create the new GeoTIFF with the order of the bands modified and the
color interpretation assigned to them.
Best regards.
El mar, 29-03-2011 a las 17:13 +0530, Chaitanya kumar CH escribió:
> Emilio,
>
> You can create a new GeoTIFF with just the three bands you need using
> gdal_translate utility with the -b option.
> http://www.gdal.org/gdal_translate.html
>
> 2011/3/29 Emilio de Torres Fernández <emilio.detorres at fueca.es>
> Hello,
>
> I have a GeoTIFF image with 5 bands and I need to transform it
> to a
> GeoTIFF with these values:
> - Red = band 3.
> - Green = band 2.
> - Blue = band 1.
>
> How can I do that? Would I need to delete bands 4 and 5?
>
> Best regards.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
> /tʃaɪθənjə/ /kʊmɑr/
> +91-9494447584
> 17.2416N 80.1426E
More information about the gdal-dev
mailing list