No project description provided
Project description
WINTER corrections
A package for implementing nonlinearity corrections for WINTER.
- Current implementation is with a rational function with 8 parameters.
- Also has the ability to generate/fit polynomial and other rational functions.
TODO: add more to the bad pixel masking.
- Currently it only masks pixels which fail the rational fit or are tied high.
- To add: dead pixel and highly nonlinear pixels to the mask.
Installation
pip install -e ".[dev]"
pre-commit install
Download corrections files
The corrections files are too large for GIT, but these are automatically downloaded from zenodo:
The file winter_corrections/config.py
specifices which version and zenodo URL to grab. The current recommended versions are as follows:
- v0.1: original corrections files from June 2024 with six operational sensors.
- v1.1: latest correction files from September 2024 with five operational sensors.
Get Started
You can use winternlc directly from the command line.
winternlc-apply /path/to/data.fits
This will apply the nonlinearity correction to the data and save the corrected data to a new file.
You can also run the correction on multiple files at once.
winternlc-apply /path/to/data1.fits /path/to/data2.fits
Alternatively, you can specify a directory and all the files in the directory will be corrected.
winternlc-apply /path/to/directory
In all cases, you can also specify the output directory.
winternlc-apply /path/to/data.fits --output-dir /path/to/output
If you do not specify an output directory, the corrected files will be saved in the same directory as the input files.
See the help message for more information.
winternlc --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file winternlc-1.2.0.tar.gz
.
File metadata
- Download URL: winternlc-1.2.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3c004a1d7f467a533d2f9f5ffafeb6a59f95cf462fb191b0e4d390d919c444 |
|
MD5 | ace528674f30216a3eed7026cf5e9095 |
|
BLAKE2b-256 | 5e1c08453b6789a7ff7a4d95786867ff9670ec2f6bb313775d1027afb5710190 |
File details
Details for the file winternlc-1.2.0-py3-none-any.whl
.
File metadata
- Download URL: winternlc-1.2.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e93e7d49b444b2961a83162da6ceb746c9dca19dd92c2e802a2199a6b8e13f6f |
|
MD5 | 1dbc1484df3bf82f0867a8d63e8c267b |
|
BLAKE2b-256 | b1c0859286c3ce7f2df7040c8044e0f8f78b2a9286b2bf85d5526e4b96697adc |