hydromt_wflow.workflows.landuse_from_vector#

hydromt_wflow.workflows.landuse_from_vector(gdf: ~geopandas.geodataframe.GeoDataFrame, ds_like: ~xarray.core.dataset.Dataset, df: ~pandas.core.frame.DataFrame, params: ~typing.List | None = None, lulc_res: int | float | None = None, all_touched: bool = False, buffer: int = 1000, lulc_out: str | None = None, logger=<Logger hydromt_wflow.workflows.landuse (WARNING)>)[source]#

Derive several wflow maps based on vector landuse-landcover (LULC) data.

The vector lulc data is first rasterized to a raster map at the model resolution or at a higher resolution specified in lulc_res.

Lookup table df columns are converted to lulc classes model parameters based on literature. The data is remapped at its rasterized resolution and then resampled to the model resolution using the average value, unless noted differently.

Parameters:
  • gdf (geopandas.GeoDataFrame) – GeoDataFrame containing LULC classes.

  • ds_like (xarray.Dataset) – Dataset at model resolution.

  • df (pd.DataFrame) – Mapping table with landuse values.

  • params (list of str, optional) – List of parameters to derive, by default None

  • lulc_res (float or int, optional) – Resolution of the rasterized LULC data, by default None (use model resolution)

  • all_touched (bool, optional) – If True, all pixels touched by the polygon will be burned in, by default False

  • buffer (int, optional) – Buffer in meters to add around the bounding box of the vector data, by default 1000.

  • lulc_out (str, optional) – Path to save the rasterised original landuse map to file, by default None.

  • logger (logging.Logger, optional) – Logger object.

Returns:

ds_out – Dataset containing gridded landuse based maps

Return type:

xarray.Dataset