Process LFC Pipeline
Overview
Process the 1D laser frequency comb (LFC) data to generate a wavelength calibration model and line spread function (LSF) model.
Class: ProcessLFCPipeline
Primitives
Documentation
- class ProcessLFCPipeline(dataset=None, config=None, context=None, log_config=None, primitives=None, **kwargs)[source]
Bases:
CalibrationPipelinePipeline to process 1D laser frequency comb (LFC) data to generate a wavelength calibration model and line spread function (LSF) model.
This pipeline performs the following steps:
FitLFCLinesPrimitiveCalculateChebyshev2DWLSPrimitiveCalculateGaussianLSFPrimitiveRegisterCalibrationPrimitive(for wavelength solution and LSF)
- static group_lfc_spectra(models)[source]
Determine which fibers have an LFC spectrum and group accordingly.
Assumes all models share the same object_fiber configuration, so the set of LFC fibers is determined once from the first model and applied to the entire list. If a single fiber carries the LFC, the group is keyed by that fiber number directly; if multiple fibers share the same LFC, it is keyed by the tuple of those fiber numbers.
- Parameters:
models (list[datamodels.DataModel]) – List of input data models to group. All models are assumed to share the same object_fiber configuration.
- Returns:
lfc_groups (dict[int | tuple[int, …], list[datamodels.DataModel]]) – Dictionary with a single key (fiber number, or tuple of fiber numbers) mapping to the full list of input models.
- Raises:
ValueError – If no fiber carries an LFC object.