Skip to main content

Mask cosmic ray showers (snowballs) in JWST data

Project description

Algorithms for cleaning JWST data.

  • SnowBlindStep: mask cosmic ray showers and snowballs
  • JumpPlusStep: flag jumps and saturated pixels caused by cosmic rays properly when there are frame-averaged groups
  • PersistenceFlagStep: flag pixels due to persistence between exposures
  • RcSelfCalStep: flag new hot pixels

Installation

pip install snowblind

Usage

The steps in snowblind run like any other pipeline steps. From the command line:

strun snowblind jw001234_010203_00001_nrcalong_jump.fits --suffix=snowblind

In Python:

from snowblind import SnowblindStep
from jwst.pipeline import Detector1Pipeline
from jwst.ramp_fitting import RampFitStep


steps = {
    "jump": {
        "save_results": True,
    }
    "ramp_fit": {
        "skip": True
    }
}

Detector1Pipeline.call("jw001234_010203_00001_nrcalong_uncal.fits", steps=steps)
SnowblindStep.call("jw001234_010203_00001_nrcalong_jump.fits", save_results=True, suffix="snowblind")
rate, rateints = RampFitStep.call("jw001234_010203_00001_nrcalong_snowblind.fits")
rate.save(cal.meta.filename.replace("snowblind", "rate"))

More to come on the other steps available.

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

snowblind-0.1.0.tar.gz (19.1 kB view hashes)

Uploaded Source

Built Distribution

snowblind-0.1.0-py3-none-any.whl (11.5 kB view hashes)

Uploaded Python 3

Supported by

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