Skip to main content

A JAX-based library for post-processing coronagraphic direct imaging data.

Project description

PyPI Documentation Status Tests License Python Versions


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

coronalyze-1.1.0.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coronalyze-1.1.0-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

Details for the file coronalyze-1.1.0.tar.gz.

File metadata

  • Download URL: coronalyze-1.1.0.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coronalyze-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a56fae365fba460e0dfcad6cacef89a726526640cff1a0bd4231a0dd98f5a70d
MD5 6cc5b7cae1974590ca2087fdac70febf
BLAKE2b-256 161eb02614cfd7c65f28c557771ab75129033a202cbdad5a00129cb73a8e5d4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for coronalyze-1.1.0.tar.gz:

Publisher: publish-to-pypi.yml on CoreySpohn/coronalyze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coronalyze-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: coronalyze-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for coronalyze-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38944b0ad0fd3f532a99a3f26d770c9d57ce8e0cfe6a0a15995e8615a94924e3
MD5 e6eed05845057d23d47754ae44f18691
BLAKE2b-256 005d0f12e04d49e7fc15de210a27fd3a548c894662d45d22d7d28c0c67c58684

See more details on using hashes here.

Provenance

The following attestation bundles were made for coronalyze-1.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on CoreySpohn/coronalyze

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page