[gdal-dev] Reading a single pixel from multiple bands at the same time in python

Benjamin Welton benjamin.r.welton at wmich.edu
Tue Feb 23 22:03:38 EST 2010


Hey,

    Iv got a question on whether or not its possible to read a single 
pixel value from multiple bands using one GDAL call in python? The file 
working with is an ENVI BIP file that has a large number of bands 
(around 1000) and im looking for a way to reduce the python overhead by 
only making one single call into the GDAL library. GDALDataset::RasterIO 
seems like it might be the function i need to use but im 100% sure. If 
anyone has any suggestions or hints on whether or not this is possible 
that would be great.

Thanks,
Ben


More information about the gdal-dev mailing list