hydromt_wflow.WflowModel.setup_domestic_demand#

WflowModel.setup_domestic_demand(domestic_fn: str | Dataset, population_fn: str | Dataset | None = None, domestic_fn_original_res: float | None = None)[source]#

Prepare domestic water demand maps from a raster dataset.

Both gross and netto domestic demand should be provided in domestic_fn. They can either be cyclic or non-cyclic.

To improve accuracy, the domestic demand can be downsampled based on a provided population dataset. If the data you are using was already downscaled using a different source for population data, you may decide to first resample to the original resolution of domestic_fn before downsampling with population_fn. For example, the pcr_globwb dataset is at a resolution of 0.0083333333 degrees, while the original data has a resolution of 0.5 degrees. Use the domestic_fn_original_res parameter to specify the orignal resolution.

Adds model layer:

  • domestic_gross: gross domestic water demand [mm/day]

  • domestic_net: net domestic water demand [mm/day]

Parameters:
  • domestic_fn (Union[str, xr.Dataset]) –

    The domestic dataset. This can either be the dataset directly (xr.Dataset), a string referring to an entry in the data catalog or a dictionary containing the name of the dataset (keyword: source) and any optional keyword arguments (e.g. version). The data can be cyclic (with a time dimension) or non-cyclic. Allowed cyclic data can be monthly (12) or dayofyear (365 or 366).

    • Required variables: ‘dom_gross’ [mm/day], ‘dom_net’ [mm/day]

  • population_fn (Union[str, xr.Dataset]) – The population dataset in capita. Either provided as a dataset directly or as a string referring to an entry in the data catalog.

  • domestic_fn_original_res (Optional[float], optional) – The original resolution of the domestic dataset, by default None to skip upscaling before downsampling with population.