[Gdal-dev] gdal_translate: using "-b" switch

Matt Wilkie matt.wilkie at gov.yk.ca
Fri Nov 14 16:40:11 EST 2003


Hi,

http://www.remotesensing.org/gdal/gdal_utilities.html says:

	-b band: Select an input band band for output.
	Bands are numbered from 1. Multiple -b switches
	may be used to select a set of input bands to
	write to the output file, or to reorder bands.

however when I use multiple -b's the output image only has one band. 
This is the command line I'm using:

d:\> gdal_translate -b 5 -b 4 -b 3 Mosaic30m.tif out_543.tif

The input image has 6 bands.
I'm using GDAL 1.1.8.0, released 2002/12/21 on Windows XP.

Is my syntax wrong?

thanks,

-- 
matt wilkie
--------------------------------------------
Geographic Information,
Information Management and Technology,
Yukon Department of Environment
10 Burns Road * Whitehorse, Yukon * Y1A 4Y9
867-667-8133 Tel * 867-393-7003 Fax
--------------------------------------------





More information about the Gdal-dev mailing list