hydromt_wflow.workflows.irrigation_from_vector#
- hydromt_wflow.workflows.irrigation_from_vector(gdf_irrigation: ~geopandas.geodataframe.GeoDataFrame, ds_like: ~xarray.core.dataset.Dataset, 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 from geodataframe.
- Parameters:
gdf_irrigation (gpd.GeoDataFrame) – Shapefile with irrigation areas.
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 gdf_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 (fraction of the cell covered).
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
See also