Exo-k


NameExo-k JSON
Version 1.3.0 PyPI version JSON
download
home_pagehttps://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public
SummaryLibrary to handle radiative opacities from various sources for atmospheric applications
upload_time2024-09-17 09:49:37
maintainerNone
docs_urlNone
authorJeremy Leconte
requires_python<4.0,>=3.8
licenseGPLv3
keywords opacities cross sections correlated-k spectra atmosphere atmospheric exoplanet radiative transfer
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Exo_k

![Stable Version](https://img.shields.io/pypi/v/exo_k?label=stable)
![Python Versions](https://img.shields.io/pypi/pyversions/exo_k)
[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)

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 now comes with a full-fledged 1D atmospheric evolution model.

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 spectral and quadrature (g) grids,
  * 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.
* Compute the physical state of planetary atmospheres in radiative-convective equilibrium.
  
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](https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public/-/blob/public/tutorials/tutorial-exo_k.ipynb) 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)](https://ui.adsabs.harvard.edu/abs/2021A%26A...645A..20L/abstract):

  * 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.
The Framework for automatic testing has been developped by Alexandre Mechineau. 

# last release (see past releases below)

v1.2.2 (September 2023): Improvement have been made on the development side. We added a conda environment allowing 
to easily contribute to `Exo_k`. Dependencies have been updated.

# Installation

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

# Usage

To learn how to use `exo_k`, you can follow the [tutorial jupyter notebook](https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public/-/blob/public/tutorial-exo_k.ipynb).

Have fun!

# Links

* Project homepage: http://perso.astrophy.u-bordeaux.fr/~jleconte/
* Code repository: https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public
* Documentation: http://perso.astrophy.u-bordeaux.fr/~jleconte/exo_k-doc/index.html
* Contact: jeremy.leconte at u-bordeaux.fr


# past releases

v1.2.1 (June 2023):  Fixes some minor bugs in the atmospheric evolution module.
Addition of a contribution function in the atmospheric radiative transfer module.
See the atmosphere tutorial for an example.

v1.2.0 (July 2022): The model for atmospheric evolution is finally stable and documented.
The atm module has also seen several note worthy additions: surface albedo, oceans. 
We also added a framework for an automatic test suite. In particular, we can test several python versions. Additional tests should rapidly come along.
Rosseland and Planck mean opacities can now be computed from radiative tables. 

v1.1.0 (August 2021): New scheme for the computation of atmospheric emission/transmission
to ensure an improved numerical accuracy. The variable names to instantiate atm objects have
changed accordingly (see tutorial). 

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.

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.

            

Raw data

            {
    "_id": null,
    "home_page": "https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public",
    "name": "Exo-k",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.8",
    "maintainer_email": null,
    "keywords": "opacities, cross sections, correlated-k, spectra, atmosphere, atmospheric, exoplanet, radiative transfer",
    "author": "Jeremy Leconte",
    "author_email": "jeremy.leconte@u-bordeaux.fr",
    "download_url": "https://files.pythonhosted.org/packages/fa/f0/3779fd0ffe2e7d40208dfd6f15b7bf3be06f6df2d68a11f9d7e2d6e045ef/exo_k-1.3.0.tar.gz",
    "platform": null,
    "description": "# Exo_k\n\n![Stable Version](https://img.shields.io/pypi/v/exo_k?label=stable)\n![Python Versions](https://img.shields.io/pypi/pyversions/exo_k)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)\n\nAuthor: Jeremy Leconte (CNRS/LAB/Univ. Bordeaux)\n\n`Exo_k` is a Python 3 based library to handle radiative opacities from various sources for atmospheric applications.\nIt now comes with a full-fledged 1D atmospheric evolution model.\n\nIt enables you to:\n\n* Interpolate efficiently and easily in correlated-k and cross section tables.\n* Convert easily correlated-k and cross section tables from one format to another\n  (hdf5, LMDZ GCM, Exomol, Nemesis, PetitCode, TauREx, ExoREM, ARCIS, etc.).\n* Adapt precomputed correlated-k tables to your needs by changing:\n\n  * the spectral and quadrature (g) grids,\n  * the pressure/temperature grid.\n* Create tables for a mix of gases using tables for individual gases.\n* Create your own tables from high-resolution spectra (for example from K-spectrum, Helios-K, etc.).\n* Use your data in an integrated radiative transfer framework to simulate planetary atmospheres.\n* Compute the physical state of planetary atmospheres in radiative-convective equilibrium.\n  \nFor a complete online documentation, checkout:\nhttp://perso.astrophy.u-bordeaux.fr/~jleconte/exo_k-doc/index.html\n\nIn this repository, you'll find a [tutorial jupyter notebook](https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public/-/blob/public/tutorials/tutorial-exo_k.ipynb) that will show you how to do all that\nwith concrete examples that you can run on your own machine. Many important concepts and options are\npresented along the way.\n\nEnjoy!\n\nJ. Leconte\n\n# Acknowledgements\n\nIf you use this library in your research, please acknowledge it by citing\n[Leconte (2021)](https://ui.adsabs.harvard.edu/abs/2021A%26A...645A..20L/abstract):\n\n  * Spectral binning of precomputed correlated-k coefficients. **Astronomy and Astrophysics** 645. Leconte, J. 2021. doi:10.1051/0004-6361/202039040\n\nThis project has received funding from the European Research Council (ERC)\nunder the European Union's Horizon 2020 research and innovation programme\n(grant agreement n\u00b0 679030/WHIPLASH).\n\nThe framework for this documentation has been developped by Aurelien Falco using Sphinx.\nThe Framework for automatic testing has been developped by Alexandre Mechineau. \n\n# last release (see past releases below)\n\nv1.2.2 (September 2023): Improvement have been made on the development side. We added a conda environment allowing \nto easily contribute to `Exo_k`. Dependencies have been updated.\n\n# Installation\n\nExo_k can be installed using pip (without cloning the repository;\ndependencies should be downloaded automatically):\n```shell\npip install exo_k\n```\n\n# Usage\n\nTo learn how to use `exo_k`, you can follow the [tutorial jupyter notebook](https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public/-/blob/public/tutorial-exo_k.ipynb).\n\nHave fun!\n\n# Links\n\n* Project homepage: http://perso.astrophy.u-bordeaux.fr/~jleconte/\n* Code repository: https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public\n* Documentation: http://perso.astrophy.u-bordeaux.fr/~jleconte/exo_k-doc/index.html\n* Contact: jeremy.leconte at u-bordeaux.fr\n\n\n# past releases\n\nv1.2.1 (June 2023):  Fixes some minor bugs in the atmospheric evolution module.\nAddition of a contribution function in the atmospheric radiative transfer module.\nSee the atmosphere tutorial for an example.\n\nv1.2.0 (July 2022): The model for atmospheric evolution is finally stable and documented.\nThe atm module has also seen several note worthy additions: surface albedo, oceans. \nWe also added a framework for an automatic test suite. In particular, we can test several python versions. Additional tests should rapidly come along.\nRosseland and Planck mean opacities can now be computed from radiative tables. \n\nv1.1.0 (August 2021): New scheme for the computation of atmospheric emission/transmission\nto ensure an improved numerical accuracy. The variable names to instantiate atm objects have\nchanged accordingly (see tutorial). \n\nv1.0.2 (June 2021): Adds a few missing dependencies. Enables computation of thermal\nemission spectra with scattering through the two-stream method (full documentation pending). \nEnables creating Xtables for a mix of gases (CIA can be added as well). Solves some issues\nwith the 2018 Hitran CIA format.\n\nv1.0.1 (Jan 2021): Solves a binary/string conversion issue introduced by version 3 of h5py.\nEnables linear interpolation in pressure (default is log). Enables creation of\nempty tables to be filled later and extension of the spectral range of existing tables. \n\nv1.0.0 (Dec 2020): Finally our first official version. Creation of a\n'examples' notebook with fully worked out use cases for the `Exo_k`. \n\nv0.0.5 (Oct 2020): Ensures compatibility with latest Exomol correlated-k and cross-section tables.\n",
    "bugtrack_url": null,
    "license": "GPLv3",
    "summary": "Library to handle radiative opacities from various sources for atmospheric applications",
    "version": "1.3.0",
    "project_urls": {
        "Documentation": "https://perso.astrophy.u-bordeaux.fr/~jleconte/exo_k-doc/index.html",
        "Homepage": "https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public",
        "Repository": "https://forge.oasu.u-bordeaux.fr/jleconte/exo_k-public"
    },
    "split_keywords": [
        "opacities",
        " cross sections",
        " correlated-k",
        " spectra",
        " atmosphere",
        " atmospheric",
        " exoplanet",
        " radiative transfer"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1315df5b113b955733b81430c57832c51d5aa5f326ab82220cb32a14ea00f4b9",
                "md5": "feaf89ee397aed02a9c26fe76d50dfd8",
                "sha256": "80c9bc0ac842ef3625a4afbb545d1ca101dc773bf454f223a1da002fcc13d4c7"
            },
            "downloads": -1,
            "filename": "exo_k-1.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "feaf89ee397aed02a9c26fe76d50dfd8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8",
            "size": 190195,
            "upload_time": "2024-09-17T09:49:36",
            "upload_time_iso_8601": "2024-09-17T09:49:36.090391Z",
            "url": "https://files.pythonhosted.org/packages/13/15/df5b113b955733b81430c57832c51d5aa5f326ab82220cb32a14ea00f4b9/exo_k-1.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "faf03779fd0ffe2e7d40208dfd6f15b7bf3be06f6df2d68a11f9d7e2d6e045ef",
                "md5": "3ecc4a09c231e750cdcf343f55b7e7f3",
                "sha256": "a3e77e4021c25f82815bee66755a55cf9bd3be8bb7ac89bfaefce8b758225510"
            },
            "downloads": -1,
            "filename": "exo_k-1.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3ecc4a09c231e750cdcf343f55b7e7f3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8",
            "size": 165497,
            "upload_time": "2024-09-17T09:49:37",
            "upload_time_iso_8601": "2024-09-17T09:49:37.969477Z",
            "url": "https://files.pythonhosted.org/packages/fa/f0/3779fd0ffe2e7d40208dfd6f15b7bf3be06f6df2d68a11f9d7e2d6e045ef/exo_k-1.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-17 09:49:37",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "exo-k"
}
        
Elapsed time: 0.41733s