coronalyze
coronalyze is a JAX-based Python library for post-processing coronagraphic direct imaging data. It is designed as a companion to coronagraphoto, providing analysis tools for simulated and (maybe) real coronagraphic observations.
Key Features
- SNR Estimation: Mawet et al. (2014) aperture photometry SNR with small-sample corrections
- PSF Subtraction: KLIP/PCA and reference differential imaging
- Planet Injection: Forward modeling for yield simulations
- JAX-Native: Fully JIT-compilable, differentiable, and GPU-accelerated
Installation
pip install coronalyze
(Note: You may need to install JAX separately to match your specific hardware acceleration requirements.)
Quick Start
Requires a residual image and planet positions from your observation.
import coronalyze as cz
import jax.numpy as jnp
# Calculate SNR at planet positions using Mawet et al. (2014)
snr_values = cz.snr(residual_image, planet_positions, fwhm=4.5)
# Or use the estimator pattern for efficient batch processing
estimator = cz.snr_estimator(fwhm=4.5)
snr_values = estimator(residual_image, planet_positions)
Pairing with coronagraphoto
Requires your scene, configured coronagraph, settings, and planet positions.
import coronagraphoto as cg
import coronalyze as cz
# Generate image with coronagraphoto
obs = cg.Observation(scene, coronagraph, settings)
obs.create_images()
science_image = obs.get_total_image()
# Get the star model for subtraction
star_model = obs.get_star_image()
# Subtract and calculate SNR
residual = cz.subtract_star(science_image, star_model)
snr_values = cz.snr(residual, planet_positions, fwhm=4.5)
Design Philosophy
Like its companion coronagraphoto, coronalyze provides primitives rather than black-box functions. You compose the analysis pipeline that fits your science case.
Documentation
Full documentation is available at coronalyze.readthedocs.io.
Metadata
Release files for coronalyze 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 |
|---|---|---|---|---|
| coronalyze-1.2.0.tar.gz | 40.6 kB | With provenance | Details for coronalyze-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| coronalyze-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for coronalyze-1.2.0-py3-none-any.whl |
Total release size: 87.5 kB
Release files / coronalyze-1.2.0.tar.gz
| Download URL | coronalyze-1.2.0.tar.gz |
|---|---|
| Size | 40.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
eae7ea89b028bad5cfde0fc919a32978718f114ab1d9fd926b30322a626ec604
|
|
BLAKE2b-256 checksum How to use checksums |
a9f5524ae6c13a39d78d16050071532ba43137432826827747bf496d170c1862
|
| 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 5, 2026.
Transparency logRelease files / coronalyze-1.2.0-py3-none-any.whl
| Download URL | coronalyze-1.2.0-py3-none-any.whl |
|---|---|
| Size | 46.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eb1a61bba6218f98c18228679f0f9ac4f163547b0741f8d15c0d9040ea7edec5
|
|
BLAKE2b-256 checksum How to use checksums |
ff184030f2be218e007bdd4c141a0a91967d63a5aecb028bd7df5e58be3cf7af
|
| 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 5, 2026.
Transparency logSecurity for coronalyze 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 coronalyze-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 5, 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.