hydromt_wflow.WflowModel.setup_other_demand#
- WflowModel.setup_other_demand(demand_fn: str | Dict[str, Dict[str, Any]] | Dataset, variables: list = ['industry_gross', 'industry_net', 'livestock_gross', 'livestock_net'], resampling_method: str = 'average', output_names: Dict = {'land~industry__gross_water_demand_volume_flux': 'demand_industry_gross', 'land~industry__net_water_demand_volume_flux': 'demand_industry_net', 'land~livestock__gross_water_demand_volume_flux': 'demand_livestock_gross', 'land~livestock__net_water_demand_volume_flux': 'demand_livestock_net'})[source]#
Create water demand maps from other sources (e.g. industry, livestock).
These maps are created from a supplied dataset that either contains one or all of the following variables: - Industrial water demand - Livestock water demand - Domestic water demand (without population downsampling)
For each of these datasets/ variables a gross and a netto water demand should be provided. They can either be provided cyclic or non-cyclic. The maps are then resampled to the model resolution using the provided resampling_method.
Adds model layer:
{var}_gross: gross water demand [mm/day]
{var}_net: net water demand [mm/day]
- Parameters:
demand_fn (str | Dict[str, Dict[str, Any]], xr.Dataset]) –
The water demand 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: variables listed in variables in [mm/day].
variables (list, optional) – The variables to be processed. Supported variables are [‘domestic_gross’, ‘domestic_net’, ‘industry_gross’, ‘industry_net’, ‘livestock_gross’, ‘livestock_net’]. By default gross and net demand for industry and livestock are processed.
resampling_method (str, optional) – Resampling method for the demand maps, by default “average”
output_names (dict, optional) – Dictionary with output names that will be used in the model netcdf input files. Users should provide the Wflow.jl variable name followed by the name in the netcdf file.