Sections §700.1 and §456.8 traced the reference wavelengths backward, from the arc line list to the energy levels to the metre. This subsection goes the other way: it takes a raw SDSS arc exposure, in detector counts, and follows the procedure that converts a pixel index into a wavelength.
The SDSS spectroscopic pipeline determines the wavelength solution in fitarcimage.pro, which begins by calling arcfit_guess.pro. That routine does not search for an assignment of observed peaks to catalogue lines. It synthesises an arc spectrum from the line list, cross-correlates it against the observation, and returns the Legendre coefficients that maximise the correlation:
model[npad+iloc:npad+iloc+1] += intensity[iline] * [1-dx/dpix, dx/dpix] corrval = max( c_correlate(speccorr, model, lags), icorr ) if (corrval GT bestcorr) then bestcorr = corrval
The search is confined to a neighbourhood of a fixed starting point. In configuration__define.pro:
function configuration::spcalib_arcfitguess_acoeff, color if (self->isSDSS2()) then begin if (color EQ 'blue') then return, [3.6930, -0.1044, -0.0041, 0.00016] if (color EQ 'red') then return, [3.8700, 0.1008, -0.0044, -0.00022] endif if (color EQ 'blue') then return, [3.6846659, 0.19959101, -0.023845067, 0.0012433996] if (color EQ 'red') then return, [3.8927011, 0.16506676, -0.018754040, 0.0011861915, -1.1795306e-05, -2.4502617e-05] end function configuration::spcalib_arcfitguess_dcoeff, color if self->isSDSS2() then return, 0 return, [0.15, 0.008, 0.0003, 0.0001, 1e-5, 1e-5] end
The first coefficient is \(\log _{10}\lambda \) at the centre of the detector: \(3.6930\) corresponds to \(4932\) Å. No derivation of these values appears in the source.
A raw blue-camera arc frame was taken from the SDSS DR17 archive (sdR-b1-00169793.fit.gz), overscan-subtracted, and a central column block extracted. Seventeen peaks were detected above the pipeline’s own threshold. The line list lamphgcdne.dat contains \(24\) entries flagged GOOD in the blue range.
Enumerating all \(\binom {24}{17} = 346\,104\) assignments of peaks to lines and fitting a degree-\(7\) Legendre polynomial to each, the number satisfying the pipeline’s own tolerance of maxdev\(\,=1\times 10^{-5}\) in \(\log \lambda \) (\(23\) ppm) is
The assignment is therefore not recoverable from the frame and the line list alone. The pipeline does not attempt it; it starts from the fixed coefficients above and refines within dcoeff.
Reimplementing arcfit_guess and varying only the first coefficient, with the line list and the frame held fixed:
Two features of this table matter. The first is that the correlation is a weak discriminator: it varies only between \(0.35\) and \(0.49\) across a range in which the wavelength scale changes by more than half. The second is that the distributed value does not maximise it. At \(a_0 = 3.6730\) the correlation is \(0.4858\) and at \(a_0 = 3.5930\) it is \(0.4819\), both above the \(0.4587\) obtained with the shipped \(3.6930\). Selecting the starting point by the criterion the routine optimises would not return the value the pipeline uses.
Substituting the red-camera coefficients \([3.8700, 0.1008, -0.0044, -0.00022]\) into the same blue frame, with the same blue line list, yields a correlation of \(0.3572\) against \(0.4587\), and assigns the first peak \(6547.68\) Å instead of \(5656.56\) Å — a difference of \(891\) Å from changing four numbers in a configuration file.
The list lamphgcdne.dat carries per-line quality flags assigned by hand. Twenty-five entries bear an explicit adjudication in the comment field: twenty-one DRL declares too faint, three DRL declares blended, and one Added by DRL with a URL. Four further lines are commented out entirely. The header records the provenance:
# Calibration lines for Lick, Schlegel, 22 June 1995 # Wavelengths in air from Handbook of Chemistry & Physics 67th edition, 1987
Repeating the fit with four different admitted subsets:
This is worth stating precisely. The manual curation is visible and appears consequential; it is not. What determines the answer is the four-number starting point, which carries no annotation of any kind.
The coefficients are selected by a method test, isSDSS2, defined as
return, self.mjd lt self.sdss3_start_mjd ; sdss3_start_mjd = 55000
Frames from before MJD \(55\,000\) receive the four-coefficient SDSS-2 values and \(\texttt {dcoeff} = 0\), disabling the search entirely; frames from after receive a different four-coefficient set for the blue camera and a six-coefficient set for the red. The first-order coefficients differ in sign between the two eras, \(-0.1044\) against \(+0.19959101\), and the source records why in a commented-out block:
; The following are for the BOSS commissioning data w/out rotating the images ; if (color EQ 'blue') then return, [3.6846659,-0.19959101, ...]
The sign encodes the readout orientation of the detector. An exposure taken one day either side of the boundary is reduced with a different initial guess, a different number of coefficients, and — for SDSS-2 — no search at all.
The same configuration file carries \(4\times 4\) crosstalk matrices, one per camera, applied before extraction:
The wavelength of a pixel is fixed by four undocumented numbers selected by observation date. The assignment of peaks to catalogue lines, which the procedure is nominally performing, is not determined by the data: enumerating all \(346\,104\) possibilities returns none within the pipeline’s own tolerance. The manual curation of the line list, the only part of the chain bearing explicit human annotation, does not affect the result.
SDSS DR17 spectrum spec-0266-51630-0004.fits (legacy reduction redux/26, \(3819\) pixels, pipeline \(z = 0.0646563 \pm 2.07\times 10^{-5}\)) and the raw blue-camera arc frame sdR-b1-00169793.fit.gz, both from data.sdss.org; the arc line list etc/lamphgcdne.dat and the initial-guess coefficients in pro/config/configuration__define.pro, from the idlspec2d source distribution.
A reduced SDSS spectrum is not sampled at the detector pixels. It is resampled onto a grid uniform in \(\log _{10}\lambda \), with spacing fixed in wavevector.pro as
binsz = 1.0d-4
and written into every spectrum header as COEFF1 \(= 0.0001\). Because a uniform logarithmic grid is uniform in velocity, this constant sets the velocity width of a pixel:
Spectrum spec-0266-51630-0004 (plate \(266\), MJD \(51\,630\), fiber \(4\); \(3819\) native pixels, pipeline \(z = 0.064656 \pm 2.07\times 10^{-5}\)) was resampled onto grids of different \(q\) and the redshift redetermined by the same line-matching procedure in each case. Only \(q\) was varied.
Over the range tested the recovered redshift spans \(0.06168\) to \(0.11309\), a spread of \(\delta z = 5.14\times 10^{-2}\) or \(14\,413\ \mathrm {km\,s^{-1}}\). Against the quoted uncertainty this is \(2488\,\sigma \).
The row at \(q = 3\times 10^{-4}\) is not a gradual degradation. The recovered redshift jumps from \(0.064\) to \(0.113\): at \(207\ \mathrm {km\,s^{-1}}\) per pixel the line pattern is coarse enough that a different alignment of the same features scores higher, and the fit lands on a different solution entirely. Restricting attention to \(q \leq 2\times 10^{-4}\), where the fit remains on the correct branch, the spread is still \(197\ \mathrm {km\,s^{-1}}\), or \(34\sigma \).
Holding \(q = 10^{-4}\) and shifting only the starting point of the grid by a fraction of a pixel:
Repeating the resampling with nearest-neighbour, linear, quadratic and cubic interpolation at \(q = 10^{-4}\) returns \(z = 0.064430\) in all four cases, to six decimal places.
This is worth recording because it is the operation most likely to be suspected and it is not the one that matters. The native spacing of the reduced spectrum is \(9.990\times 10^{-5}\), within \(0.1\%\) of the target grid, so the resampling is close to the identity and the kernel is irrelevant. The effect in the preceding tables comes from the grid itself, not from how values are moved onto it.
Holding \(q = 10^{-4}\) and the grid fixed, varying only which rest-frame lines are matched:
The emission set reproduces the full result exactly; the absorption set returns \(z = 0.3589\), a redshift \(5.6\) times larger. With four Balmer lines alone the answer is the same wrong value, because the Balmer spacing admits an alignment at that redshift that the other lines would exclude.
A single line cannot fix a redshift, and a set of lines with commensurate spacings can be aligned at more than one \(z\). Which solution is returned is decided by which lines the fit is told to use.
The reported uncertainty is a template-fit statistic conditional on the grid being \(10^{-4}\), on the grid origin, and on the line set. Each of those is a choice made in a source file: binsz = 1.0d-4 in wavevector.pro, the starting wavelength in the coaddition, and the eigenspectrum or line list passed to the fit. None carries a derivation in the code, and the smallest of their effects exceeds the quoted error by a factor of nine.
Repeating the resampling at \(q = 10^{-4}\) with nearest-neighbour, linear, quadratic and cubic interpolation returns \(z = 0.064430\) in all four cases, to six decimal places.
The reason is that there is nothing to interpolate. The native spacing of the released spectrum is \(9.9897\times 10^{-5}\), a ratio of \(1.00103\) to the target grid: the coadded spectrum was already placed on a \(10^{-4}\) logarithmic grid when it was produced. Resampling it onto \(10^{-4}\) is close to the identity map, and every kernel agrees because every kernel is evaluated at points that nearly coincide with the samples.
This is not evidence that the kernel is harmless. It is evidence that the choice was made upstream and is no longer available. To see what the kernel does, the grids must be made incommensurate:
At ratios that are integers the three kernels agree, because the target points fall on native samples. At \(1.05\) the cubic kernel departs by \(72\ \mathrm {km\,s^{-1}}\) from linear; at \(2.50\) the three span \(387\ \mathrm {km\,s^{-1}}\). At \(1.70\) nearest-neighbour and cubic both land on \(z = 0.0765\) while linear stays at \(0.0641\) — a difference of \(3501\ \mathrm {km\,s^{-1}}\), or \(601\,\sigma _z\), from the choice of interpolation alone.
Adding a fractional shift of the grid origin at \(q = 1.3\times 10^{-4}\):
The behaviour is not a smooth sensitivity that could be quoted as an error term. It is flat over most of the parameter space and jumps by thousands of \(\mathrm {km\,s^{-1}}\) at particular commensurabilities between the two grids, where the fit crosses onto a different branch. Whether a given reduction sits near such a point is not visible in its output.