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
lake_area : lake area [m2]
lake_initial_depth: lake average level or initial depth (cold state) [m]
meta_lake_mean_outflow: lake average outflow [m3/s]
lake_b: lake rating curve coefficient [-]
lake_e: lake rating curve exponent [-]
lake_storage_curve: option to compute storage curve [-]
lake_rating_curve: option to compute rating curve [-]
lake_outflow_threshold: minimum threshold for lake outflow [m]
lake_lower_id: id of linked lake location if any
meta_lake_max_storage: 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