data_models.masters.level1

KPF Masters Level 1 data model.

Stacked 2D calibration frame product (bias, dark, flat).

Inherits from KPFMasterModel and KPF1. All KPF1 methods (from_fits, to_fits, _read, info, to_kpf2) are inherited unchanged. Extension names differ from science L1 to reflect masters-specific normalization:

GREEN_IMG – stacked mean image GREEN_SNR – signal-to-noise ratio GREEN_MASK – boolean bad pixel mask (1=good, 0=bad) RED_IMG, RED_SNR, RED_MASK – same for red chip

Filename convention (WMKO DRP-RUN-05): masters are written as {KOAID-of-first-input}_master_{type}_L1.fits (e.g. KP.20240405.49597.71_master_bias_L1.fits), built by KPFMasterModel.generate_standard_filename().

class kpfpipe.data_models.masters.level1.KPFMasterL1

Bases: KPFMasterModel, KPF1

KPF Masters Level 1 stacked calibration frame.

Thin wrapper around KPF1 with masters-specific extension names. Inherits all KPF1 methods (from_fits, to_fits, _read, info).

Extensions:

GREEN_IMG – stacked mean image, green chip GREEN_SNR – signal-to-noise ratio, green chip GREEN_MASK – bad pixel mask, green chip (1=good, 0=bad) RED_IMG, RED_SNR, RED_MASK – same for red chip

Construct empty with KPFMasterL1(), or load a stacked product from disk with KPFMasterL1.from_fits(path).