hydromt_delwaq.DemissionModel.setup_emission_raster#

DemissionModel.setup_emission_raster(emission_fn: str | Path | DataArray, scale_method: str = 'average', classnumber: int | float = 0.0, fillna_method: str = 'zero', fillna_value: int | float = 0.0, area_division: bool = False, output_name: str | None = None)[source]#

Prepare one or several emission map from raster data.

Adds model layer:

  • emission_fn map: emission data map

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

  • scale_method (str {'nearest', 'average', 'mode', 'classfraction', 'classarea'}) – Method for resampling. Either nearest neighbour, average, mode, or class fraction/area [m2] for categorical data.

  • classnumber (int | float) – Class number used for resampling methods ‘classfraction’ or ‘classarea’.

  • fillna_method (str {'nearest', 'zero', 'value'}) – Method to fill NaN values. Either nearest neighbour, zeros or user defined value.

  • fillna_value (int | float) – If fillna_method is set to ‘value’, NaNs in the emission maps will be replaced by this value.

  • area_division (boolean) – If needed do the resampling in cap/m2 (True) instead of cap (False)

  • output_name (str, optional) – Name of the output variable. If None, use emission_fn name.