modules.masters.bias
KPF Master Bias construction module.
- class kpfpipe.modules.masters.bias.Bias(l0_file_list, config=None)
Bases:
BaseMasterModuleConstruct a master bias frame from a stack of L0 bias exposures.
Stacks frames using sigma-clipped statistics, interpolates bad pixels, and performs a final outlier pass on the combined image. Outputs a KPFMasterL1 containing per-chip IMG, SNR, and MASK extensions.
Standard reduction: a bias receives no calibration (_STANDARD_CALIBRATIONS is empty), so raw frames are stacked as-is.
- Parameters:
l0_file_list (list of str) – Sorted list of L0 FITS file paths to stack.
config (None | dict | ConfigHandler) – Module configuration. Recognized keys: stack_sigma, chips.
- info()
Print a summary of the module configuration and stacking results.
- make_master_l1(l0_file_list=None, *, nstream=6, sigma=None, master_path=None)
Build master bias from stack.
The constructed KPFMasterL1 is returned and cached on self.ml1_obj; pass master_path to also persist it to disk via save_master(‘L1’, …).
A bias receives no calibrations, so there are no bias/dark/ flat overrides (unlike Dark/WLS).
- Parameters:
l0_file_list (list of str, optional) – L0 files to stack. Defaults to self.l0_file_list.
nstream (int, optional) – Stream threshold passed to stack_frames.
sigma (float, optional) – Outlier rejection threshold passed to stack_frames.
master_path (str, optional) – If provided, calls self.save_master(‘L1’, master_path) at the end to persist the master L1 to a FITS file at this path.