A JAX-based library for post-processing coronagraphic direct imaging data.
This project has been archived.
The maintainers of this project have marked this project as archived. No new releases are expected.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file coronablink-1.0.1.tar.gz.
File metadata
- Download URL: coronablink-1.0.1.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1dd878adbd906db1e1d2c38b3d314bbe100a22db6b52d061d40dc2839be5ed17
|
|
| MD5 |
973ccb06e44a4148dc4edb83848e1554
|
|
| BLAKE2b-256 |
9c29a0522762f3259da28df46e92c16bc4c1864237cd2314b59125f837feaaae
|
Provenance
The following attestation bundles were made for coronablink-1.0.1.tar.gz:
Publisher:
publish-to-pypi.yml on CoreySpohn/coronablink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coronablink-1.0.1.tar.gz -
Subject digest:
1dd878adbd906db1e1d2c38b3d314bbe100a22db6b52d061d40dc2839be5ed17 - Sigstore transparency entry: 858020821
- Sigstore integration time:
-
Permalink:
CoreySpohn/coronablink@0cede7b429f4fa59c8f53bcce2b5f74bd5e2be4c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@0cede7b429f4fa59c8f53bcce2b5f74bd5e2be4c -
Trigger Event:
push
-
Statement type:
File details
Details for the file coronablink-1.0.1-py3-none-any.whl.
File metadata
- Download URL: coronablink-1.0.1-py3-none-any.whl
- Upload date:
- Size: 32.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b047669875b5fe1a80eada8664f97111592891a734e182f3b0fbebb767f72845
|
|
| MD5 |
c3620d7fa199c990e83586c8675eab83
|
|
| BLAKE2b-256 |
1cee62ed0c0c05034ace9199bb0c9acc649dcf194594ba5935bb8f87ba9cd18e
|
Provenance
The following attestation bundles were made for coronablink-1.0.1-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on CoreySpohn/coronablink
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coronablink-1.0.1-py3-none-any.whl -
Subject digest:
b047669875b5fe1a80eada8664f97111592891a734e182f3b0fbebb767f72845 - Sigstore transparency entry: 858020890
- Sigstore integration time:
-
Permalink:
CoreySpohn/coronablink@0cede7b429f4fa59c8f53bcce2b5f74bd5e2be4c -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@0cede7b429f4fa59c8f53bcce2b5f74bd5e2be4c -
Trigger Event:
push
-
Statement type: