[gdal-dev] band overview into numpy array how-to?

Antonio Valentino antonio.valentino at tiscali.it
Sat Jul 19 02:40:56 EDT 2008


Il giorno Sat, 19 Jul 2008 09:39:04 +0700
"Yann Chemin" <yann.chemin at gmail.com> ha scritto:

> Hi I am trying to get an image into a numpy array (for later display
> in wx.Image)
> 
> it is to have a view of the image at a screen size resolution more or
> less. Due to the nature of the images (large size),
> it will be easier to interact with overviews for display.
> How can I load an overview into a numpy array?

gdal.Band.GetOverview(self, ov_index)  --> RasterBand instance

gdal.Band.ReadAsArray(self, xoff=0, yoff=0, win_xsize=None,
win_ysize=None, buf_xsize=None, buf_ysize=None, buf_obj=None)

-- 
Antonio Valentino


More information about the gdal-dev mailing list