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 and setup_riverbedsed functions are called again.

This function should be followed by write_config to write the upgraded TOML file and by write_grid to write the upgraded static netcdf input file.

Parameters:
  • soil_fn (str, optional) – soil_fn argument of setup_soilmaps method.

  • usle_k_method (str, optional) – usle_k_method argument of setup_soilmaps method.

  • strord_name (str, optional) – strord_name argument of setup_riverbedsed method.