nismod / snail

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

Rewrite `snail.raster2split` to take a collection of raster files as an input #39

Closed tlestang closed 2 years ago

tlestang commented 2 years ago

This is inspired from the network/raster intersection script in the osm-aqueduct analysis.

Currently raster2split takes a single rasterio dataset and for each band, for each split, compute cell index and raster value.

This changes raster2split to it takes a collection of raster files as an input instead (a key: filename dict). Cell indices are computed once.