🔬 CALIBRATION PIPELINE FOR HIGH-ACCURACY INGaAs SPECTROSCOPY (Targeting <0.5% Systematic Error)
Here's a detailed calibration pipeline designed for your push-broom InGaAs spectrometer, prioritizing accuracy for absorption line measurements with a target systematic error of better than 0.5%. This pipeline incorporates a physically robust model of signal and noise propagation and addresses the specific challenges posed by the strong QE roll-off.
1. Physically Robust Model of Signal and Noise Propagation
As outlined previously, the fundamental model is:
[
DN_{i,j}(t) = G_{i,j} \cdot \left( \eta_{i,j}(\lambda_j) \cdot P_{i,j}(t) + N_{i,j}^{\text{dark}}(t) + N_{i,j}^{\text{read}} \right) + O_{i,j} + S_{i,j}
]
Where:
- ( DN_{i,j}(t) ): Digital number at pixel ( (i,j) ) and time ( t ).
- ( G_{i,j} ): Pixel-dependent gain (e⁻/DN).
- ( \eta_{i,j}(\lambda_j) ): Pixel-dependent quantum efficiency at wavelength ( \lambda_j ).
- ( P_{i,j}(t) ): Number of incident photons at pixel ( (i,j) ) and time ( t ).
- ( N_{i,j}^{\text{dark}}(t) ): Dark current electrons at pixel ( (i,j) ) and time ( t ) (Poissonian).
- ( N_{i,j}^{\text{read}} ): Read noise at pixel ( (i,j) ) and time ( t ) (Gaussian).
- ( O_{i,j} ): Optical stray light offset at pixel ( (i,j) ).
- ( S_{i,j} ): Vignette-like structured additive signal at pixel ( (i,j) ) and time ( t ).
The key to achieving high accuracy lies in accurately estimating and removing the systematic errors associated with ( G_{i,j} ), ( \eta_{i,j}(\lambda_j) ), ( N_{i,j}^{\text{dark}}(t) ), ( N_{i,j}^{\text{read}} ), ( O_{i,j} ), and ( S_{i,j} ).
2. Calibration Pipeline: Sequence of Steps
The following sequence is recommended for optimal accuracy:
Step 1: Bias/Pedestal Removal
- Method: Subtract the median value of the shortest exposure frames across all pixels and spectral channels. This removes the DC offset and fixed-pattern noise.
- Justification: This is the first step as it provides a baseline for subsequent corrections and prevents the pedestal from influencing gain and dark current estimations.
Step 2: Vignette Subtraction
- Method: Identify and model the spatially varying vignette effect. This can be done by:
- Dark Row Analysis: Utilize the "dark" rows (which exhibit the additive vignette signal) across multiple exposures. Fit a polynomial or a more complex surface to the pixel values in these rows as a function of exposure time.
- Spatial Modeling: If the vignette has a known shape, use a spatial filter or a lookup table to correct the image.
- Justification: Vignetting is a significant source of spatial non-uniformity, especially at the edges of the detector. Removing it early ensures that subsequent corrections are applied to the true signal.
Step 3: Dark Current Subtraction
- Method: Estimate the dark current by:
- Long Exposure Frames: Use frames acquired with the longest exposure times.
- Dark Spectrum Fitting: Fit a dark spectrum (obtained from the dark frames) to the dark current signal in each pixel.
- Median Subtraction: Alternatively, calculate the median dark current value for each pixel across all frames.
- Justification: Dark current is a fundamental noise source that increases with exposure time. Subtracting it is crucial for accurate photon counting.
Step 4: Gain Calibration (Per Column)
- Method: Utilize uniform lamp exposures (e.g., a linear ramp). For each column:
- Photon Transfer Curve (PTC): Plot the number of detected photons as a function of the true number of incident photons (known from the lamp intensity and spectral irradiance).
- Linear Fit: Fit a linear function to the linear portion of the PTC. The slope of this line is the gain per column.
- Justification: The strong QE roll-off necessitates per-column gain calibration. Applying a single gain value to all pixels would lead to significant errors, especially at longer wavelengths where QE is low.
Step 5: Stray Light Subtraction
- Method: This is the most critical step for achieving high accuracy.
- Reference Frames: Acquire frames with the lamp off (or a known dark source).
- Stray Light Estimation: Model the stray light as an additive component. This can be achieved by:
- Spatial Decomposition: Identify regions in the dark frames that correspond to stray light and fit a spatial model (e.g., a polynomial or a set of basis functions) to the stray light pattern.
- Spectral Decomposition: Analyze the spectral content of the dark frames to estimate the stray light spectrum.
- Subtraction: Subtract the estimated stray light from the science frames.
- Justification: Stray light is a significant source of systematic error, especially in spectrally sensitive measurements. It is spatially and spectrally dependent and cannot be accurately modeled by simple dark subtraction.
Step 6: Pixel-Level Non-Linearity Correction
- Method: Utilize uniform lamp exposures and fit a polynomial (typically 2nd or 3rd order) to the relationship between the true number of incident photons and the detected digital number for each pixel.
- Justification: The detector response is often non-linear, especially at high signal levels. Correcting for this non-linearity is essential for accurate flux measurements.
Step 7: Flat-Field/QE Correction
- Method: Acquire flat-field frames by illuminating the detector with a broadband light source (e.g., a diffuse lamp).
- QE Mapping: Use a reference lamp with a well-characterized spectrum to determine the pixel-level QE map.
- Correction: Divide the measured digital numbers by the corresponding QE values to obtain the absolute photon flux.
- Justification: Flat-fielding corrects for pixel-to-pixel variations in sensitivity and ensures that the measured signal is proportional to the incident light intensity. QE correction accounts for the wavelength-dependent sensitivity of the detector.
3. Practical Model for Stray Light Estimation and Removal
Model: Assume stray light is an additive component that can be modeled as a sum of spatially varying coefficients multiplied by a set of basis spectra.
[
S_{i,j} = \sum_{k=1}^K a_{i,j,k} \cdot B_k(\lambda_j)
]
Where:
- ( a_{i,j,k} ) are the coefficients for each spatial-spectral basis.
- ( B_k(\lambda_j) ) are the basis spectra (e.g., the spectrum of the lamp edges, the dark spectrum, or a set of predefined spectral shapes).
Estimation:
- Dark Frames: Use the dark frames acquired with the lamp off.
- Basis Spectra: Define a set of basis spectra that are representative of the stray light characteristics.
- Least Squares Fitting: For each pixel, solve a least squares problem to estimate the coefficients ( a_{i,j,k} ) that minimize the difference between the measured dark frame and the model:
[
\min_{a} \sum_{k=1}^K \left( \int_{\lambda_j} B_k(\lambda_j) d\lambda - \sum_{l=1}^L a_{i,j,k} B_k(\lambda_j) \right)^2
]
Where ( L ) is the number of basis spectra.
Removal: Subtract the estimated stray light ( S_{i,j} ) from the science frames.
4. Gain Determination: Per Pixel vs. Per Column
Gain must be determined per column. The strong QE roll-off is the primary reason. Applying a single gain value to all pixels would lead to significant errors, especially at longer wavelengths where the QE is much lower. The gain varies across columns due to differences in the amplifier characteristics and pixel design.
5. Bias of Omitting Gain Variation and Non-Linearity Correction
Omitting Gain Variation:
- Flux Bias: The measured flux will be systematically biased, with pixels having higher actual gain appearing to have lower flux, and vice versa. This will lead to inaccurate absolute flux measurements.
- Noise Bias: The noise level will also be affected. The noise contribution from the amplifier will not be accurately accounted for, leading to an underestimation or overestimation of the true noise level.
Omitting Non-Linearity Correction:
- Flux Bias: The measured flux will be systematically biased, especially at high signal levels where the detector response deviates significantly from linearity. The measured flux will be lower than the true flux.
- **Noise Propagation