hydromt_wflow.WflowSedimentModel.setup_riverwidth#

WflowSedimentModel.setup_riverwidth(predictor: str = 'discharge', fill: bool = False, fit: bool = False, min_wth: float = 1.0, precip_fn: str | DataArray = 'chelsa', climate_fn: str | DataArray = 'koppen_geiger', **kwargs)#

Set the river width parameter based on power-law relationship with a predictor.

By default the riverwidth is estimated based on discharge as predictor and used to set the riverwidth globally based on pre-defined power-law parameters per climate class. With fit set to True, the power-law relationsship paramters are set on-the-fly. With fill set to True, the estimated river widths are only used to fill gaps in the observed data. Alternative predictor values are precip (accumulated precipitation) and uparea (upstream area). For these predictors values fit default to True. By default the predictor is based on discharge which is estimated through multiple linear regression with precipitation and upstream area per climate zone.

  • wflow_riverwidth map: river width [m]

Parameters:
  • predictor ({"discharge", "precip", "uparea"}) – Predictor used in the power-law equation: width = a * predictor ^ b. Discharge is based on multiple linear regression per climate zone. Precip is based on the 10x the daily average accumulated precipitation [m3/s]. Uparea is based on the upstream area grid [km2]. Other variables, e.g. bankfull discharge, can also be provided if present in the grid

  • fill (bool, optional) – If True (default), use estimate to fill gaps, outliers and lake/res areas in observed width data (if present); if False, set all riverwidths based on predictor (automatic choice if no observations found)

  • fit (bool, optional) – If True, the power-law parameters are fitted on the fly By default True for all but “discharge” predictor. A-priori derived parameters will be overwritten if True.

  • a (float, optional kwarg) – Manual power-law parameters

  • b (float, optional kwarg) – Manual power-law parameters

  • min_wth (float, optional) – Minimum river width, by default 1.0

  • precip_fn (str, xarray.DataArray) – Source of long term precipitation grid if the predictor is set to ‘discharge’ or ‘precip’. By default “chelsa”.

  • climate_fn (str, xarray.DataArray) – Source of long-term climate grid if the predictor is set to ‘discharge’. By default “koppen_geiger”.