Re: [gdal-dev] python CreateCopy just one band

2009-06-17 Thread Even Rouault
Le Wednesday 17 June 2009 23:17:42 Gong, Shawn (Contractor), vous avez écrit : > hi list, > > I use these codes for CreateCopy() > src_ds = gdal.Open( src_filename ) > dst_ds = driver.CreateCopy( dst_filename, src_ds, 0 ) > > > If the src_ds has two bands and my dst_ds has only one band, is

[gdal-dev] python CreateCopy just one band

2009-06-17 Thread Gong, Shawn (Contractor)
hi list, I use these codes for CreateCopy() src_ds = gdal.Open( src_filename ) dst_ds = driver.CreateCopy( dst_filename, src_ds, 0 ) If the src_ds has two bands and my dst_ds has only one band, is there a way to CreateCopy just one band? Or is there a way to remove bands in Gdal Python?