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_soilmaps
andsetup_riverbedsed
functions are called again.This function should be followed by
write_config
to write the upgraded TOML file and bywrite_grid
to write the upgraded static netcdf input file.