Skip to content

Commit

Permalink
Merge branch 'main' into streefpeilen_hellend
Browse files Browse the repository at this point in the history
  • Loading branch information
visr authored Jan 20, 2025
2 parents 108d4f1 + c265e24 commit 3d98bff
Show file tree
Hide file tree
Showing 6 changed files with 6,385 additions and 13,246 deletions.
29 changes: 2 additions & 27 deletions notebooks/samenvoegen_modellen.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import ribasim

from ribasim_nl import CloudStorage, Model, concat, prefix_index, reset_index
from ribasim_nl.aquo import waterbeheercode
from ribasim_nl.case_conversions import pascal_to_snake_case
from ribasim_nl.reset_static_tables import reset_static_tables

Expand Down Expand Up @@ -34,32 +35,6 @@
"Vechtstromen",
]

# https://www.aquo.nl/index.php/Imwa_sim_1.0/doc/codelijst/waterbeheerder
INDEX_PREFIXES = {
"HollandseDelta": 40,
"Zuiderzeeland": 37,
"HollandsNoorderkwartier": 12,
"Rivierenland": 9,
"Delfland": 15,
"AaenMaas": 38,
"WetterskipFryslan": 2,
"Noorderzijlvest": 34,
"BrabantseDelta": 25,
"HunzeenAas": 33,
"Scheldestromen": 42,
"Vechtstromen": 44,
"RijnenIJssel": 7,
"ValleienVeluwe": 43,
"SchielandendeKrimpenerwaard": 39,
"StichtseRijnlanden": 14,
"DeDommel": 27,
"Limburg": 60,
"DrentsOverijsselseDelta": 59,
"Rijnland": 13,
"AmstelGooienVecht": 11,
"Rijkswaterstaat": 80,
}

models = [
{
"authority": "Rijkswaterstaat",
Expand Down Expand Up @@ -244,7 +219,7 @@ def get_model_path(model, model_version):
ribasim_model = reset_index(ribasim_model)

# prefix index so ids will be unique
ribasim_model = prefix_index(model=ribasim_model, prefix_id=INDEX_PREFIXES[model["authority"]])
ribasim_model = prefix_index(model=ribasim_model, prefix_id=waterbeheercode[model["authority"]])

if idx == 0:
lhm_model = ribasim_model
Expand Down
Loading

0 comments on commit 3d98bff

Please sign in to comment.