hydromt_delwaq.DemissionModel.setup_emission_vector#

DemissionModel.setup_emission_vector(emission_fn: str | DataArray, col2raster: str = '', rasterize_method: str = 'value')#

Prepare emission map from vector data.

Adds model layer:

  • emission_fn map: emission data map

Parameters:
  • emission_fn ({'GDP_world'...}) – Name of raster emission map source.

  • col2raster (str) – Name of the column from the vector file to rasterize. Can be left empty if the selected method is set to “fraction”.

  • rasterize_method (str) – Method to rasterize the vector data. Either {“value”, “fraction”, “area”}. If “value”, the value from the col2raster is used directly in the raster. If “fraction”, the fraction of the grid cell covered by the vector file is returned. If “area”, the area of the grid cell covered by the vector file is returned.