[Gdal-dev] creating a composite raster

Frank Warmerdam warmerdam at pobox.com
Thu Feb 16 19:57:06 EST 2006


Christopher Condit wrote:
> I’m looking for a way to take three equally sized input raster files in 
> AAI/Grid format and convert each grid to a band in a single 24-bit 
> raster file (r, g, b, respectively).
> 
> Is there an easy way to accomplish this with GDAL?

Chris,

If you have a GDAL build that includes the python support, you can
do "gdal_merge.py -o stack.tif -separate a.grd b.grd c.grd".

This would stack each of the .grd files into a separate band of the
output file, stack.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    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list