This project has been archived by its maintainers, and is no longer receiving any updates.
coronablink
coronablink 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.
The name references the blink comparator, the instrument used to discover Pluto by quickly switching between two photographic plates (which is cool and vaguely similar to RDI). Also it's supposed to be fast, which is why it's written in JAX.
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 coronablink
(Note: You may need to install JAX separately to match your specific hardware acceleration requirements.)
Quick Start
import coronablink as cb
import jax.numpy as jnp
# Calculate SNR at planet positions using Mawet et al. (2014)
snr_values = cb.snr(residual_image, planet_positions, fwhm=4.5)
# Or use the estimator pattern for efficient batch processing
estimator = cb.snr_estimator(fwhm=4.5)
snr_values = estimator(residual_image, planet_positions)
Pairing with coronagraphoto
import coronagraphoto as cg
import coronablink as cb
# 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 = cb.subtract_star(science_image, star_model)
snr_values = cb.snr(residual, planet_positions, fwhm=4.5)
Design Philosophy
Like its companion coronagraphoto, coronablink provides primitives rather than black-box functions. You compose the analysis pipeline that fits your science case.
Documentation
Full documentation is available at coronablink.readthedocs.io.
Metadata
Release files for coronablink 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coronablink-1.0.1.tar.gz | 26.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coronablink-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 59.1 kB
Release files / coronablink-1.0.1.tar.gz
| Download URL | coronablink-1.0.1.tar.gz |
|---|---|
| Size | 26.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dd878adbd906db1e1d2c38b3d314bbe100a22db6b52d061d40dc2839be5ed17
|
|
BLAKE2b-256 checksum How to use checksums |
9c29a0522762f3259da28df46e92c16bc4c1864237cd2314b59125f837feaaae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 27, 2026.
Transparency logRelease files / coronablink-1.0.1-py3-none-any.whl
| Download URL | coronablink-1.0.1-py3-none-any.whl |
|---|---|
| Size | 32.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b047669875b5fe1a80eada8664f97111592891a734e182f3b0fbebb767f72845
|
|
BLAKE2b-256 checksum How to use checksums |
1cee62ed0c0c05034ace9199bb0c9acc649dcf194594ba5935bb8f87ba9cd18e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Jan 27, 2026.
Transparency log