cortecs: A Python package for compressing opacities
Abstract
The absorption and emission of light by exoplanet atmospheres encode details of atmospheric composition, temperature, and dynamics. Fundamentally, simulating these processes requires detailed knowledge of the opacity of gases within an atmosphere. When modeling broad wavelength ranges at high resolution, such opacity data, for even a single gas, can take up multiple gigabytes of system random-access memory (RAM). This aspect can be a limiting factor when considering the number of gases to include in a simulation, the sampling strategy used for inference, or even the architecture of the system used for calculations. Here, we present cortecs, a Python tool for compressing opacity data. cortecs provides flexible methods for fitting the temperature, pressure, and wavelength dependencies of opacity data and for evaluating the opacity with accelerated, GPU-friendly methods. The package is actively developed on GitHub (https://github.com/arjunsavel/cortecs), and it is available for download with pip and conda.
- Publication:
-
The Journal of Open Source Software
- Pub Date:
- August 2024
- DOI:
- 10.21105/joss.06104
- arXiv:
- arXiv:2402.07047
- Bibcode:
- 2024JOSS....9.6104S
- Keywords:
-
- astronomy;
- radiative transfer;
- Python;
- Astrophysics - Instrumentation and Methods for Astrophysics;
- Astrophysics - Earth and Planetary Astrophysics
- E-Print:
- 10 pages, 2 figures. Accepted to JOSS