lair.inventories.Inventory.integrate#
- Inventory.integrate()[source]#
Return the total mass emitted over the whole grid in each time step.
This is the regional total:
Inventory.absolute_emissions(each cell’s flux times its area and the length of the time step) summed over the cells and over the sectors, soclip()the inventory to the region first. The result is in the inventory’s own mass (or amount) unit,kgfor a flux inkg/m**2/s, and each value is the mass emitted in one time step: kilograms per year with annual data, per month with monthly data.Unlike
Inventory.total_emissions, which sums only the sectors and is still a flux per area, this is a mass. The inventory example shows both, with a check by hand.- Returns:
xr.DataArray – The total, along
timeonly, with the mass unit in itsunitsattribute. It is lazy for an inventory read from files:compute()reads them.- Return type:
See also
Inventory.absolute_emissionsThe mass in each cell, by sector.
Inventory.total_emissionsThe flux in each cell, every sector added.