Skip to main content

HST/STIS echelle blaze function correction

Project description

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)

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

stisblazefix-1.2.0.tar.gz (15.3 MB view details)

Uploaded Source

Built Distribution

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

stisblazefix-1.2.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file stisblazefix-1.2.0.tar.gz.

File metadata

  • Download URL: stisblazefix-1.2.0.tar.gz
  • Upload date:
  • Size: 15.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for stisblazefix-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6bb4e41fa3bcdc5bfa543279fb2a2931e28ed1596981dfdaea1683d7dac17e02
MD5 763eb0299a566f8c15f5edf8910229b9
BLAKE2b-256 d19f6387eeedd2c970fb627521ae2dc9a883750aab728978da5cc49f50512473

See more details on using hashes here.

Provenance

The following attestation bundles were made for stisblazefix-1.2.0.tar.gz:

Publisher: publish.yml on spacetelescope/stisblazefix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stisblazefix-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: stisblazefix-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for stisblazefix-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1c4f757ecd3e703667589809f463aa2a5ee3e9add02ff89d9a36e94b0b9fb6f
MD5 8611d44f6f7468c2d1370b1ed6539335
BLAKE2b-256 8e02c67d39a72757085c184b303d1acc789bafc138ab50f1f841c7adedf06971

See more details on using hashes here.

Provenance

The following attestation bundles were made for stisblazefix-1.2.0-py3-none-any.whl:

Publisher: publish.yml on spacetelescope/stisblazefix

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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