lacosmic

lacosmic is a Python package to remove cosmic rays from an astronomical image using the L.A.Cosmic algorithm. The algorithm is based on Laplacian edge detection and is described in van Dokkum (2001; PASP 113, 1420).

Requirements

lacosmic has the following requirements:

lacosmic also depends on pytest-astropy (0.4 or later) to run the test suite.

Installation

The latest released (stable) version of lacosmic can be installed with pip:

pip install lacosmic

If you want to make sure that none of your existing dependencies get upgraded, instead you can do:

pip install lacosmic --no-deps

User Documentation

Package to remove cosmic rays from an astronomical image using the L.A.Cosmic algorithm (van Dokkum 2001; PASP 113, 1420).

Functions

lacosmic(data, contrast, cr_threshold, ...)

Remove cosmic rays from an astronomical image using the L.A.Cosmic algorithm.

test(**kwargs)

Run the tests for the package.

Changelog