[gdal-dev] python CreateCopy just one band

Gong, Shawn (Contractor) Shawn.Gong at drdc-rddc.gc.ca
Wed Jun 17 17:17:42 EDT 2009


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?


thanks,
Shawn



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20090617/8efa8934/attachment.html


More information about the gdal-dev mailing list