Re: [gdal-dev] ReadRaster memory hit

2019-03-27 Thread Nicolas Cadieux
Hi, I did not get an answer for my question bellow so I did some testing. I write to help others that will find this post. (I am making a point to raster query tool.) It’s much faster to load a cloud of point to a function and to loop a query to each band than to load a single band to a funct

Re: [gdal-dev] ReadRaster memory hit

2019-03-12 Thread Nicolas Cadieux
Thanks again Even, Is there a way I can test for this data organization and warn the user? I know very little about this aspect but I enjoy the learning curve. As a follow up (if I may abuse!), I have one file with thousands points and one raster with hundreds of bands, both huge. I have bee

Re: [gdal-dev] ReadRaster memory hit

2019-03-12 Thread Even Rouault
On mardi 12 mars 2019 01:56:34 CET Nicolas Cadieux wrote: > Hi, > > I am writing a python script and I need to read certain pixels form a huge > Hyperspectral images with over 200 band. If I use the method below from > the tutorial, if I understand correctly, memory hits will only come from >

[gdal-dev] ReadRaster memory hit

2019-03-11 Thread Nicolas Cadieux
Hi, I am writing a python script and I need to read certain pixels form a huge Hyperspectral images with over 200 band. If I use the method below from the tutorial, if I understand correctly, memory hits will only come from what I place in the buffer? In this case, only one line of pixels?