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.1.0.tar.gz (174.8 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.1.0-py3-none-any.whl (34.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for winternlc-2.1.0.tar.gz
Algorithm Hash digest
SHA256 2a7cd0134cb01f073fd6a88765e850737d18b2642f9340db7a85d5f278d370a4
MD5 fe76d128814573aa6b66981a8d213567
BLAKE2b-256 14d3cbafcfdd46e621df8bc346281bb1755aa7449e8b37eca5af2466bd72b233

See more details on using hashes here.

File details

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

File metadata

  • Download URL: winternlc-2.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06672e7e0a344ee5bb7162177d1a40d1f8150046b8952853439ea0cc8b358426
MD5 90a7ad9d84cf6ab6cb81d15212f94119
BLAKE2b-256 4fe29c6faa3273a3b628a640a068c3ee2ceea3cef0693d93ee92a9fcb204a533

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