hydromt_wflow.workflows.allocation_areas#

hydromt_wflow.workflows.allocation_areas(ds_like: Dataset, waterareas: GeoDataFrame, basins: GeoDataFrame, priority_basins: bool = True) Tuple[DataArray, GeoDataFrame][source]#

Create water allocation area.

Based on current wflow model domain and resolution and making use of the model basins and administrative boundaries.

Parameters:
  • ds_like (xr.DataArray) –

    A grid covering the wflow model domain and the rivers.

    • Required variables: [‘wflow_river’, ‘wflow_subcatch’]

  • waterareas (gpd.GeoDataFrame) – Administrative boundaries, e.g. sovereign nations.

  • basins (gpd.GeoDataFrame) – The wflow model basins.

  • priority_basins (bool) – For basins that do not contain river cells after intersection with the admin boundaries, the priority_basins flag can be used to decide if these basins should be merged with the closest downstream basin (True, default) or with any large enough basin in the same administrative area (False).

Returns:

  • xr.DataArray – The water demand allocation areas.

  • gpd.GeoDataFrame – The water demand allocation areas as geodataframe.