Skip to main content

Calibration software for COS (Cosmic Origins Spectrograph)

Project description

Release notes for 2.21:

  • When x1dcorr in costools (x1d.py in calcos) is called to extract a 1-D spectrum, the flt and counts files are first recreated from the corrtag file. These files contained WCS keywords that were copied without change from the input corrtag table, and these table-specific keywords are not permitted in image headers. This was fixed by calling the function to populate the spectroscopic keywords.

  • A TEAL interface has been added to the calcos source directory, which allows the user to see and edit the calcos parameters interactively (import calcos; from stsci.tools import teal; teal.teal(“calcos”)).

  • The variables used for data quality flags have been renamed to agree with the interpretations of the data quality values for the latest bad pixel table, as described in the Data Handbook.

  • A bug was fixed in the code for trapping a missing-row exception. This is relevant primarily when writing a “calcos sum” (csum) file; calcos must trap the exception, write the csum file, and continue processing until all input files have been calibrated at least to the point of writing the csum file.

  • CALCOS was modified to use astropy.io.fits in place of the stand-alone PyFITS module.

  • The check on whether the aperture name is in the list of recognized values has been extended to include “N/A”, which is valid for dark exposures.

  • Calcos now checks the value of wavecorr before updating WAVECALS so that the WAVECALS keyword will only be updated if wavecorr is COMPLETE.

  • A new column has been included in the wavecal parameters table, giving a zero-point offset for the search range. Calcos now reads this column (if it is present) in the WCPTAB and adds the offset to the limits of the search range.

  • The EXPTIME keyword in NUV x1dsum files has been fixed. When averaging spectra to make an x1dsum table, the exposure time keyword was incremented for each stripe, in addition to each input file, resulting in a value that was three times too large. (The EXPTIME column was already correct.)

  • Calcos checks that EXPEND - EXPSTART is not zero when computing the exposure time needed to scale the flat-field when averaging spectra.

  • Code now gets DETECTOR from PRIMARY header when including the flat-field in the weight when averaging 1-D spectra.

  • The first or last pixel of an x1dsum table sometimes had a data quality value of 0, even when that pixel was actually off the detector and should have been flagged as bad. This has been fixed.

  • The exposure time keyword now gets updated before writing the csum file, so that if calcos fails due to a bad value of the APERTURE keyword, the exposure time keyword in the csum file will be correct.

  • CALCOS now checks the value of WAVECORR before updating the WAVECALS primary header keyword and only updates if WAVECORR=COMPLETE.

  • Code now uses boxcar function from stsci.convolve.

Project details


Download files

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

Source Distributions

calcos-2.21.zip (261.6 kB view details)

Uploaded Source

calcos-2.21.tar.gz (242.6 kB view details)

Uploaded Source

Built Distribution

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

calcos-2.21-py2.7-win32.egg (487.2 kB view details)

Uploaded Egg

File details

Details for the file calcos-2.21.zip.

File metadata

  • Download URL: calcos-2.21.zip
  • Upload date:
  • Size: 261.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for calcos-2.21.zip
Algorithm Hash digest
SHA256 e90758cb79e36a5e539c4530419d7f97dde8a2a46eb38fab5b8209dc6d4a78cc
MD5 22062b7f6d38fdc591967f6df906d6db
BLAKE2b-256 bb58678af50fb0e3d0f9d7308e660587d1bc8a01cedfc91a1991382dbf808240

See more details on using hashes here.

File details

Details for the file calcos-2.21.tar.gz.

File metadata

  • Download URL: calcos-2.21.tar.gz
  • Upload date:
  • Size: 242.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for calcos-2.21.tar.gz
Algorithm Hash digest
SHA256 11b1a0baf5c08171e036170f5deca241107d7bc21470ad55859c52c85cf7bb1a
MD5 ffbb95bf88bccd4d4f4d44426c7e4a4f
BLAKE2b-256 6e446e8dc1f39cdfe15020ccd8cbf9235ecc7544caf9c7e2fbb1d00d4626b241

See more details on using hashes here.

File details

Details for the file calcos-2.21-py2.7-win32.egg.

File metadata

File hashes

Hashes for calcos-2.21-py2.7-win32.egg
Algorithm Hash digest
SHA256 eaea02a240825dd11314568d04abb832dbb6a995c58d03713a48ff0d8836bdc8
MD5 70c0a6e852301be80a0fe512fec486e5
BLAKE2b-256 76898da61ac6113554d7c02787c04e00604c2f478b349daa7edd3531b1fa5dfe

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