Basedark¶
Functions to create a BaseDark for the STIS instrument
- If not already done, perform bias subtraction
- If after switch to side-2 electronics, perform temperature scaling
- Join all imsets from input list into single file
- combine and cr-reject
- normalize to e/s by dividing by (exptime/gain)
- 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