A JAX-based library for post-processing coronagraphic direct imaging data.
Project description
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
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
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.
Project details
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 coronalyze-1.0.3.tar.gz.
File metadata
- Download URL: coronalyze-1.0.3.tar.gz
- Upload date:
- Size: 26.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
552c6e000cb880572c649702208d7df3a53385389df1519c0eedd3aa25a3b700
|
|
| MD5 |
e62732726b22a3fe47ae710783668fbb
|
|
| BLAKE2b-256 |
8c9d85973bb4f11f30cb24280557ccea4e5d1b469f3bd4cb16588f6517908f01
|
Provenance
The following attestation bundles were made for coronalyze-1.0.3.tar.gz:
Publisher:
publish-to-pypi.yml on CoreySpohn/coronalyze
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coronalyze-1.0.3.tar.gz -
Subject digest:
552c6e000cb880572c649702208d7df3a53385389df1519c0eedd3aa25a3b700 - Sigstore transparency entry: 864307552
- Sigstore integration time:
-
Permalink:
CoreySpohn/coronalyze@5f40cab08a63a5673ee2a26dec0fca9aa5087ea9 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@5f40cab08a63a5673ee2a26dec0fca9aa5087ea9 -
Trigger Event:
push
-
Statement type:
File details
Details for the file coronalyze-1.0.3-py3-none-any.whl.
File metadata
- Download URL: coronalyze-1.0.3-py3-none-any.whl
- Upload date:
- Size: 32.4 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 |
249eecaca5912bc3fe3ffc91221d5d0cea06004927e645112ec2e125aa87f1b6
|
|
| MD5 |
7cca9ce2b83a19cdbab87197eefa79c9
|
|
| BLAKE2b-256 |
842abc4880b249beedfc3de04ada217b64e917af4a47295a83f6a88e17ceb491
|
Provenance
The following attestation bundles were made for coronalyze-1.0.3-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on CoreySpohn/coronalyze
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coronalyze-1.0.3-py3-none-any.whl -
Subject digest:
249eecaca5912bc3fe3ffc91221d5d0cea06004927e645112ec2e125aa87f1b6 - Sigstore transparency entry: 864307576
- Sigstore integration time:
-
Permalink:
CoreySpohn/coronalyze@5f40cab08a63a5673ee2a26dec0fca9aa5087ea9 -
Branch / Tag:
refs/tags/v1.0.3 - Owner: https://github.com/CoreySpohn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@5f40cab08a63a5673ee2a26dec0fca9aa5087ea9 -
Trigger Event:
push
-
Statement type: