[Gdal-dev] problem of gdal_translate 1.1.9 and 1.2.1 with multiple bands

Frank Warmerdam warmerdam at pobox.com
Wed Jul 28 09:44:55 EDT 2004


Xiaodong Zhang wrote:

> -------------------------------------
> Then I run,
> 
> gdal_translate -b 1,2,3 -srcwin 100 100 200 200 /mnt/dngp_images/3328_092002.tif
> tmp.tif

Hi,

I think you need to use a seperate -b for each band requested.

eg.
gdal_translate -b 1 -b 2 -b 3 -srcwin 100 100 200 200 /mnt/dngp_images/3328_092002.tif tmp.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