rosepearson / GeoFabrics

A package for generating hydrologically conditioned DEMs and roughness maps from LiDAR and other infrastructure data. Check the wiki for install and usage instructions, and documentation at https://rosepearson.github.io/GeoFabrics/
GNU General Public License v3.0
25 stars 11 forks source link

Coarse DEMs ignored if no LiDAR #248

Closed rosepearson closed 4 months ago

rosepearson commented 4 months ago

When no LiDAR an empty xarray is created. This no longer seems to be coded to NaN. This means the values are incorrectly assumed to by valid. Instead define the empty array as dask.array.fill(fill_value=numpy.nan, ..).

rosepearson commented 4 months ago

Also fix assert fail when no LiDAR from a LiDAR dataset within the catchment area so no LiDAR files