lair is a collection of tools that I have developed/acquired for my research regarding land-air interactions. The lair package is designed to make it easier to work with atmospheric data.
lair is installed from GitHub, not from PyPI, where lair is an unrelated
project. It needs Python 3.11 or newer and git:
pip install "lair[requests,formats,geo,science] @ git+https://github.com/jmineau/lair.git"The installation section of the documentation
has the rest: what each extra is for, conda for regridding (ESMF), uv, a release
or no git, the file the first import lair downloads, and the steps for CHPC
(University of Utah).
lair logs through Python's standard logging module, under the lair logger
(one child logger per module, e.g. lair.records). Warnings are shown by
default; progress messages are logged at INFO and hidden unless you ask for
them:
import logging
logging.basicConfig(level=logging.INFO) # everything, incl. lair
logging.getLogger("lair").setLevel(logging.INFO) # or tune lair aloneThis package was partially inspired and uses some code generously provided by Brian Blaylock's Carpenter Workshop python package.
This project is developed with the help of AI coding agents, directed and reviewed by the maintainer, who owns the design and the science.
Portions of this package were also written with AI-based tools including GitHub Copilot, ChatGPT, and Google Gemini, and some code snippets were borrowed from StackOverflow and other online resources.
Contributions are welcome! Please take a look at current issues and feel free to submit a pull request with new features or bug fixes. To change lair's code, start with CONTRIBUTING.md.
If you use any portion of this package in your research, please cite the software and/or acknowledge me.
Citation metadata is in CITATION.cff (GitHub's "Cite this repository" button uses it), and each release is archived on Zenodo with a DOI.