hydromt_wflow.workflows.irrigation#

hydromt_wflow.workflows.irrigation(da_irrigation: ~xarray.core.dataarray.DataArray, ds_like: ~xarray.core.dataset.Dataset, irrigation_value: ~typing.List[int], cropland_class: ~typing.List[int], paddy_class: ~typing.List[int] = [], area_threshold: float = 0.6, lai_threshold: float = 0.2, logger=<Logger hydromt_wflow.workflows.demand (WARNING)>)[source]#

Prepare irrigation maps for paddy and non paddy.

Parameters:
  • da_irrigation (xr.DataArray) – Irrigation map

  • ds_like (xr.Dataset) –

    Dataset at wflow model domain and resolution.

    • Required variables: [‘wflow_landuse’, ‘LAI’]

  • irrigation_value (List[int]) – Values that indicate irrigation in da_irrigation.

  • cropland_class (List[int]) – Values that indicate cropland in landuse map.

  • paddy_class (List[int]) – Values that indicate paddy fields in landuse map.

  • area_threshold (float) – Threshold for the area of a pixel to be classified as irrigated.

  • lai_threshold (float) – Threshold for the LAI value to be classified as growing season.

Returns:

ds_irrigation – Dataset with paddy and non-paddy irrigation maps: [‘paddy_irrigation_areas’, ‘nonpaddy_irrigation_areas’, ‘paddy_irrigation_trigger’, ‘nonpaddy_irrigation_trigger’]

Return type:

xr.Dataset