Why a methane spectrometer must fit Gaussians, not just find peaks

A 2025 paper calibrates a short-wave infrared methane spectrometer to 0.022 nm. We recheck its calibration line, finish its uncertainty budget, and show what 1.4 pixels per line width costs.

Methane absorbs light in a narrow band near 1.65 µm, and a spectrometer that measures it from the air has to know which wavelength each of its pixels sees, to better than a twentieth of a nanometre. A 2025 paper in Remote Sensing reports that calibration for a short-wave infrared grating spectrometer: a straight pixel-to-wavelength line, a measured instrument line width, and an uncertainty budget. Everything in it can be rechecked from the numbers printed in its text, and this article does that with the spectrometer calibration tool, the uncertainty propagation calculator and the spectrum peak fitter.

The paper in brief

The instrument covers 1592.4 to 1677.6 nm, the window that holds the methane band used for satellite and airborne monitoring. The authors illuminated it with a xenon calibration lamp, fitted a Gaussian to each emission line to get its pixel position, and fitted a straight line through the pairs:

λ = 1677.63199 − 0.13341 × pixel nanometres, with R² = 0.99999.

They then measured the spectral response function (the shape the instrument gives a perfectly sharp line) with a tunable source, getting a Gaussian of 0.1867 nm FWHM, and checked the calibration against a 1653 nm laser: the largest deviation was 0.022 nm, inside the 0.05 nm the mission requires. Their uncertainty budget lists three contributions: 0.005 nm from lamp instability, 0.012 nm from the Gaussian fit and peak identification, and 0.016 nm from the regression. They do not give a combined figure.

Checked with the tools

This is a recomputation from the stated coefficients and uncertainties, not a reanalysis of their spectra, which we do not have. Three things come out of it.

Step 1: the calibration line, the array and a typo. Feed seven pixel-and-wavelength pairs built from the paper’s own line into the tool’s fit and it returns λ = 1677.63200 − 0.13341 × pixel with a dispersion of −0.13341 nm per pixel and residuals at the 10⁻¹³ nm level, as it should: a straight line through points on a straight line. The useful part is what the coefficients imply. Pixel 0 is 1677.632 nm, and the line reaches 1592.38 nm at pixel 639. In other words the detector is a 640-pixel array, the standard size for an InGaAs line sensor, and the stated range 1592.4 to 1677.6 nm is exactly its two ends. The abstract’s 1677.2 nm is a typo for 1677.6.

The same line puts the 1653 nm verification laser at pixel 184.63, and the 1605.328 nm line used for the response function at pixel 541.97. A deviation of 0.022 nm is 0.165 of a pixel; the 0.05 nm requirement is 0.375 of a pixel. Stated that way, the achievement is clearer: they located a line to a sixth of a pixel.

Step 2: the budget, combined. The paper lists its three uncertainty components and stops. Running them through the uncertainty tool’s maths (the GUM first-order rule on λ = a + b + c, each component normal) gives a combined standard uncertainty of 0.0206 nm and, at 95 % coverage with k = 2.00, an expanded uncertainty of 0.0412 nm. That matters: the requirement is 0.05 nm, so at 95 % confidence the margin is only 18 %. The regression term carries 60 % of the variance, the peak fitting 34 % and the lamp 6 %, so more lamp lines, not a better lamp, is where the next improvement lies.

Check Paper Our tool result
Calibration line λ = 1677.63199 − 0.13341 × pixel recovered as 1677.63200 − 0.13341 × pixel
Spectral range 1592.4 to 1677.6 nm (abstract: 1677.2) 1677.632 to 1592.38 nm for a 640-pixel array
Maximum deviation 0.022 nm at 1653 nm 0.165 pixel; the 0.05 nm requirement is 0.375 pixel
Combined uncertainty not given 0.0206 nm standard, 0.0412 nm expanded (k = 2)
Spectral response FWHM 0.1867 nm 1.40 pixels per resolution element

Step 3: why they had to fit Gaussians. Divide the line width by the pixel spacing: 0.1867 ÷ 0.13341 = 1.40 pixels per FWHM. Sampling theory asks for at least two, so this instrument is undersampled: a line lands on effectively three pixels, one tall and two small (Figure 1).

