Skip to main content

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

Metadata

Release files for winternlc 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for winternlc 2.1.1
File Size Uploaded Provenance Actions
winternlc-2.1.1.tar.gz 175.0 kB Without provenance Details for winternlc-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for winternlc 2.1.1
File Interpreter ABI Platform Actions
winternlc-2.1.1-py3-none-any.whl Python 3 none any Details for winternlc-2.1.1-py3-none-any.whl

Total release size: 209.8 kB

Release files / winternlc-2.1.1.tar.gz

Download URL winternlc-2.1.1.tar.gz
Size 175.0 kB
Tags Source
SHA-256 checksum
How to use checksums
edd555959010ec83329838a70ea347fdf92a4924f42ec413cd90609077d5b158
BLAKE2b-256 checksum
How to use checksums
7034949d7ce579beac96f0f6a9e3a14b1912a6479593aeab3069ae800bbb07fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / winternlc-2.1.1-py3-none-any.whl

Download URL winternlc-2.1.1-py3-none-any.whl
Size 34.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7986291226cf1ed17dfe6c92806d033701e59fd33586e2947a44c1e71ea617a
BLAKE2b-256 checksum
How to use checksums
e58a0147dcd7b8989707912ed8cf741cdb220002c43cdc5ff6123c2caaf1346f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for winternlc 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page