DassHydro / smash

An open source, Python library interfacing the Fortran Spatially distributed Modelling and ASsimilation for Hydrology platform.
https://smash.recover.inrae.fr/
GNU General Public License v3.0
12 stars 6 forks source link

Bug when computing flow distances for adjacent non nested catchment #38

Closed inoelloc closed 1 year ago

inoelloc commented 1 year ago

There is a bug when calculating flow distances when two adjacent catchments are considered in the mesh but not nested. During calculation, a flag is set around the 8 adjacent cells of each upstream cell and not on the upstream cell in particular. As a result, a gauge stuck to a pixel of another catchment will not be considered as a non-nested gauge and will be filled with -99

inoelloc commented 1 year ago

See PR #42