Ticket #4682 (closed defect: fixed)
GRIB: band caching is too aggressive
|Reported by:||rouault||Owned by:||warmerdam|
The GRIB driver actually caches all the raster data from a band the first type you access it, and never releases it. This is to speed-up successive RasterIO operations on a band, which is a nice feature generally. But if you iterate over all the bands, it means that GDAL will end up allocating (number_of_bands * x_size * y_size * sizeof(double) ) bytes. In your case : 1129 * 720 * 360 * 8 = 2.3 GB indeed.
Note: See TracTickets for help on using tickets.