I am use the GRID class to read a single band GeoTiff file and everything seems to be working ok except that when I use grid.value(ic, ir), the read time seems to be very slow for extremely large files. I am reading 307,000 randomly located points from the grid in a loop and it is taking over 2 hours to read all point locations. If I reduce the resolution of the grid by a factor of 3 in each dimension, the same 307,000 points take less than 45min. If the grid class was reading just points, I would think it would be much faster than this.
So my question is how does the Grid class actually read a particular point from a grid? Does it read the entire row to get one value or is it more efficient than that?
Thanks!
So my question is how does the Grid class actually read a particular point from a grid? Does it read the entire row to get one value or is it more efficient than that?
Thanks!