Skip to main content

Qorona: eclipse-like synthetic imagery from coronal MHD models

CI DOI PyPI Documentation

Documentation · Quickstart · Products · HPC guide

Qorona turns a global coronal MHD solution into eclipse-like synthetic imagery. Its primary product is a line-of-sight integral of the perpendicular magnetic squashing factor Q⊥, the quantity that lights up the thin loops, streamers, and current sheets seen at a total solar eclipse. The result is rendered for morphological comparison against eclipse and coronagraph observations.

coronal MHD solution ──▶ read ──▶ resample ──▶ Q⊥ volume ──▶ LOS render ──▶ synthetic eclipse image

Install

With pip (the latest release):

pip install qorona

With conda (the development version, from source):

git clone https://github.com/RayanDhib/Qorona.git
cd Qorona
conda env create -f environment.yml
conda activate qorona

On a cluster, install from PyPI into a plain virtual environment; the installation guide has the details.

Quickstart

The quickstart data, coconut_corona.CFmesh.xz (~165 MB, an example COCONUT solution), is a release asset: download it into data/. Build the viewpoint-independent Q⊥ volume once, then render any number of viewpoints off it in seconds.

# 1. Inspect a solution (model, mesh, variables, boundaries), no rendering.
qorona info data/coconut_corona.CFmesh.xz --timestamp 2025-10-09T18:19:52

# 2. Build the viewpoint-independent Q⊥ volume once (the minutes-scale stage).
qorona build data/coconut_corona.CFmesh.xz -o data/coconut_corona.qor \
    --timestamp 2025-10-09T18:19:52 --frame carrington --outer-radius 8

# 3. Render any number of viewpoints off that volume (seconds each).
qorona render data/coconut_corona.qor -o data/eclipse.png --fov 8 --longitude 317 --latitude 6.2

Synthetic eclipse render of the COCONUT corona

How it works

  1. Read the native solution and resample it onto an internal spherical grid.
  2. Trace the field lines and transport deviation vectors along them.
  3. Store the squashing factor Q⊥ in a volume that does not depend on the viewpoint (a .qor file).
  4. Integrate log₁₀ Q⊥ along the line of sight, with an orthographic or a perspective camera.

Supported models

COCONUT (COOLFluiD .CFmesh, Tecplot .plt), MAS (HDF4, HDF5), and Icarus (MPI-AMRVAC heliospheric .vtu). See Supported models for the formats and the papers of each model.

Citing

If you use Qorona, please cite both the software and its accompanying paper.

Software (all versions), via the Zenodo concept DOI: 10.5281/zenodo.20630699.

Paper (The Astrophysical Journal):

Dhib, R., Ben Ameur, F., Baratashvili, T., Jeong, H.-J., Wang, H., Noraz, Q., Schmieder, B., Lani, A., & Poedts, S. Qorona: Open, Model-Agnostic Line-of-Sight Rendering of the Perpendicular Squashing Factor for Eclipse-like Coronal Imaging. The Astrophysical Journal, 1010, 152 (2026). doi:10.3847/1538-4357/aea841

@article{dhib2026qorona,
  author  = {Dhib, Rayan and Ben Ameur, Firas and Baratashvili, Tinatin and
             Jeong, Hyun-Jin and Wang, Haopeng and Noraz, Quentin and
             Schmieder, Brigitte and Lani, Andrea and Poedts, Stefaan},
  title   = {{Qorona: Open, Model-Agnostic Line-of-Sight Rendering of the
             Perpendicular Squashing Factor for Eclipse-like Coronal Imaging}},
  journal = {The Astrophysical Journal},
  year    = {2026},
  volume  = {1010},
  number  = {2},
  pages   = {152},
  doi     = {10.3847/1538-4357/aea841}
}

License

GPL-3.0-or-later. See LICENSE.

Metadata

Release files for qorona 0.5.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 qorona 0.5.0
File Size Uploaded Provenance Actions
qorona-0.5.0.tar.gz 2.6 MB Without provenance Details for qorona-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 5.2 MB

Release files / qorona-0.5.0.tar.gz

Download URL qorona-0.5.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
3fb7aaf3685aeee2373e0cd227a715f9aef89cf4b310d07ac6d18d6f19186188
BLAKE2b-256 checksum
How to use checksums
dca046d66d2e00d95466ecedea12058e60a8e40e25535f9a106a997676ecb701
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / qorona-0.5.0-py3-none-any.whl

Download URL qorona-0.5.0-py3-none-any.whl
Size 2.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
5da6947fb0e0dcc589d601481185b0506e3461efa0c9d04f2edebaf56959a5f1
BLAKE2b-256 checksum
How to use checksums
5db359f94a1dd7715d7990fc8523268271cead719328eebecd608422735646d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for qorona 0.5.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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