Refbias¶
Procedure to create a suberbias using the ‘refbias’ method.
Basic premise for making a refbias.
join imsets from each datset together into one large file
combine, cosmic ray screen, and normalize to number of imsets
set header keywords
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