[GRASS-dev] r.out.gdal and 3-band export?

Hi,

I wonder how complicated it would be to hack r.out.gdal to
also export 3-band TIFFs etc.

Markus

Hi Markus,

I wonder how complicated it would be to hack r.out.gdal to
also export 3-band TIFFs etc.

r.out.gdal already supports exporting to multi-band files.

E.g.

$ i.group group=lsat7 input=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30

$ r.out.gdal in=lsat7 out=/tmp/lsat7.tiff --v

$ gdalinfo /tmp/lsat7.tiff | grep Band
Band 1 Block=3000x1 Type=Byte, ColorInterp=Red
Band 2 Block=3000x1 Type=Byte, ColorInterp=Green
Band 3 Block=3000x1 Type=Byte, ColorInterp=Blue

Regards, Martin

--
Martin Landa <landa.martin@gmail.com> * http://gama.fsv.cvut.cz/~landa *