lair#

lair: tools for land-air interactions research.

lair is a toolkit, one module per topic: import the module you need, as in from lair.meteorology import poisson (the API reference lists them). The package itself holds what the modules share: the unit registry units with its mass_flux context, and setup_ccg_filter(), which import lair calls. It also re-exports lair.config, ftp_download() and unzip(), and __version__.

Importing lair changes pint for the whole process: it adds the mass_flux context to the registry and makes pint write a unit’s parts in the order of their dimensions (kg/km**2/d).

Attributes

units

The pint unit registry lair uses, which is pint-xarray's, so a quantified xarray object and a plain quantity share it.

mass_flux

The pint context that converts a flux between moles and mass, given mw.

Functions

setup_ccg_filter

Set up the CCG filter module from NOAA GML.