Weekbias

Functions to create a weekly bias for the STIS instrument.

refstis.weekbias.make_weekbias(input_list, refbias_name, basebias)[source]

Make ‘weekly’ bias from list of input bias files

  1. join imsets from each datset together into one large file
  2. combine and cosmic ray screen joined imset
  3. find hot colums
  4. add hot colums in to basebias sci data as output science data
  5. update error, dq, and headers

Note

For the SCI extensions, the baseline bias rate is taken from the aptly named basebias because anything that is “hot” is assumed to be potentially transient and is thus taken from the weekly biases.

Update ERR extension of new superbias by assigning the ERR values of the baseline superbias except for the new hot pixels that are updated from the weekly superbias, for which the error extension of the weekly superbias is taken. Put the result in temporary ERR image.

Parameters:
  • input_list (list) – list of STIS bias files
  • refbias_name (str) – filename of the output reference file
  • basebias (str) – filename of the monthly basebias