Re: [gdal-dev] ReadAsArray: putting data in an already existent array

2013-03-23 Thread Even Rouault
Le vendredi 22 mars 2013 18:47:49, Diego Gnesi Bartolani a écrit : > Hi, > > I'm programming in Python and I need to "scan" a large image with GDAL > reading n rows at the time. I'm using the ReadAsArray method, but every > time I execute it I get a new array. I think this solution consumes a

Re: [gdal-dev] ReadAsArray: putting data in an already existent array

2013-03-23 Thread Jan Heckman
Hi Diego, I haven't checked this out, but my guess is that you should make a (python)list of the arrays if you need to keep them. If you don't need to keep them, you might try to del(ete) myarray before the next ReadAsArray call. Of course there is a lower level function which accepts an address a

[gdal-dev] ReadAsArray: putting data in an already existent array

2013-03-22 Thread Diego Gnesi Bartolani
Hi, I'm programming in Python and I need to "scan" a large image with GDAL reading n rows at the time. I'm using the ReadAsArray method, but every time I execute it I get a new array. I think this solution consumes a lot of resources. Is there a method or option to pass to ReadAsArray an array