Skip to main content

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

PyPI Documentation Status


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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

coronablink-1.0.0-py3-none-any.whl (32.5 kB view details)

Uploaded Python 3

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