hydromt_delwaq.workflows.emissions.emission_raster¶
-
hydromt_delwaq.workflows.emissions.
emission_raster
(da, ds_like, method='average', fillna_method='nearest', fillna_value=0.0, area_division=False, logger=<Logger hydromt_delwaq.workflows.emissions (WARNING)>)[source]¶ Returns emission map.
The following emission maps are calculated: - da
- Parameters
da (xarray.DataArray) – DataArray containing emission map.
ds_like (xarray.DataArray) – Dataset at model resolution.
method (str {'average', 'nearest', 'mode'}) – Method for resampling.
fillna_method (str {'nearest', 'zero', 'value'}) – Method to fill NaN values.
fillna_value (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 count/m2 (True) instead of count (False)
- Returns
da_out – Dataset containing gridded emission map at model resolution.
- Return type
xarray.Dataset