Skip to main content

Correction for the HST/STIS echelle blaze function.

See documentation at https://stisblazefix.readthedocs.io

Build Status Test Coverage Documentation Status

This module contains a variety of functions to correct the blaze function in HST STIS echelle modes. It is intended for use with STIS echelle x1d FITS files. Most users will be interested in the fluxfix function.

The stisblazefix.py module contains the following routines:

  • fluxfix takes a list of x1d FITS files and generates corrected x1f files and diagnostic plots.

  • fluxcorrect takes a shift to the blaze function and recalculates the flux and error.

  • residcalc takes an echelle spectrum and calculates the flux residuals for the overlapping region.

  • generateplot takes an old and a corrected spectrum and generates a diagnostic plot.

  • residfunc is a wrapper for the lmfit minimizer.

  • findshift calculates the shift to the blaze function that best aligns the spectrum.

  • plotblaze plots the sensitivity curves for an extracted spectrum.

  • cliprange is used to set the Y range for some of the plots to exclude outliers.

  • mkdqmask creates a mask based on the bits set in data quality flags.

IDL version by C. Proffitt (Jan 2017) Python adaptation by M. Baer (Jun–Aug 2017) Additional fixes by C. Proffitt (Aug–Sep 2017)

Metadata

Release files for stisblazefix 1.2.0

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

Source distribution (sdist)

Source distribution for stisblazefix 1.2.0
File Size Uploaded Provenance
stisblazefix-1.2.0.tar.gz 15.3 MB With provenance Details

Built distribution (wheel)

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

Total release size: 15.3 MB

Release files / stisblazefix-1.2.0.tar.gz

Download URL stisblazefix-1.2.0.tar.gz
Size 15.3 MB
Tags Source
SHA-256 checksum
How to use checksums
6bb4e41fa3bcdc5bfa543279fb2a2931e28ed1596981dfdaea1683d7dac17e02
BLAKE2b-256 checksum
How to use checksums
d19f6387eeedd2c970fb627521ae2dc9a883750aab728978da5cc49f50512473
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.

Transparency log

Release files / stisblazefix-1.2.0-py3-none-any.whl

Download URL stisblazefix-1.2.0-py3-none-any.whl
Size 14.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1c4f757ecd3e703667589809f463aa2a5ee3e9add02ff89d9a36e94b0b9fb6f
BLAKE2b-256 checksum
How to use checksums
8e02c67d39a72757085c184b303d1acc789bafc138ab50f1f841c7adedf06971
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.

Transparency log

Security for stisblazefix 1.2.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for stisblazefix-1.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 2, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files Full provenance

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