hydromt_wflow.workflows.lakeattrs#

hydromt_wflow.workflows.lakeattrs(ds: ~xarray.core.dataset.Dataset, gdf: ~geopandas.geodataframe.GeoDataFrame, rating_dict: dict = {}, add_maxstorage: bool = False, logger=<Logger hydromt_wflow.workflows.waterbodies (WARNING)>)[source]#

Return lake attributes (see list below) needed for modelling.

If rating_dict is not empty, prepares also rating tables for wflow.

The following reservoir attributes are calculated:

  • waterbody_id : waterbody id

  • LakeArea : lake area [m2]

  • LakeAvgLevel: lake average level [m]

  • LakeAvgOut: lake average outflow [m3/s]

  • Lake_b: lake rating curve coefficient [-]

  • Lake_e: lake rating curve exponent [-]

  • LakeStorFunc: option to compute storage curve [-]

  • LakeOutflowFunc: option to compute rating curve [-]

  • LakeThreshold: minimium threshold for lake outflow [m]

  • LinkedLakeLocs: id of linked lake location if any

  • LakeMaxStorage: maximum storage [m3] (optional)

Parameters:
  • ds (xr.Dataset) – Dataset containing the lake locations and area

  • gdf (gp.GeoDataFrame) – GeoDataFrame containing the lake locations and area

  • rating_dict (dict, optional) – Dictionary containing the rating curve parameters, by default dict()

  • add_maxstorage (bool, optional) – If True, adds the maximum storage to the output, by default False

Returns:

  • ds (xr.Dataset) – Dataset containing the lake locations with the attributes

  • gdf (gp.GeoDataFrame) – GeoDataFrame containing the lake locations with the attributes

  • rating_curves (dict) – Dictionary containing the rating curves in wflow format