lair.inventories.MultiModelInventory#
- class lair.inventories.MultiModelInventory(data, pollutant, src_units=None, time_step='annual', crs='EPSG:4326', version=None, model=None)[source]#
Bases:
InventoryBase class for inventories that are multi-model.
The files hold an ensemble along a
modeldimension. The inventory keeps one member, or the mean or median of them, and the whole ensemble inmultimodel_data.- Parameters:
data (str | Path | xr.Dataset) – As for
Inventory, with amodeldimension.model (int | str, optional) – The model to select from the multimodel data, by default None. Either a value of the
modelcoordinate (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
WetCHARTsThe 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