nismod / open-gira

Open-data Global Infrastructure Risk/Resilience Analysis
https://nismod.github.io/open-gira/
MIT License
12 stars 3 forks source link

Read no-data values as masked/NaN #122

Open tomalrussell opened 1 year ago

tomalrussell commented 1 year ago

We should take care to read no-data values correctly, and not rely on zeroing out negative values in later processing.

See note in 5406a2e847669a94645185844e01107501f02e63 and docs https://rasterio.readthedocs.io/en/latest/topics/masks.html#numpy-masked-arrays