Skip to content

UV Mercury Calibration

This guide simulates known-line wavelength calibration for the UV/VIS module. The pipeline detects line pixels, fits a polynomial pixel-to-wavelength model, and reports before/after residuals.

python -m lux.experiments uv-mercury-calibration --json
from lux.calibration import WavelengthCalibration

calibration = WavelengthCalibration.fit(observed_pixels, known_wavelengths_nm, degree=3)
wavelengths_nm = calibration.wavelengths(pixel_count)