One emission line, as the pixels see itOne emission line, as the pixels see it00.250.50.751-4-2024Pixel, relative to the line centreSignal (peak = 1)1.40 px per FWHM (this instrument)3.00 px per FWHMwhat the pixels recordfibub.com
Figure 1. The spectrometer’s own spectral response (0.1867 nm wide) laid over its pixel spacing (0.13341 nm): 1.40 pixels per resolution element. The dots are the nine pixel readings a line produces. A comfortably sampled instrument (3 pixels per FWHM) is drawn for comparison.

That has a consequence for how you find the line. The quick method, and the one fibub’s own calibration page uses, is a parabola through the three highest pixels. Walk a noise-free line of this width across one pixel and ask the tool’s peak finder where it is, and the answer is systematically wrong by up to 0.017 nm, simply because a Gaussian this narrow is not a parabola (Figure 2). At two pixels per FWHM the worst error falls to 0.0087 nm and at three pixels to 0.0039 nm.

Where a 3-point peak finder puts the lineWhere a 3-point peak finder puts the line-0.02-0.0100.010.02-0.4-0.200.20.4True line centre within the pixel (pixels)Error in the found centre (nm)paper: ±0.012 nm1.40 px per FWHM2.00 px per FWHM3.00 px per FWHMfibub.com
Figure 2. Noise-free systematic error of the Spectrometer calibration tool’s own peak finder (a parabola through the three highest pixels) as a line is walked across one pixel, at three samplings. Dashed lines mark the paper’s 0.012 nm peak-identification uncertainty.

So at this instrument’s sampling a three-point peak finder would spend more than the paper’s entire 0.012 nm peak-identification budget on bias alone, before any noise. Fitting the full Gaussian, as the authors did, is not a refinement here; it is the only way to meet the requirement. That is a transferable lesson: check pixels per FWHM before choosing a peak-finding method, and if it is below about two, fit the line shape.

How we made the graphs

Both charts and every number come from scripts/blog-figures/swir-spectrometer-wavelength-calibration-recheck.mjs in fibub’s public code. It calls calibrate, polyval, plainCoeffs and findPeaks from src/lib/sci/phspec.ts, the maths behind the spectrometer calibration tool, and propagate from src/lib/sci/uncertainty.ts, the maths behind the uncertainty propagation calculator. calibrate fits the pixel-to-wavelength polynomial with the pixel axis centred and scaled for numerical stability, then plainCoeffs expands it back into plain powers of the pixel; findPeaks refines each local maximum with a parabola through its three highest points; propagate applies the GUM first-order rule and reports each input’s share of the variance.

Where the numbers come from: the calibration coefficients, the spectral range, the response-function width, the 0.022 nm deviation, the 0.05 nm requirement and the three uncertainty components are from the paper’s text. The seven pixel positions we fit, the Gaussian line shape used in Figures 1 and 2 and the 2.00 and 3.00 pixels per FWHM comparisons are ours.

How we test the maths

On every change to fibub, tests/sci.mjs runs tests/sci-tools/spectrometer-calibration.mjs, which pins these functions against SciPy and NumPy, and checks the GUM propagation itself:

  • The peak finder must put the eight peaks of the tool’s made-up example profile at the positions scipy.signal.find_peaks with the same parabolic refinement gives, to nine decimals, the first at pixel 76.82504249.
  • The linear and quadratic pixel-to-wavelength fits must match numpy.polyfit: 380.0024034 + 0.3199752x + 2.00046 × 10⁻⁵x² for the quadratic, with an rms residual of 0.1174504 nm, and the fit must recover the example’s known map 380 + 0.32x + 2 × 10⁻⁵x² to within 0.05 nm everywhere.
  • tests/sci.mjs also pins the uncertainty propagation directly: R = V/I from 5 ± 0.01 V and 0.2 ± 0.0005 A must give 25 Ω with a standard uncertainty of 0.08004 Ω, and the textbook pendulum must give g = 9.81 with u = 0.050 and U = 0.14 m s⁻².
  • New with this article: seven pairs on the line 1677.63199 − 0.13341x must give back an intercept of 1677.63199 nm and a dispersion of −0.13341 nm per pixel with residuals under 10⁻⁹ nm, and the three uncertainty components 0.005, 0.012 and 0.016 nm must combine to 0.0206155281 nm, 0.0412311066 nm at k = 2, with the regression term holding 60.235 % of the variance.

