hydromt_wflow.WflowModel.setup_allocation_areas#
- WflowModel.setup_allocation_areas(waterareas_fn: str | GeoDataFrame, priority_basins: bool = True)[source]#
Create water demand allocation areas.
The areas are based on the wflow model basins (at model resolution), the wflow model rivers and water areas or regions for allocation.
Water regions are generally defined by sub-river-basins within a Country. In order to mimick reality, it is advisable to avoid cross-Country-border abstractions. Whenever information is available, it is strongly recommended to align the water regions with the actual areas managed by water management authorities, such as regional water boards.
The allocation area will be an intersection of the wflow model basins and the water areas. For areas that do not contain river cells after intersection with the water areas, the priority_basins flag can be used to decide if these basins should be merged with the closest downstream basin or with any large enough basin in the same water area.
- Parameters:
waterareas_fn (Union[str, gpd.GeoDataFrame]) – Administrative boundaries GeoDataFrame data, this could be e.g. water management areas by water boards or the administrative boundaries of countries.
priority_basins (bool, optional) – If True, merge the basins with the closest downstream basin, else merge with any large enough basin in the same water area, by default True.