Skip to main content

No project description provided

Project description

WINTER corrections

CI License: MIT Coverage Status

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:

DOI

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winternlc-2.0.0.tar.gz (174.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winternlc-2.0.0-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

Details for the file winternlc-2.0.0.tar.gz.

File metadata

  • Download URL: winternlc-2.0.0.tar.gz
  • Upload date:
  • Size: 174.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for winternlc-2.0.0.tar.gz
Algorithm Hash digest
SHA256 f9f943f69fc1bd9d5888401da4a7117bfbe8bea382cd442b3cc94d18994052cb
MD5 a9567525f9a7193197bc177529bd2da3
BLAKE2b-256 e5f4074c9f7c615d6ecc59184a1cce0cdec909e94d32772b3505cd1b9a0f471b

See more details on using hashes here.

File details

Details for the file winternlc-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: winternlc-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 34.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for winternlc-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3734cd131d84ef32598289fb8654c951c6a33d79bd9c313b05390d89fa25dcd9
MD5 a093a84d243dc7a4f7c99614871c34da
BLAKE2b-256 51f3157a309c065db12a30b603d82cb381bce680095dd1198d386677b5512611

See more details on using hashes here.

Supported by

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