Algorithms for cleaning JWST data.
SnowblindStep: mask cosmic ray showers and snowballsJumpPlusStep: flag jumps and saturated pixels caused by cosmic rays properly when there are frame-averaged groupsPersistenceFlagStep: flag pixels due to persistence between exposuresRcSelfCalStep: 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.step import RampFitStep
from jwst.step import GainScaleStep
steps = {
"jump": {
"save_results": True,
},
"ramp_fit": {
"skip": True,
},
"gain_scale": {
"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 = GainScaleStep.call(rate)
rate.save(rate.meta.filename.replace("snowblind", "rate"))
More to come on the other steps available.
Metadata
Release files for snowblind 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snowblind-0.2.1.tar.gz | 19.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snowblind-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.9 kB
Release files / snowblind-0.2.1.tar.gz
| Download URL | snowblind-0.2.1.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1728e48c403a151208f4ba72161be4159b161d14bad7bfac53938a53320b7eb9
|
|
BLAKE2b-256 checksum How to use checksums |
887ff76156ac347298342d6c45cd0e6f86047c9a48c22de0963dbb0b99eca30c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / snowblind-0.2.1-py3-none-any.whl
| Download URL | snowblind-0.2.1-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df431a6a2491caae5c66b492ec54c88b898ec72d4da9386bf6916e817f01b228
|
|
BLAKE2b-256 checksum How to use checksums |
6f2b4480abbe19e1f86195694670509ad64fc5a91feeadce3d24a657a3f61ffb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|