Python implementation of the NEMESIS radiative transfer and retrieval code
Project description
ArchNEMESIS is an open-source Python package developed for the analysis of remote sensing spectroscopic observations of planetary atmospheres. It is based on the widely used NEMESIS (Non-linear Optimal Estimator for MultivariatE Spectral analySIS) radiative transfer and retrieval tool, which has been extensively used for the investigation of a wide variety of planetary environments.
ArchNEMESIS is currently maintained by Juan Alday and Joseph Penn. The NEMESIS algorithm, code archNEMESIS is based on, was originally developed by Patrick Irwin.
If interested users are missing key points in the documentation, would appreciate seeing jupyter notebooks for certain purposes, or want to report issues, please do so by contacting us or joining our Discord channel.
Documentation
For full documentation, visit archnemesis.readthedocs.io.
Installation
There are three main ways to install archNEMESIS, depending on your use case:
Installing from GitHub (developer mode)
The latest version of code has to be downloaded from Github under a GNU General Public License v3. To do so, type in the command window:
git clone https://github.com/juanaldayparejo/archnemesis-dist.git
Before installing archNEMESIS, we recommend users to create and load a new Python virtual environment for a clean install:
python -m venv name_of_virtual_environment/
source name_of_virtual_environment/bin/activate
Then move into the package directory:
cd archnemesis-dist
Finally, we need to install the library. Given that archNEMESIS is a highly dynamic package were new additions are frequently introduced, we recommend installing the package but keeping it editable by typing:
pip install --editable .
This will install archNEMESIS, but with the ability to update any changes made to the code (e.g., when introducing new model parameterisations or methods). In addition, it will install all the required libraries archNEMESIS depends on.
Installing from PyPI
The simplest way to install archNEMESIS is via PyPI.
We recommend doing this inside a clean Python virtual environment:
python -m venv archnemesis-env
source archnemesis-env/bin/activate
pip install archnemesis
This will install the latest stable release of the package along with its dependencies. It is the recommended method if you just want to use the library without editing the source code.
Contributing to archNEMESIS
If you want to contribute to the development of archNEMESIS, please follow our Contribution Guidelines.
Citing archNEMESIS
If archNEMESIS has been significant in your research, we suggest citing the following articles:
-
archNEMESIS reference publication:
- Alday, J., Penn, J., Irwin, P., Mason, J., Yang, J. and Dobinson, J. (2025) archNEMESIS: An Open-Source Python Package for Analysis of Planetary Atmospheric Spectra, Journal of Open Research Software, 13(1), p. 10. doi: 10.5334/jors.554.
-
NEMESIS reference publication:
- Irwin, P. G. J., Teanby, N. A., De Kok, R., Fletcher, L. N., Howett, C. J. A., Tsang, C. C. C., ... & Parrish, P. D. (2008). The NEMESIS planetary atmosphere radiative transfer and retrieval tool. Journal of Quantitative Spectroscopy and Radiative Transfer, 109(6), 1136-1150. doi: 10.1016/j.jqsrt.2007.11.006.
Support
If you have questions, suggestions, or encounter issues, you can:
- Open an issue on the GitHub Issues page
- Ask questions on the GitHub Discussions tab
- Join our Discord channel.
- Contact the maintainer via email: juan.alday@open.ac.uk
Please note: This is a research software package maintained as time allows. While we aim to respond in a timely manner (i.e., within a week), we cannot guarantee a fixed response time.
Revision history
-
1.0.6 (16 December, 2025)
- Fixing bugs to reconcile results with NEMESIS.
- Implemented LineData class with functionality to extract data from HITRAN using HAPI.
- Implemented first version of cross section calculations.
- Combined radiative transfer calculations with and without gradients in same function (CIRSradg is now CIRSrad(gradients=True)).
- Added forward modelling error capabilities.
- First implementation of nemesisdisc, forward model type for gradient calculations (no scattering) and multiple averaging points.
- Added functionality to read information from previous retrievals (LIN parameter).
- Implemented AOTF spectrometer modelling capabilities in nemesisSO.
- Implemented integration of signal across filters in nemesis (for modelling spectra from radiometers).
-
1.0.5 (8 July, 2025)
- New release of archNEMESIS for publication at Journal of Open Research Software.
- Fixed minor bugs throughout the code.
- Added unit test for calculation of optical properties using Mie Theory.
- Updated setup file to avoid dependency conflicts.
-
1.0.4 (2 July, 2025)
- New release of archNEMESIS for release on PyPI and Docker Hub.
-
1.0.3 (19 June, 2025)
- New release of archNEMESIS for first release on PyPI.
-
1.0.2 (19 June, 2025)
- Fixed minor bugs throughout the code.
- Included new model parameterisations.
- Included new automatic tests (e.g., forward models for solar occultation and limb geometry).
- Flags now identified with ENUMS rather than magic numbers.
- Model parameterisations now defined as classes.
-
1.0.1 (2 April, 2025)
- Fixed minor bugs throughout the code.
- Implementation of Oren-Nayar surface reflectance model.
- Implementation of different surface reflectance models in multiple scattering calculations.
- Included new automatic tests.
- Included new model parameterisations.
-
1.0.0 (27 January, 2025)
- First release for publication at Journal of Open Research Software.
Dependencies
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file archnemesis-1.0.6.tar.gz.
File metadata
- Download URL: archnemesis-1.0.6.tar.gz
- Upload date:
- Size: 361.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0dba83af6eafe747899597da0b96519b58c219ffd8b56bc2dd12704c55c1098b
|
|
| MD5 |
632717777e5cf86f48a7b46b7e69b5d7
|
|
| BLAKE2b-256 |
51dcbdf512b615a32f74d5c4d1e1e6c341a425b6d12d0743bf766b90d1314fd6
|
Provenance
The following attestation bundles were made for archnemesis-1.0.6.tar.gz:
Publisher:
publish.yml on juanaldayparejo/archnemesis-dist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archnemesis-1.0.6.tar.gz -
Subject digest:
0dba83af6eafe747899597da0b96519b58c219ffd8b56bc2dd12704c55c1098b - Sigstore transparency entry: 767043073
- Sigstore integration time:
-
Permalink:
juanaldayparejo/archnemesis-dist@4a5d2593e185f3848b11f2b0d2a46bbaff66b032 -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/juanaldayparejo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a5d2593e185f3848b11f2b0d2a46bbaff66b032 -
Trigger Event:
push
-
Statement type:
File details
Details for the file archnemesis-1.0.6-py3-none-any.whl.
File metadata
- Download URL: archnemesis-1.0.6-py3-none-any.whl
- Upload date:
- Size: 363.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5124ce192cf930b4336e5c6b9fa7550883e3ef8153478af9cd7620ce486854ce
|
|
| MD5 |
738b354763bc806f89a732fc39307d5a
|
|
| BLAKE2b-256 |
90ec6ee6557bae776cf1acf86a3b4485d539ce91d5bab5a8157faf56cd9e8113
|
Provenance
The following attestation bundles were made for archnemesis-1.0.6-py3-none-any.whl:
Publisher:
publish.yml on juanaldayparejo/archnemesis-dist
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archnemesis-1.0.6-py3-none-any.whl -
Subject digest:
5124ce192cf930b4336e5c6b9fa7550883e3ef8153478af9cd7620ce486854ce - Sigstore transparency entry: 767043079
- Sigstore integration time:
-
Permalink:
juanaldayparejo/archnemesis-dist@4a5d2593e185f3848b11f2b0d2a46bbaff66b032 -
Branch / Tag:
refs/tags/v1.0.6 - Owner: https://github.com/juanaldayparejo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4a5d2593e185f3848b11f2b0d2a46bbaff66b032 -
Trigger Event:
push
-
Statement type: