hydromt_wflow.WflowModel.setup_areamap#

WflowModel.setup_areamap(area_fn: str | GeoDataFrame, col2raster: str, nodata: int | float = -1, output_names: Dict = {})[source]#

Set area map from vector data to save wflow outputs for specific area.

Adds model layer:

  • col2raster map: output area data map

Parameters:
  • area_fn (str, geopandas.GeoDataFrame) – Name of GeoDataFrame data corresponding to wflow output area.

  • col2raster (str) – Name of the column from area_fn to rasterize.

  • nodata (int/float, optional) – Nodata value to use when rasterizing. Should match the dtype of col2raster . By default -1.

  • 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. If another name is provided than col2raster, this name will be used.