Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

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.

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)

Source distribution for coronablink 1.0.1
File Size Uploaded
coronablink-1.0.1.tar.gz 26.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coronablink 1.0.1
File Interpreter ABI Platform
coronablink-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 59.1 kB

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page