[gdal-dev] basic raster math

Ari Jolma ari.jolma at tkk.fi
Fri Feb 15 01:43:52 EST 2008


Christopher Barker kirjoitti:
> if you want to write it back out as a geotiff, GDAL will help there. 
> Take a look at some of the utilities that come with GDAL that are 
> written in Python -- essentially what you need to do is open the file, 
> then get the rasterband with:
>
> numpy_array = band.ReadAsArray()

Just to make sure, I guess this reads the whole thing into memory? I.e. 
don't try this with huge images.

Regards,

Ari

-- 
Prof. Ari Jolma
Geoinformatiikka / Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
tel: +358 9 451 3886 address: POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma




More information about the gdal-dev mailing list