Selecting one band from multi-band raster in the python console

2 messages Options
Embed this post
Permalink
Agustin Lobo

Selecting one band from multi-band raster in the python console

Reply Threaded More More options
Print post
Permalink
In case I have a multi-band raster, how do I select one band?
I mean, which would be the equivalent to
layer1 = iface.mapCanvas().layer(0)
?

Thanks!

Agus
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer
Bishwarup Banerjee

Re: Selecting one band from multi-band raster in the python console

Reply Threaded More More options
Print post
Permalink
Dear Agus,

I think you can use PIL, Split the band and save the individual bands as separate raster and load them acoording to your wish.

Hope this solves your problem.

Bye
Sonai


On Tue, Oct 27, 2009 at 5:08 PM, Agustin Lobo <[hidden email]> wrote:
In case I have a multi-band raster, how do I select one band?
I mean, which would be the equivalent to
layer1 = iface.mapCanvas().layer(0)
?

Thanks!

Agus
_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer


_______________________________________________
Qgis-developer mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/qgis-developer