Migrating to Wflow.jl v1.0.0#
The Wflow.jl v1 update mostly introduces new organisation of the model configuration (TOML), renamed or new (for sediment only) parameters and merging of lakes and reservoirs. For a complete overview of the changes, refer to the official Wflow.jl changelog.
To convert an existing v0.x wflow sbm model with hydromt, you can use the cli command:
hydromt update <model_type> <model_root_v0> -o <model_root_v1> -i <upgrade_v1.yml> -v
Where
<model_type>iswflow_sbmorwflow_sediment<model_root>is the folder containing your model<upgrade_v1.yml>is a configuration file specifying how to handle the migration.<model_root_v1>is the output folder for the migrated model.For sediment:
-d data_catalog.ymlto specify a data catalog for preparing the extra parameters of wflow sediment.
Template upgrade configuration files:
An example migration workflow notebook, is available here.