API Reference#

lair is a flat collection of modules; import the one you need, e.g. from lair.meteorology import poisson. Some modules need an optional dependency group (see Optional dependencies).

The package#

lair

lair: tools for land-air interactions research.

Atmosphere & Meteorology#

lair.air

Winds and polar binning.

lair.background

Background concentrations of a trace gas from its own time series.

lair.meteorology

Meteorological calculations.

lair.pcaps

Valley heat deficit and persistent cold air pools.

lair.soundings

Upper-air soundings from the University of Wyoming's archive.

Data Sources#

lair.hrrr

HRRR winds at a point.

lair.inventories

Gridded emission inventories.

lair.noaa

NOAA greenhouse gas data: CarbonTracker and NOAA GML's measurement records.

lair.synoptic

Surface station observations from the Synoptic Data API (the MesoWest successor).

Measurements#

lair.pollutants

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

lair.transects

Metrics on mobile-platform transect matrices.

Geospatial & Plotting#

lair.geo

Grids, maps and distances.

lair.plotter

Plotting helpers.

Utilities#

lair.clock

Times and time zones.

lair.config

Where lair finds data and keeps its cache.

lair.constants

Physical constants, as pint quantities of lair.units.

lair.dev

Tools for code development.

lair.parallel

Run a function over many inputs in worker processes.

lair.records

Files, downloads and caching.

lair.utils

Small helpers used across lair.