hydromt_wflow.WflowSedimentModel.upgrade_to_v1_wflow#
- WflowSedimentModel.upgrade_to_v1_wflow(soil_fn: str = 'soilgrids', usle_k_method: str = 'renard', strord_name: str = 'wflow_streamorder')[source]#
Upgrade the model to wflow v1 format.
The function reads a TOML from wflow v0x and converts it to wflow v1x format. The other components stay the same.
A few variables that used to be computed within Wflow.jl are now moved to HydroMT to allow more flexibility for the users to update if they do get local data or calibrate some of the parameters specifically. For this, the
setup_soilmapsandsetup_riverbedsedfunctions are called again.Lakes and reservoirs have also been merged into one structure and parameters in the resulted staticmaps will be combined.
This function should be followed by
write_configto write the upgraded TOML file and bywrite_gridto write the upgraded static netcdf input file.