[Gdal-dev] merge 3 tiff files into RGB color composite geotiff
Jeroen Ticheler
Jeroen.Ticheler at fao.org
Mon Mar 7 03:22:10 EST 2005
Hi Frank,
This worked great and I was able to see the output in OpenEV. However,
I was not able to see the file in Gimp or any other graphical software
I tried because they started complaining about unknown tags... This
happened when working with MODIS data, while a similar test with ASTER
data didn't give the errors and the Aster image would open in these
programs. I assume there are some tags that geotiff supports bu confuse
other software!? Is there a way to remove these (export to some kind of
GeoTIFF minimum!?) so the images will open in (m)any graphics software?
Thanks again,
Jeroen
On 2 Mar 2005, at 23:58, Frank Warmerdam wrote:
> On Wed, 2 Mar 2005 23:31:34 +0100, Jeroen Ticheler
> <Jeroen.Ticheler at fao.org> wrote:
>> Hi,
>>
>> I wondered if there is a trick to convert three image files (geotiff),
>> being red, NIR and MIR, into an RGB geotiff?
>
> Jeroen,
>
> As long as the red, NIR and MIR are the same size and for the same
> region you should be able to stack them with gdal_merge.py:
>
> gdal_merge.py -seperate red.tif nir.tif mir.tif -o stack.tif
>
> The -seperate flag means put each input into a seperate band.
>
> 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