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
archNEMESIS is tested with Python 3.10–3.13.
We recommend using a clean Python environment. Choose either Python's built-in venv or Conda (including Anaconda or Miniconda); either is fine for both installation methods below.
Creating an environment
Using venv
Create a virtual environment with a supported Python version:
python -m venv archnemesis-env
Activate it in bash or zsh:
source archnemesis-env/bin/activate
For csh or tcsh, use this instead:
source archnemesis-env/bin/activate.csh
Using Conda
Alternatively, create and activate a Conda environment (Python 3.12 is used here):
conda create -n archnemesis python=3.12
conda activate archnemesis
Conda manages the environment, but archNEMESIS itself is installed using pip.
With your chosen environment active, select one of the following installation methods.
Installing from PyPI
For the latest stable release, run:
pip install archnemesis
This installs archNEMESIS along with its dependencies. It is the recommended method if you want to use the library without editing the source code.
Installing from GitHub (developer mode)
For the latest development version, clone the repository, move into its directory, and install in editable mode. The code is available under a GNU General Public License v3.
git clone https://github.com/juanaldayparejo/archnemesis-dist.git
cd archnemesis-dist
pip install --editable .
This installs archNEMESIS along with its required dependencies while keeping the source editable. Changes to the local source code are reflected without reinstalling the package.
Downloading archNEMESIS spectroscopic databases
Several features of archNEMESIS, including the calculation of absorption cross sections and correlated-k coefficients, rely on spectroscopic line parameters from databases such as HITRAN, HITEMP, GEISA, and ExoMol. To perform these calculations, the spectroscopic line data must be stored in the archNEMESIS database format.
Reference spectroscopic databases compatible with archNEMESIS are available from our dedicated collection on DIGITAL.CSIC:
Users wishing to work with spectroscopic databases that are not included in this collection can generate their own archNEMESIS-formatted databases. If you require assistance with this process, please contact us.
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: jalday@iaa.es
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.1.0 (25 June, 2026)
- Option for custom planet parameters.
- Calculations for selection averaging points for disc-averaged measurements.
- Implementation of special forward model for primary transit observations of exoplanets.
- Filter signal integration for modelling radiometer-like instruments.
- Implementation of first version of Emissions_0 class for modelling atmospheric emissions.
- Optimised code to allow for fewer classes to be defined.
- Major update in line data calculations: created archNEMESIS format for storing spectroscopic line data.
- Major update in line data calculations: optimised absorption cross section calculations with numba.
- Major update in line data calculations: implemented functionality to calculation a pseudo-continuum from weak lines.
- Major update in line data calculations: implemented functionality to run calculation of cross sections at runtime (ILBL=1).
-
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
Metadata
Release files for archnemesis 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| archnemesis-1.2.0.tar.gz | 583.7 kB | With provenance | Details for archnemesis-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| archnemesis-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for archnemesis-1.2.0-py3-none-any.whl |
Total release size: 1.3 MB
Release files / archnemesis-1.2.0.tar.gz
| Download URL | archnemesis-1.2.0.tar.gz |
|---|---|
| Size | 583.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
296f259da0bc7b748d4d21c855d5aff54c1262a7638a567d7cd9f5fa8808921e
|
|
BLAKE2b-256 checksum How to use checksums |
35cbd4d52d8af33da6c6e471ce987d0149f91203d0493be77f9454fd37140787
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / archnemesis-1.2.0-py3-none-any.whl
| Download URL | archnemesis-1.2.0-py3-none-any.whl |
|---|---|
| Size | 686.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
409b32fe384d4e37eb5bb714ba54b47a5637a5c8a03d294c95ae6138333bf452
|
|
BLAKE2b-256 checksum How to use checksums |
a179655ce0e8af03bdcc35b1a3aedf4ab7b73a7e8afbfb3e2bd667d7566bbc1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for archnemesis 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for archnemesis-1.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.