Basedark

Functions to create a BaseDark for the STIS instrument

  1. If not already done, perform bias subtraction
  2. If after switch to side-2 electronics, perform temperature scaling
  3. Join all imsets from input list into single file
  4. combine and cr-reject
  5. normalize to e/s by dividing by (exptime/gain)
  6. update DQ array with hot pixel information

Note

  • Side 1 operations ended on May 16, 2001.
  • Side 2 operations started on July 10, 2001.
  • The dark correction will only be applied to datasets after July 1, 2001 (MJD 52091.0).
refstis.basedark.find_hotpix(filename)[source]

Find hotpixels and update DQ array

Pixels hotter that median + 5*sigma will be updated to have a DQ value of 16.

Note

The input file will be updated in-place.

Parameters:filename (str) – filename of the input biasfile
refstis.basedark.make_basedark(input_list, refdark_name='basedark.fits', bias_file=None)[source]

Make a monthly baseline dark from the input list.

Parameters:
  • input_list (list) – list of input dark files
  • refdark_name (str) – name of the output reference file
  • bias_file (str) – bias file to be used in calibration
refstis.basedark.update_sci(filename)[source]

Create the science extension of the baseline dark

Note

The input file will be updated in-place.

Parameters:filename (str) – name of the file to be updated