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, so clip() the inventory to the region first. The result is in the inventory’s own mass (or amount) unit, kg for a flux in kg/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 time only, with the mass unit in its units attribute. It is lazy for an inventory read from files: compute() reads them.

Return type:

DataArray

See also

Inventory.absolute_emissions

The mass in each cell, by sector.

Inventory.total_emissions

The flux in each cell, every sector added.