openairclim.interpolate_space

Interpolation and Regridding methods in the space domain

openairclim.interpolate_space.calc_weights(spec, resp, inv)[source]

Calculate the weighting factors for a given response and inventory.

Parameters:
  • spec (str) – Name of the species for which the weights are being calculated.

  • resp (xarray.Dataset) – Response dataset

  • inv (xarray.Dataset) – Emission inventory dataset

Returns:

Dataset with weighting parameters

Return type:

xarray.Dataset

openairclim.interpolate_space.find_weights(spec, resp, inv)[source]

Find weighting parameters on response grid for entire emission inventory, response grid is 2d with dimensions lat and plev First, query checksum table to get pre-calculated weights from cache If weights not pre-calculated for resp / inv combination, execute calc_weights

Parameters:
  • spec (str) – Name of the species

  • resp (xarray) – Response Dataset with lat and plev dimensions

  • inv (xarray) – Emission inventory Dataset

Returns:

Dataset with weighting parameters

Return type:

xarray