A supernova magnitude is quoted to three decimal places. This subsection descends to the lowest layer of a survey that is public, and finds that the layer is not a count.
The Sloan Digital Sky Survey distributes its imaging as frame files. The frame used here is frame-r-004263-3-0100.fits.bz2, run \(4263\), camcol \(3\), field \(100\), band \(r\), of size \(1489 \times 2048\). Its primary array is not a count. It is a flux in nanomaggies, already divided by a calibration vector and already sky-subtracted. The quantities needed to undo those two operations are carried in the same file:
| HDU | Contents | Value in this frame |
| 0 | image, nanomaggies, sky-subtracted | \(1489 \times 2048\) |
| 1 | calibration vector, nmgy per count | \(4.9851\)–\(5.0344 \times 10^{-3}\), varying \(0.99\%\) along one row |
| 2 | sky model, binned, plus interpolation grid | \(192 \times 256\), median \(144.01\) DN after interpolation |
| 3 | astrometric interpolation grid | — |
The calibration is not a scalar. It is a different number for every pixel column, and the \(0.99\%\) variation along a row is larger than the quoted uncertainty on many supernova magnitudes.
Recovering counts requires applying both HDUs in reverse,
| Recovery recipe | Median [DN] | 99th pct | % negative |
| calibration vector \(+\) sky (the prescription) | \(144.00\) | \(160.0\) | \(0.00\) |
| calibration replaced by its column median | \(144.00\) | \(160.0\) | \(0.00\) |
| sky flattened to its own median | \(144.14\) | \(159.7\) | \(0.00\) |
| sky not restored | \(0.13\) | \(15.7\) | \(48.47\) |
The last row is the released product itself: \(48.47\%\) of its pixels carry negative flux. What makes the image positive is the model in HDU2, added back.
The recovered values are floating point, not integers, so the Poisson test that would verify the gain cannot be applied to them. Computing it anyway with the tabulated camcol-3 gain of \(4.72\) e/DN gives a Fano ratio of \(0.443\) in the sky region, against the \(1.000\) that Poisson statistics require. The variance has been suppressed by the smooth interpolation of a \(192 \times 256\) array onto \(1489 \times 2048\) pixels. The gain and dark variance are themselves table entries indexed by camcol, and testing the gain this way uses the gain.
From the recovered frame, \(74\) isolated sources were extracted in \(31 \times 31\) cutouts with a local sky of \(145.0\) DN. The flux of each was then measured under seventeen profile models. For each model the amplitude was solved analytically by least squares and the shape parameter scanned on a grid, so that no source depends on an iterative fit converging.
| Model | \(\Delta \)mag vs aperture \(r=6\) | rms |
| aperture \(r=2\) | \(+0.2544\) | \(0.4337\) |
| aperture \(r=3\) | \(+0.0987\) | \(0.2898\) |
| aperture \(r=4\) | \(+0.0486\) | \(0.1856\) |
| aperture \(r=5\) | \(+0.0187\) | \(0.0830\) |
| aperture \(r=6\) | \(0.0000\) | \(0.0000\) |
| aperture \(r=8\) | \(-0.0182\) | \(0.2560\) |
| aperture \(r=10\) | \(-0.0309\) | \(0.3650\) |
| Gaussian | \(+0.1688\) | \(0.3900\) |
| Moffat \(\beta =2.0\) | \(-0.1536\) | \(0.3723\) |
| Moffat \(\beta =2.5\) | \(-0.0592\) | \(0.3323\) |
| Moffat \(\beta =3.5\) | \(+0.0276\) | \(0.2625\) |
| Moffat \(\beta =4.765\) | \(+0.0767\) | \(0.1891\) |
| Moffat \(\beta =6.0\) | \(+0.0950\) | \(0.1212\) |
| double Gaussian | \(-0.0503\) | \(0.4079\) |
| Lorentzian | \(-0.7602\) | \(0.3086\) |
| exponential | \(-0.1126\) | \(0.3597\) |
| Gaussian, \(\sigma \) fixed at the median | \(+0.1739\) | \(0.5272\) |
The span is \(1.0146\) magnitudes. Within the aperture family alone, moving the radius from \(2\) to \(10\) pixels moves the magnitude by \(0.285\); within the Moffat family alone, moving \(\beta \) from \(2.0\) to \(6.0\) moves it by \(0.249\). The Lorentzian, whose \(r^{-2}\) wings assign roughly twice the flux, is the extreme. Nothing in the frame selects among them.
Holding the profile fixed at aperture \(r=6\) and varying only what counts as sky:
| Sky estimator | Flux [DN] | \(\Delta \)mag |
| annulus median, \(r = 8\)–\(12\) | \(7332.4\) | \(+0.0042\) |
| annulus median, \(r = 10\)–\(15\) | \(7360.7\) | \(0.0000\) |
| annulus median, \(r = 15\)–\(25\) | \(7247.7\) | \(+0.0168\) |
| annulus mean, \(r = 10\)–\(15\) | \(7309.3\) | \(+0.0076\) |
| annulus 20th percentile | \(7812.9\) | \(-0.0647\) |
| annulus 80th percentile | \(6795.5\) | \(+0.0867\) |
| mode, \(2.5\,\mathrm {med} - 1.5\,\mathrm {mean}\) | \(7950.9\) | \(-0.0837\) |
| frame median | \(7304.2\) | \(+0.0084\) |
| SDSS HDU2 sky model | \(7325.6\) | \(+0.0052\) |
The span is \(0.1705\) magnitudes, and one of the nine is the model that was subtracted to produce the released frame in the first place.
An aperture of radius \(6\) holds \(113\) pixels. A source is driven to zero when the assumed sky equals its aperture mean, which for the median source here is \(208.6\) DN per pixel, or \(1.45\) times the annulus value. Scaling the sky and recounting:
| Sky \(\times \) | Median flux [DN] | % sources \(<0\) | % pixels \(<0\) |
| \(0.80\) | \(10603.8\) | \(0.0\) | \(0.00\) |
| \(0.90\) | \(8982.2\) | \(0.0\) | \(0.41\) |
| \(1.00\) | \(7360.7\) | \(0.0\) | \(48.47\) |
| \(1.05\) | \(6549.9\) | \(0.0\) | \(88.77\) |
| \(1.10\) | \(5739.1\) | \(8.1\) | \(98.70\) |
| \(1.20\) | \(4117.6\) | \(23.0\) | \(99.69\) |
| \(1.30\) | \(2496.0\) | \(40.5\) | \(99.79\) |
| \(1.45\) | \(63.7\) | \(50.0\) | \(99.85\) |
| \(1.60\) | \(-2368.6\) | \(55.4\) | \(99.88\) |
| \(1.80\) | \(-5611.7\) | \(59.5\) | \(99.91\) |
Half the sources carry negative flux once the sky is raised by \(45\%\), and \(88.77\%\) of pixels are negative at a \(5\%\) increase.
The reason a \(45\%\) increase cannot simply be dismissed is that an annulus median always overestimates the sky: every profile has wings, and those wings reach into the annulus. How far they reach is set by the profile, and the profile is what the previous table showed is not fixed. The correction that would justify the smaller sky is computed from the model whose choice the sky estimate was meant to be independent of.
Magnitudes follow from \(m = 22.5 - 2.5\log _{10} f_{\mathrm {nmgy}}\).
| Change | Magnitude | \(\Delta \)mag |
| SDSS convention, \(\mathrm {ZP} = 22.5\) | \(18.5870\) | \(0.0000\) |
| \(\mathrm {ZP} = 22.4\) | \(18.4870\) | \(-0.1000\) |
| \(\mathrm {ZP} = 22.6\) | \(18.6870\) | \(+0.1000\) |
| calibration \(-1\%\) | \(18.5979\) | \(+0.0109\) |
| calibration \(+1\%\) | \(18.5762\) | \(-0.0108\) |
| calibration at column \(0\) | \(18.5885\) | \(+0.0015\) |
| calibration at column \(2047\) | \(18.5778\) | \(-0.0092\) |
| AB offset \(0.01\) mag | \(18.5970\) | \(+0.0100\) |
The \(22.5\) is declared, not measured. The two calibration rows are not hypothetical: they are the two ends of the HDU1 vector in this one frame, so the same source measured at opposite edges of the chip differs by \(0.0107\) magnitudes before any modelling begins.
A supernova magnitude is not a measurement of an image. It is a measurement of the residual after one epoch is subtracted from another. To reach that residual, two frames of the same sky are required.
SDSS field numbers are sequential within a run, not positional on the sky, and each stripe is scanned as an N and an S strip offset by half a camcol. Seventeen reference frames were therefore read for their world coordinate solutions, giving a map from run to sky position, from which the pair
run \(4858\) field \(100\) and run \(4874\) field \(167\)
was selected: centres \(235''\) apart, registered by cross-correlation to an offset of \((593, 2)\) pixels. Seventy sources were detected in epoch A with a median flux of \(94\,860\) DN.
| Kernel | Median residual [DN] | rms | Residual / star flux |
| no kernel match | \(-82\,294.6\) | \(359\,700.2\) | \(-0.8675\) |
| Gaussian \(\sigma =0.5\) | \(-80\,762.1\) | \(355\,296.1\) | \(-0.8514\) |
| Gaussian \(\sigma =1.0\) | \(-75\,269.0\) | \(340\,959.9\) | \(-0.7935\) |
| Gaussian \(\sigma =1.5\) | \(-65\,157.2\) | \(316\,970.3\) | \(-0.6869\) |
| Gaussian \(\sigma =2.0\) | \(-51\,988.1\) | \(287\,133.0\) | \(-0.5481\) |
| Gaussian \(\sigma =3.0\) | \(-27\,172.6\) | \(230\,697.3\) | \(-0.2865\) |
None of these sources varies. The residual is not zero for any kernel, and it spans \(0.5811\) of a star’s flux across the six. Its sign is set by the flux scaling between epochs, here the ratio of median counts; a different scaling moves it bodily. A supernova measurement is exactly this residual, and the pipelines that produce one do not release the reference image, the epoch selection, or the kernel solution.
Adding the profile, sky and zero-point spans in quadrature gives \(1.0481\) magnitudes. Applied as a redshift-dependent offset to the Pantheon\(+\) magnitudes and refitting the third-order cosmographic expansion:
| Offset shape | Sign | Amplitude [mag] | \(q_0\) |
| — | — | \(0.000\) | \(-0.355\) |
| linear in \(z\) | \(+\) | \(1.048\) | \(-0.760\) |
| linear in \(z\) | \(+\) | \(4.192\) | \(-1.795\) |
| linear in \(z\) | \(-\) | \(1.048\) | \(+0.200\) |
| linear in \(z\) | \(-\) | \(4.192\) | \(+0.400\) |
| \(\sqrt {z}\) | \(+\) | \(4.192\) | \(-2.540\) |
| \(\sqrt {z}\) | \(-\) | \(1.048\) | \(+0.440\) |
| \(\sqrt {z}\) | \(-\) | \(4.192\) | \(+0.540\) |
| \(\log (1+z)\) | \(+\) | \(4.192\) | \(-2.390\) |
| \(\log (1+z)\) | \(-\) | \(4.192\) | \(+0.475\) |
Across the eighteen configurations \(q_0\) runs from \(-2.540\) to \(+0.540\), and nine of them are decelerating. The amplitude required to reach \(q_0 = 0\) is
| Offset shape | Amplitude to \(q_0 = 0\) | As a fraction of the photometric span |
| \(\sqrt {z}\) | \(0.420\) mag | \(0.40\) |
| \(\log (1+z)\) | \(0.460\) mag | \(0.44\) |
| linear in \(z\) | \(0.670\) mag | \(0.64\) |
In every case the offset needed to erase acceleration is smaller than the photometric span measured above.
The offset need not be invented. Taking any two of the seventeen profile models and letting the choice drift with redshift — one model at low \(z\), another at high \(z\) — gives \(272\) ordered pairs, of which \(14\) yield deceleration:
| Low-\(z\) model | High-\(z\) model | \(\Delta \) [mag] | \(q_0\) |
| aperture \(r=2\) | Lorentzian | \(-1.015\) | \(+0.185\) |
| Gaussian | Lorentzian | \(-0.929\) | \(+0.150\) |
| Lorentzian | Gaussian, \(\sigma \) fixed | \(-0.934\) | \(+0.150\) |
| aperture \(r=3\) | Lorentzian | \(-0.859\) | \(+0.115\) |
| Moffat \(\beta =6.0\) | Lorentzian | \(-0.855\) | \(+0.110\) |
| Moffat \(\beta =4.765\) | Lorentzian | \(-0.837\) | \(+0.100\) |
| aperture \(r=4\) | Lorentzian | \(-0.809\) | \(+0.085\) |
| Moffat \(\beta =3.5\) | Lorentzian | \(-0.788\) | \(+0.075\) |
Every one of them has the Lorentzian at one end, and nothing in the frame excludes the Lorentzian.
| Quantity | Status |
| pixel value in the released file | a float in nanomaggies, not a count |
| count | recovered by inverting HDU1 and HDU2 |
| gain, dark variance | table entries indexed by camcol |
| \(\mathrm {ZP} = 22.5\) | a declared constant |
| profile model | a choice; span \(1.0146\) mag |
| sky | an estimator; span \(0.1705\) mag |
| sky that zeroes half the sources | \(1.45\times \) the annulus value |
| reference image, epoch selection, kernel | not released |
Imaging. SDSS DR17 frame files, retrieved from https://data.sdss.org/sas/dr17/eboss/photoObj/frames/301/. Of \(896\) candidate frames probed across \(114\) Stripe 82 repeat-scan runs, \(60\) were reachable. The primary frame is frame-r-004263-3-0100.fits.bz2 (run \(4263\), camcol \(3\), field \(100\), band \(r\)). Seventeen further frames at field \(100\) were retrieved to map run number to sky position; the difference-imaging pair is frame-r-004858-3-0100.fits.bz2 and frame-r-004874-3-0167.fits.bz2.
Point spread function. psField-004263-3-0100.fit from https://data.sdss.org/sas/dr17/eboss/photo/redux/301/, whose Karhunen–Loève basis was reconstructed at the frame centre. The tsField file for this field was not present in DR17, so the gain \(4.72\) e/DN and dark variance \(1.3225\) DN\(^2\) are the published camcol-3 values for the \(r\) band.
Supernovae. PantheonSH0ES.dat from the Pantheon\(+\) release, restricted to IS_CALIBRATOR \(= 0\) and \(z > 0.01\), using the columns zHD, m_b_corr and m_b_corr_err_DIAG. The fit is a third-order cosmographic expansion of the luminosity distance with the absolute scale marginalised analytically, \(q_0\) scanned on a grid of step \(0.005\) over \([-3, 4]\).
Computation. Array operations in cupy on a single GPU. Profile fitting solves the amplitude analytically by least squares and scans the shape parameter on a grid of \(200\)–\(240\) points, so that no reported flux depends on an iterative fit converging. Derived tables are provided as sdss_recover.csv, sdss_psf.csv, sdss_sky.csv, sdss_negsky.csv, sdss_zp.csv, sdss_diff.csv, sdss_q0.csv and sdss_pairs.csv.