Skip to main content

PyPI version GitHub release Downloads Documentation Status License ASCL.net DOI DOI Ask DeepWiki GitDiagram

ExoRad 2: The generic point source radiometric model

ExoRad 2 is a generic radiometric model for point-source photometry and spectroscopy. Given the description of an observational target and of an instrument, it estimates the performance metrics you need early in a mission or instrument design (signal and noise budgets, saturation and frame times, photometric apertures and wavelength bins) quickly, and without simulating the time-domain focal plane.

For each target and for each photometric and spectroscopic channel, ExoRad estimates, among others:

  • the signal in the pixels and the saturation time;
  • the photon, read and dark-current noise;
  • the optics self-emission and the zodiacal and sky foreground contributions;
  • the photometric aperture and the wavelength bins.

ExoRad 2 is the radiometric core of the Ariel radiometric simulator ArielRad and of ExoSim 2. Use it as a standalone command-line tool or as a library.

Do you need the full simulation? ExoRad gives you signal and noise budgets. If you need the time-domain focal plane (sub-exposures, pointing jitter, non-destructive reads and detector systematics against a known truth), use ExoSim 2, which builds on ExoRad's radiometric model.

Installation

ExoRad 2 requires Python 3.12, 3.13 or 3.14.

From PyPI

pip install exorad

From source

git clone https://github.com/ExObsSim/ExoRad2-public
cd ExoRad2-public
pip install .          # or: uv sync

For development, install the optional extras:

pip install -e ".[dev]"      # test and lint tools
pip install -e ".[docs]"     # documentation tools

Running ExoRad

Once installed, ExoRad is available as the exorad console script. Run exorad --help for the full list of options and exorad --version for the installed version.

A worked example ships in the examples/ folder. From the repository root:

exorad -p examples/payload_example.xml -t examples/test_target.csv -o example_run/results.h5

This writes a self-describing HDF5 file to example_run/results.h5. Render the per-target signal and noise plots with:

exorad-plot -i example_run/results.h5 -o example_run/plots/

If some targets cannot be observed, exorad still writes the good ones, prints the skipped names on stderr and exits with status 1, so that a batch script notices a partial run.

By default each run checks online whether a newer ExoRad release exists. Set the environment variable EXORAD_NO_VERSION_CHECK to any non-empty value to skip the check (import exorad never touches the network).

examples/quickstart.ipynb walks through the same run from the library API.

MCP server (AI assistants)

ExoRad ships an optional Model Context Protocol server so that an MCP-compatible AI assistant can answer questions grounded in the documentation, draft and validate a payload XML and a target list, run the pipeline as a supervised background job and explain the HDF5 output. Install the extra (it is self-contained: no checkout is needed) and run it:

pip install "exorad[mcp]"
exorad-mcp --work-dir /path/to/exorad-runs

Point your MCP client at the exorad-mcp command (for Claude Code: claude mcp add exorad -- exorad-mcp --work-dir /path/to/exorad-runs). Add --no-exec for a server that cannot run anything. It needs mcp>=2,<3; running pipelines is supported on Linux and macOS. See the MCP page for the client recipes, the tools and the safety model.

Documentation

The full documentation is available at https://exorad2-public.readthedocs.io/en/latest/.

An AI-generated overview of the codebase is also available on DeepWiki, and an interactive architecture diagram on GitDiagram. Both are generated automatically from the code and may be out of date or inaccurate: the documentation above is the reference.

To build the documentation yourself, install the docs extra and run:

nox -s docs                  # builds into build/
# or, from the docs/ folder:
cd docs && make html         # builds into docs/build/html/

Cite

If you use this software, please cite the paper:

Mugnai, Bocchieri & Pascale (2023). ExoRad 2.0: The generic point source radiometric model. Journal of Open Source Software, 8(89), 5348. doi:10.21105/joss.05348

Please also cite the archived software release: doi:10.5281/zenodo.8367214.

@article{Mugnai2023,
  title     = {ExoRad 2.0: The generic point source radiometric model},
  author    = {Mugnai, Lorenzo V. and Bocchieri, Andrea and Pascale, Enzo},
  journal   = {Journal of Open Source Software},
  year      = {2023},
  volume    = {8},
  number    = {89},
  pages     = {5348},
  doi       = {10.21105/joss.05348},
  url       = {https://doi.org/10.21105/joss.05348},
  publisher = {The Open Journal}
}

Machine-readable metadata is in CITATION.cff (GitHub's "Cite this repository") and .zenodo.json.

License

ExoRad 2 is released under the BSD 3-Clause License.

Metadata

Release files for exorad 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for exorad 2.3.0
File Size Uploaded Provenance Actions
exorad-2.3.0.tar.gz 22.7 MB With provenance Details for exorad-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for exorad 2.3.0
File Interpreter ABI Platform Actions
exorad-2.3.0-py3-none-any.whl Python 3 none any Details for exorad-2.3.0-py3-none-any.whl

Total release size: 24.9 MB

Release files / exorad-2.3.0.tar.gz

Download URL exorad-2.3.0.tar.gz
Size 22.7 MB
Tags Source
SHA-256 checksum
How to use checksums
4a9ca82d250dfd0af5e500a2d448acba2a5d6c91599bb03e314457ac6b2ed03d
BLAKE2b-256 checksum
How to use checksums
13f09af022f2d487d12ed3e53dcfac53575306f87955d2c5f38eb8b8b5a00dee
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 18, 2026.

Transparency log

Release files / exorad-2.3.0-py3-none-any.whl

Download URL exorad-2.3.0-py3-none-any.whl
Size 2.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
7715dccc851e7ba105be3015dd7ac15a0dc71be64f145678a9dce3c33657aecf
BLAKE2b-256 checksum
How to use checksums
1862e693c5f716c17966d1387d8d7e1d8f7e7066623250671e5931c23f6cd10c
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 18, 2026.

Transparency log

Security for exorad 2.3.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.

Select from 2 files

Attestation for exorad-2.3.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 18, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page