lair.pollutants#

Metadata for common trace gases and aerosols: names, LaTeX labels, units.

A small registry of Pollutant records for labeling plots and sanity checking values. It knows nothing about any instrument or archive; how a data source names its columns (e.g. UATAQ’s CO2d_ppm_cal) belongs with that data source.

Examples

>>> from lair.pollutants import get_pollutant
>>> ch4 = get_pollutant("ch4")
>>> print(ch4.label())
$\mathrm{CH_4}$ [ppm]
>>> ax.set_ylabel(get_pollutant("PM25").label())

Attributes

POLLUTANTS

Registry of known pollutants, keyed by canonical name.

Functions

get_pollutant

Look up a pollutant by name, case-insensitively.

Classes

Pollutant

Metadata for one pollutant.