hydromt_wflow.workflows.waterbodymaps#

hydromt_wflow.workflows.waterbodymaps(gdf, ds_like, wb_type='reservoir', uparea_name='uparea', logger=<Logger hydromt_wflow.workflows.waterbodies (WARNING)>)[source]#

Return waterbody (reservoir/lake) maps (see list below).

At model resolution based on gridded upstream area data input or outlet coordinates.

The following waterbody maps are calculated:

  • resareas/lakeareas : waterbody areas mask [ID]

  • reslocs/lakelocs : waterbody outlets [ID]

Parameters:
  • gdf (geopandas.GeoDataFrame) – GeoDataFrame containing reservoirs/lakes geometries and attributes.

  • ds_like (xarray.DataArray) – Dataset at model resolution.

  • uparea_name (str, optional) – Name of uparea variable in ds_like. If None then database coordinates will be used to setup outlets

  • wb_type (str, optional either "reservoir" or "lake") – Option to change the name of the maps depending on reservoir or lake

Returns:

ds_out – Dataset containing gridded waterbody data

Return type:

xarray.DataArray