Skip to main content

Library to handle radiative opacities from various sources for atmospheric applications

Project description

Exo_k

Author: Jeremy Leconte (CNRS/LAB/Univ. Bordeaux)

Exo_k is a Python 3 based library to handle radiative opacities from various sources for atmospheric applications. It enables you to:

  • Interpolate efficiently and easily in correlated-k and cross section tables.

  • Convert easily correlated-k and cross section tables from one format to another (hdf5, LMDZ GCM, Exomol, Nemesis, PetitCode, TauREx, ExoREM, ARCIS, etc.).

  • Adapt precomputed correlated-k tables to your needs by changing:

    • the resolution and quadrature (g) grid,
    • the pressure/temperature grid.
  • Create tables for a mix of gases using tables for individual gases.

  • Create your own tables from high-resolution spectra (for example from K-spectrum, Helios-K, etc.).

  • Use your data in an integrated radiative transfer framework to simulate planetary atmospheres.

For a complete online documentation, checkout: http://perso.astrophy.u-bordeaux.fr/~jleconte/exo_k-doc/index.html

In this repository, you'll find a tutorial jupyter notebook that will show you how to do all that with concrete examples that you can run on your own machine. Many important concepts and options are presented along the way.

Enjoy!

J. Leconte

Acknowledgements

If you use this library in your research, please acknowledge it by citing Leconte (2021):

  • Spectral binning of precomputed correlated-k coefficients. Astronomy and Astrophysics 645. Leconte, J. 2021. doi:10.1051/0004-6361/202039040

This project has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (grant agreement n° 679030/WHIPLASH).

The framework for this documentation has been developped by Aurelien Falco using Sphinx.

last release (see past releases below)

v1.0.2 (June 2021): Adds a few missing dependencies. Enables computation of thermal emission spectra with scattering through the two-stream method (full documentation pending). Enables creating Xtables for a mix of gases (CIA can be added as well). Solves some issues with the 2018 Hitran CIA format.

Installation

Exo_k can be installed using pip (without cloning the repository; dependencies should be downloaded automatically):

pip install exo_k

Or by running the setup.py script in the cloned repository:

python setup.py install

Usage

To learn how to use exo_k, you can follow the tutorial jupyter notebook.

Have fun!

Links

past releases

v1.0.1 (Jan 2021): Solves a binary/string conversion issue introduced by version 3 of h5py. Enables linear interpolation in pressure (default is log). Enables creation of empty tables to be filled later and extension of the spectral range of existing tables.

v1.0.0 (Dec 2020): Finally our first official version. Creation of a 'examples' notebook with fully worked out use cases for the Exo_k.

v0.0.5 (Oct 2020): Ensures compatibility with latest Exomol correlated-k and cross-section tables.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

exo_k-1.1.0.tar.gz (112.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exo_k-1.1.0-py3-none-any.whl (153.1 kB view details)

Uploaded Python 3

File details

Details for the file exo_k-1.1.0.tar.gz.

File metadata

  • Download URL: exo_k-1.1.0.tar.gz
  • Upload date:
  • Size: 112.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1

File hashes

Hashes for exo_k-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e996f0cdb7d042af8b5539458be8a47fc7a27d4484672dfc077ef879b3995b65
MD5 5ee8593ac404c43d174837c3a8271304
BLAKE2b-256 7f1de9788a458f14c0f1e1ae7d83d8ee0cee19c47869791701d06a576e6f7917

See more details on using hashes here.

File details

Details for the file exo_k-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: exo_k-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 153.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.1

File hashes

Hashes for exo_k-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 85d11109a8ded171b9613d4a0a72088f8d7160e4cf9e1d9801ce732c58a72c05
MD5 d6563a10cc14990a491d8b35b71e7ab7
BLAKE2b-256 6c247ae46b0456652c7fb8dd447b819641ad41c8f9b6f90c1a82aab460bb78b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page