Refbias

Procedure to create a suberbias using the ‘refbias’ method.

Basic premise for making a refbias.

  1. join imsets from each datset together into one large file
  2. combine, cosmic ray screen, and normalize to number of imsets
  3. set header keywords
  4. clean up intermediate files
refstis.refbias.flag_hot_pixels(refbias_name)[source]

Flag hotpixels in the DQ array

Pixels more than (mean + 3*sigma) away from a median smoothed image are flagged as DQ=16 in the DQ array.

Note

The input file is updated in-place.

Note

The IRAF version of this pipeline specified a 2x15 pixel median filter to calculate the smoothed imaged, but the IRAF task documentation says that even sizes are increased by 1 for the computation. A 3x5 pixel filter is used directly here.

Parameters:refbias_name (str) – name of the reference file to flag
refstis.refbias.make_refbias(input_list, refbias_name='refbias.fits')[source]

Create a refbias FITS file

Parameters:
  • input_list (list) – list of input bias files
  • refbias_name (str) – name of the output bias reference file