Check it yourself

Two short runs. First, on the spectrometer calibration tool, the calibration itself needs a spectrum photo, so use the paper’s line through fibub’s general fitter instead — on the spectrum peak fitter, in Energy calibration (optional):

  1. Paste any spectrum (or press Use the example) so the page has data, then in Pairs, one per line: position and energy type 20 1674.9638, 220 1648.2818, 420 1621.5998 and 620 1594.9178 — four points on the paper’s line.
  2. Set Calibration to straight line and Energy unit to nm. The page prints E = 1677.63 + −0.133410 × x, the paper’s coefficients.
  3. Change Calibration to quadratic and the extra term comes out at −1.4 × 10⁻¹⁷, that is zero: the paper’s linear fit is justified.

Second, the uncertainty budget, on the uncertainty propagation calculator:

  1. In What you calculate, type e = a + b + c.
  2. Add three measurements, each with Kind ± standard uncertainty and Value 0: a ± 0.005 (lamp), b ± 0.012 (peak fitting), c ± 0.016 (regression).
  3. Set Coverage to 95 % (2 sigma). The result reads 0 ± 0.0412 with a combined standard uncertainty of 0.0206, and the table shows the regression contributing 60 % of the variance.
  4. Change c to 0.008, as two or three times as many lamp lines would roughly give, and the expanded uncertainty falls to 0.0305 nm: a real margin against the 0.05 nm requirement.

What researchers can use it for

  • Recheck a published calibration line against the stated spectral range and pixel count: if the two ends do not land on pixel 0 and pixel N − 1, something in the paper is mistyped.
  • Convert a wavelength error into pixels before judging it. A sixth of a pixel is a strong result; 0.022 nm on its own means nothing without the dispersion.
  • Finish an uncertainty budget that a paper leaves as a list, and see which term to attack: here it is the regression, which means more calibration lines.
  • Choose a peak-finding method from pixels per FWHM: below about two, fit the line shape; above three, a parabola is fine, and the spectrum peak fitter will fit Gaussians with uncertainties either way.
  • Plan a laboratory calibration: simulate your own line at your own sampling, run both methods, and see what bias you would be accepting.

The fine print

  • We recompute from values stated in the paper’s text. Its spectra and fitted figures are not reproduced or digitised here.
  • The 640-pixel array is our deduction from the coefficients and the stated range, not something the paper says.
  • Our peak-finder bias is noise-free and assumes the pixels sample a Gaussian at their centres. A real pixel integrates over its width, which smooths the line slightly and reduces the bias a little.
  • The paper fits Gaussians to its lamp lines, which is the right method; our bias figure applies to the quick three-point estimator, including the one fibub’s own calibration page uses.
  • The expanded uncertainty assumes the three components are independent and normal, as the paper’s presentation implies. If the regression and peak-fitting terms are correlated, the true combined value differs.
  • The response-function width is quoted at one wavelength (1605.328 nm). In a grating spectrometer it changes across the array, so pixels per FWHM is not the same at both ends.

Sources

  • Li, H., Si, F., Xi, L., Lin, F., Jiang, Y., Liu, F., Zeng, Y., Han, Y. and Wu, K. (2025), Calibration of Short-Wave Infrared Spectrometer for Atmosphere Methane Monitoring, Remote Sensing 17(5): 851, doi:10.3390/rs17050851. Licence CC BY, checked on the MDPI article page, 2026-11-24. Values used here: wavelength calibration line λ = 1677.63199 − 0.13341 × pixel with R² = 0.99999, from Gaussian fits to xenon lamp lines; spectral range 1592.4 to 1677.6 nm (the abstract gives 1677.2); spectral response function FWHM 0.1867 nm from a Gaussian model with a fitting residual of 0.032; a 1653 nm laser giving a maximum calibration deviation of 0.022 nm against a 0.05 nm requirement; wavelength-calibration uncertainty components of 0.005 nm (lamp instability), 0.012 nm (Gaussian fit and peak identification) and 0.016 nm (regression), with no combined value given; the 1605.328 nm line used for the response-function fit.
  • Sub-pixel peak position from a parabola through the three highest points, and least-squares polynomial calibration: standard methods. Combined standard uncertainty and the coverage factor: the GUM first-order rule, as in JCGM 100:2008.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next