lair.inventories.MultiModelInventory#

class lair.inventories.MultiModelInventory(data, pollutant, src_units=None, time_step='annual', crs='EPSG:4326', version=None, model=None)[source]#

Bases: Inventory

Base class for inventories that are multi-model.

The files hold an ensemble along a model dimension. The inventory keeps one member, or the mean or median of them, and the whole ensemble in multimodel_data.

Parameters:
  • data (str | Path | xr.Dataset) – As for Inventory, with a model dimension.

  • pollutant (str) – As for Inventory.

  • src_units (str, optional) – As for Inventory.

  • time_step (str, optional) – As for Inventory.

  • crs (str, optional) – As for Inventory.

  • version (str, optional) – As for Inventory.

  • model (int | str, optional) – The model to select from the multimodel data, by default None. Either a value of the model coordinate (a numeric string is cast to match an integer coordinate), 'mean' or 'median' for the ensemble mean or median. If None, the mean of all models is used.

See also

WetCHARTs

The multi-model inventory lair reads.

Inherited

From Inventory: absolute_emissions, collapsed, convert_units, data, get_files, get_standard_name, get_units, integrate, plot, quantify, regrid, reproject, resample, total_emissions

From BaseGrid: clip, copy, gridcell_area