Deltares / Ribasim

Water resources modeling
https://ribasim.org/
MIT License
39 stars 5 forks source link

Validate data table node_ids against Node #1780

Open DanielTollenaar opened 4 weeks ago

DanielTollenaar commented 4 weeks ago

Ribasim-main (commit 5d94880) seems to give an invalid Outlet crest_level validation using the wrong upstream basin

Reproduction

  1. Download https://deltares.thegood.cloud/f/118499
  2. Run in latest (commit 5d94880) version of RIBASIM will give you this validation-error: image

Obervation

image

Conclusion

visr commented 3 weeks ago

In create_storage_tables we read the sorted Basin / profile and then assume the node IDs match the sorted Node table. In this model there are 856 Basin nodes according to Node, and 864 different node IDs in Basin / profile.

For example, node ID 1058 is in Basin / profile but not in Node. Can these be filtered out?

This should be validated better in the core, so we should keep this issue open for that.