exorel
A Bayesian inverse retrieval algorithm to interpret exoplanetary reflected light spectra.
Science Score: 67.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
✓DOI references
Found 8 DOI reference(s) in README -
✓Academic publication links
Links to: iop.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.2%) to scientific vocabulary
Repository
A Bayesian inverse retrieval algorithm to interpret exoplanetary reflected light spectra.
Basic Info
- Host: GitHub
- Owner: MDamiano
- License: apache-2.0
- Language: Python
- Default Branch: main
- Size: 697 KB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 5
Metadata Files
README.md

ExoReLR
Includes: * A routine to generate single reflected light spectra with and without noise and errorbars; * A routine to generate datasets of reflected light spectra using Sobol or random sequencing; * A retrieval routine based on nested sampling (i.e. MultiNest). * The retrieval routine can use the radiative transfer calculations or interpolation of existing generated datasets as physics forward model.
Authors
- Mario Damiano (Jet Propulsion Laboratory, California Institute of Technology)
- Renyu Hu (Jet Propulsion Laboratory, California Institute of Technology)
Collaborators
- Armen Tokadjian (Jet Propulsion Laboratory, California Institute of Technology)
- Zachary Burr (ETH Zurich - Jet Propulsion Laboratory, California Institute of Technology)
Installation:
Navigate to the desired location for the ExoReL folder. Therefore clone the code via git:
git clone https://github.com/MDamiano/ExoReL.git
Navigate into the downloaded ExoReL folder. Activate yout preferred python environment. Install python packages dependency:
pip install -r requirements.txt
Do not forget to make the folder reachable by python in your .bash_profile or .bashrc depending on your system
export PYTHONPATH="$PYTHONPATH:/full/path/of/folder/containing/ExoReL:"
After installation, upon the first import of the package, ExoReL will automaticaly download required files from GDrive. It generally teke less than a minute.
It will download the folders "PHOSTELLARMODEL" and "forward_mod" from the following link : Google Drive. The required folders will be placed inside the ExoReL folder.
Usage
You have to prepare the "retrievalexample.dat" and "forwardexample.dat" parameters files before running ExoReL.
You can generate a transmission spectrum by typing in a python instance or script.py file the following lines:
import ExoReL
spec = ExoReL.CREATE_SPECTRUM()
spec.run_forward('forward_example.dat')
You can run a retrieval by typing in a python instance or script.py file the following lines:
import ExoReL
ret = ExoReL.RETRIEVAL()
ret.run_retrieval('retrieval_example.dat')
To run the retrieval mode you need to have the MultiNest libraries installed in your system as well as pymultinest (v2.11).
pymultinest is MPI compatible, therefore, you can run ExoReL to perform the sampling of the retrieval in parallel (you will need to install mpi4py):
mpirun -np 10 python exorel_retrieval.py
Plotting the results
The plotting of the retrieval results is automatic and will produce the following graphs: * Chemistry of the atmosphere versus the atmospheric pressure; * Mean molecular mass versus the atmospheric pressure; * The input spectral data and the best fit model calculated by the Bayesian sampling; * The spectral contribution plot; * The traces of the fitted free parameters; * The posterior distribution corner plot.
In case pymultinest finds multiple solutions, ExoReL will automatically plot the aforementioned graphs for each of the solutions.
Code usage in literature
- Hu 2019, Information in the Reflected-light Spectra of Widely Separated Giant Exoplanets, ApJ, 887, 166.
- Damiano & Hu 2020, ExoReLR: A Bayesian Inverse Retrieval Framework for Exoplanetary Reflected Light Spectra, AJ, 159, 175.
- Damiano et al. 2020, Multi-orbital-phase and Multiband Characterization of Exoplanetary Atmospheres with Reflected Light Spectra, AJ, 160, 206.
- Damiano & Hu 2021, Reflected Spectroscopy of Small Exoplanets I: Determining the Atmospheric Composition of Sub-Neptunes Planets, AJ, 162, 200.
- Damiano & Hu 2022, Reflected Spectroscopy of Small Exoplanets II: Characterization of Terrestrial Exoplanets, AJ, 163, 299.
- Damiano et al. 2023, Reflected Spectroscopy of Small Exoplanets III: probing the UV band to measure biosignature gasses, AJ, 166, 157.
- Tokadjian et al. 2024, The Detectability of CH4/CO2/CO and N2O Biosignatures Through Reflection Spectroscopy of Terrestrial Exoplanets, AJ, 168, 292.
- Damiano et al. 2025, Effects of planetary mass uncertainties on the interpretation of the reflectance spectra of Earth-like exoplanets, AJ, 169, 97.
Acknowledgement
The research was carried out at the Jet Propulsion Laboratory, California Institute of Technology, under a contract with the National Aeronautics and Space Administration (80NM0018D0004). The High Performance Computing resources used in this investigation were provided by funding from the JPL Information and Technology Solutions Directorate.
License
Copyright © 2025, by the California Institute of Technology. ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged. Any commercial use must be negotiated with the Office of Technology Transfer at the California Institute of Technology.
This software may be subject to U.S. export control laws. By accepting this software, the user agrees to comply with all applicable U.S. export laws and regulations. User has the responsibility to obtain export licenses, or other export authority as may be required before exporting such information to foreign countries or providing access to foreign persons.
Licensed under the Apache License, Version 2.0 (the "Licence"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
How to cite ExoReL
Please refer to the CITATION file. It contains the specific citations to reference the ExoReL framework in your publication.
BUGS!!!
For any issues and bugs please send an e-mail at mario.damiano@jpl.nasa.gov, or submit an issue through the GitHub system.
Owner
- Name: Mario Damiano
- Login: MDamiano
- Kind: user
- Location: Pasadena, CA
- Repositories: 1
- Profile: https://github.com/MDamiano
Citation (CITATION)
@ARTICLE{2022AJ....163..299D,
author = {{Damiano}, Mario and {Hu}, Renyu},
title = "{Reflected Spectroscopy of Small Exoplanets II: Characterization of Terrestrial Exoplanets}",
journal = {\aj},
keywords = {Exoplanet atmospheric composition, Exoplanet atmospheres, Bayesian statistics, Bayes' Theorem, Posterior distribution, Prior distribution, Extrasolar rocky planets, 2021, 487, 1900, 1924, 1926, 1927, 511, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2022,
month = jun,
volume = {163},
number = {6},
eid = {299},
pages = {299},
doi = {10.3847/1538-3881/ac6b97},
archivePrefix = {arXiv},
eprint = {2204.13816},
primaryClass = {astro-ph.EP},
adsurl = {https://ui.adsabs.harvard.edu/abs/2022AJ....163..299D},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
@ARTICLE{2020AJ....159..175D,
author = {{Damiano}, Mario and {Hu}, Renyu},
title = "{EXOREL \$\{\}\^\{\{\textbackslashmathfrak\{R\}\}\} : A Bayesian Inverse Retrieval Framework for Exoplanetary Reflected Light Spectra}",
journal = {\aj},
keywords = {Planetary science, Planetary atmospheres, Bayesian statistics, Exoplanets, Extrasolar gaseous giant planets, Radiative transfer, Spectroscopy, 1255, 1244, 1900, 498, 509, 1335, 1558, Astrophysics - Earth and Planetary Astrophysics, Astrophysics - Instrumentation and Methods for Astrophysics},
year = 2020,
month = apr,
volume = {159},
number = {4},
eid = {175},
pages = {175},
doi = {10.3847/1538-3881/ab79a5},
archivePrefix = {arXiv},
eprint = {2003.01814},
primaryClass = {astro-ph.EP},
adsurl = {https://ui.adsabs.harvard.edu/abs/2020AJ....159..175D},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
GitHub Events
Total
- Release event: 6
- Delete event: 5
- Push event: 28
- Public event: 1
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 6
- Create event: 4
Last Year
- Release event: 6
- Delete event: 5
- Push event: 28
- Public event: 1
- Pull request review event: 2
- Pull request review comment event: 2
- Pull request event: 6
- Create event: 4
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 1
- Total pull requests: 4
- Average time to close issues: 8 minutes
- Average time to close pull requests: less than a minute
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 4
- Average time to close issues: 8 minutes
- Average time to close pull requests: less than a minute
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 3
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- MDamiano (1)
Pull Request Authors
- MDamiano (4)