nismod / snail

spatial networks impact assessment library 🐌
https://nismod.github.io/snail/
MIT License
9 stars 1 forks source link

Allow working with larger-than-memory rasters #58

Open tomalrussell opened 6 months ago

tomalrussell commented 6 months ago

E.g. global ~90m map may be on the order of 100GBs if represented uncompressed in memory.

snail.intersection.get_raster_values_for_splits currently takes raster data as a 2D ndarray.

When attributing values from rasters to split and indexed geometries, find an approach which doesn't assume that the full raster array can be loaded in memory.