443 From Pixels Back to a Star

The preceding sections examine quantities whose construction is spread across institutions and decades. This one takes a single object in a single public image and follows every step from stored numbers to a reported magnitude. The whole chain fits in one figure and the entire input is a table of numbers small enough to print.

443.0.1 The object

The Hubble Ultra Deep Field ACS image h_udf_wfc_i_drz_img.fits is \(10\,500 \times 10\,500\) pixels in units of electrons per second. The brightest source in a \(512 \times 512\) cutout centred on the global maximum sits at \((5692, 4829)\). A \(41 \times 41\) stamp around it contains:

\[ \begin {array}{ll} \text {peak} & 17.700\ \mathrm {e\,s^{-1}} \\ \text {sum} & 430.864 \\ \text {background } \sigma & 3.48\times 10^{-4} \\ \text {peak}/\sigma & 5.09\times 10^{4} \\ \text {FWHM (second moments)} & 8.73\ \mathrm {px} \\ \text {flux } r<3,\ r<8,\ r<16 & 249.1,\quad 388.9,\quad 420.1 \\ \end {array} \]
Under an AB zero point of \(25.654\) and an \(r<8\) aperture the object is \(m_{\mathrm {AB}} = 19.179\). That single number is the output of the chain examined below.
443.0.2 What the file contains

The header records NDRIZIM = 576: the image is a drizzle combination of \(576\) exposures, with D001KERN = point and D001PIXF = 0.01. The unit is electrons per second, so the exposure time has already been divided out. The stored array is therefore not a measurement but a resampling of \(576\) measurements onto a chosen output grid with a chosen kernel and a chosen drop size.

Everything downstream operates on that array. Figure 393 prints the central \(13 \times 13\) values: this is the complete input.

443.0.3 Displaying it is already a choice

Figure 394 shows the same \(41 \times 41\) values under eight display transforms. Under a linear stretch the brightest one per cent of pixels occupies \(99.90\%\) of the displayed dynamic range and the remainder is black; under histogram equalisation it occupies \(0.99\%\) by construction. Whether the image shows a compact point or an extended halo is a property of the transform.

443.0.4 The chain

Six stages separate the stored array from a magnitude, and each admits several defensible settings.

Drizzle kernel. The delivered combination uses a point kernel. Square, Gaussian and top-hat kernels are standard alternatives. Reconstructing with each and re-measuring changes the peak by \(1.60\times \) and the detected source count in the field by \(1.2\times \).

Background. A constant sigma-clipped background is self-cancelling: ll return the same \(55\) detections, because the clipping re-estimates the level. A spatially varying model does not cancel. Mesh-median backgrounds at scales \(16\), \(32\), \(64\) and \(128\) pixels, and median filters at \(51\) and \(101\), change the detection count from \(1\) to \(81\) and the surviving flux by \(\sim 20\%\); a mesh finer than the source absorbs the source.

Centroid. Seven estimators — brightest pixel, centre of mass, centre of mass above \(3\sigma \) and \(5\sigma \), Gaussian-weighted at three widths, Gaussian fit, marginal parabola — disagree by a fraction of a pixel. That disagreement is the floor on the reported sky coordinate.

Sub-pixel reconstruction. Nearest, bilinear, cubic, quintic, sinc, and Lucy–Richardson deconvolution at \(5\), \(10\), \(30\) and \(60\) iterations. Sinc interpolation introduces ringing; deconvolution raises the peak and narrows the profile without adding information.

Flux definition. Apertures at \(r = 1,2,3,4,5,8,12\), peak value, isophotes at \(1\sigma \), \(2\sigma \), \(3\sigma \), and a Kron-like radius. For this object the peak alone recovers \(25.6\%\) of the \(r<40\) flux and the \(1\sigma \) isophote recovers \(105.8\%\) — the latter exceeds the aperture because it includes neighbouring pixels above threshold.

Zero point. AB (\(25.654\)), ST (\(26.381\)) and Vega (\(25.256\)) for the same filter, spanning \(1.1\) magnitudes.

443.0.5 All stages at once

Running the full product of settings — five kernels, six backgrounds, seven centroids, nine reconstructions, twelve flux definitions — gives \(5 \times 6 \times 7 \times 9 \times 12 = 22\,680\) paths from the same stored array to a flux for the same object. Each path is a sequence of choices that a competent analyst could defend. The sweep runs in \(41\) s on one GPU.

Proposition 443.1 (The magnitude is a function of the path). Over all \(22\,680\) paths the recovered flux spans

\[ 9.204 \;\text {to}\; 449.341\ \mathrm {e\,s^{-1}}, \qquad \frac {F_{\max }}{F_{\min }} = 48.8, \qquad \Delta m = 4.22\ \mathrm {mag}. \]
The median flux by stage varies by
\[ \begin {array}{lrrr} \text {stage} & \text {levels} & \text {ratio} & \Delta m \\ \hline \text {drizzle kernel} & 5 & 1.05 & 0.050 \\ \text {background model} & 6 & 1.02 & 0.018 \\ \text {centroid} & 7 & 1.00 & 0.001 \\ \text {reconstruction} & 9 & 1.07 & 0.077 \\ \text {flux definition} & 12 & 29.60 & 3.678 \\ \end {array} \]
The product of the individual stage ratios is \(33.9\times \) (\(3.82\) mag) against a measured full range of \(48.8\times \) (\(4.22\) mag); the excess is interaction between stages. Including the three photometric zero points the reported magnitude of this single object spans
\[ 18.625 \le m \le 23.971, \qquad \Delta m = 5.35\ \mathrm {mag}. \]

One stage dominates. The flux definition contributes \(3.68\) of the \(4.22\) magnitudes; kernel, background, centroid and reconstruction together contribute \(0.15\). This is worth stating precisely, because it identifies where the indeterminacy lives: not in the numerical treatment of the pixels, which is stable to a few per cent, but in the prior question of which pixels belong to the object.

Fixing the other four stages at standard settings and varying one at a time:

\[ \begin {array}{lrr} \text {setting} & \text {flux} & \Delta m \\ \hline \text {reference (point, constant, gauss fit, cubic, } r{<}3) & 246.77 & 0.000 \\[2pt] \text {tophat } r{=}2\ \text {kernel} & 188.72 & +0.291 \\ \text {Lucy--Richardson} \times 30 & 338.86 & -0.344 \\ \text {marginal-parabola centroid} & 251.33 & -0.020 \\ \text {mesh-16 background} & 245.70 & +0.005 \\[2pt] \text {aperture } r{<}2 & 150.94 & +0.534 \\ \text {aperture } r{<}8 & 404.92 & -0.538 \\ \text {peak value} & 18.63 & +2.805 \\ \text {isophote } 1\sigma & 449.17 & -0.650 \\ \text {Kron radius} & 408.65 & -0.548 \\ \end {array} \]

The brightest path in the full sweep uses a square kernel, a constant background, Lucy–Richardson deconvolution and an isophotal flux; the faintest uses a top-hat kernel, a mesh-16 background, bilinear interpolation and the peak value. Both are combinations of individually standard choices.

443.0.6 Where the indeterminacy sits

The stages are not independent. Deconvolution concentrates light, so it raises an aperture flux more than an isophotal one; a fine background mesh lowers the zero level, so it raises an isophotal flux while leaving an aperture flux unchanged. The two-dimensional maps of Figure 396 show these couplings, and they account for the gap between the stage product (\(33.9\times \)) and the realised range (\(48.8\times \)).

That the centroid contributes a ratio of \(1.00\) is not a null result. The seven estimators disagree by a fraction of a pixel, and that disagreement propagates to the reported sky position rather than to the flux. Each stage has an output it controls; the question is which output one is reading.

443.0.7 What is not being claimed

The published UDF photometry is not in error, and \(4.22\) magnitudes is not an error bar on it. The catalogues fix a path — a stated aperture, a stated background mesh, a stated zero point — and report the flux along it, and that flux is reproducible by anyone following the same path.

The observation is narrower. The object has a magnitude only relative to a path; the path is chosen after the photons are counted; and the published uncertainty is computed conditional on the path, so it does not contain the spread across paths. Two groups analysing the same file with different defensible settings do not obtain the same number, and the difference is invisible in either group’s error budget.

443.0.8 The chain
  photons at the aperture                          not recorded
       |
       v  detector: QE, CTE, full well, read noise
  electrons per pixel per exposure                 not distributed
       |
       v  ADC: gain (e-/ADU), bias, linearity
  ADU per pixel, 576 exposures                     not distributed
       |
       v  drizzle: kernel=point, pixfrac=0.01,
       |           output grid, cosmic-ray rejection
  ============ 41 x 41 float array =============== THIS IS THE DATA
       |
       v  drizzle kernel        point | square | gaussian0.8 | gaussian1.5
       |                        | tophat r2                      1.05x  0.050 mag
       v  background model      constant | mesh 16,32,64,128
       |                        | median filter 51                1.02x  0.018 mag
       v  centroid              brightest | CoM | gauss w=1.5,3,6
       |                        | iso3 | iso5                     1.00x  0.001 mag
       |                        (disagreement goes to position, not flux)
       v  reconstruction        nearest | bilinear | cubic | quintic
       |                        | sinc | Lucy-Richardson x5,10,30,60
       |                                                          1.07x  0.077 mag
       v  flux definition       ap r=1,2,3,4,5,8,12 | peak
       |                        | isophote 1s,2s,3s | Kron
       |                                                         29.60x  3.678 mag
       v  zero point            AB 25.654 | ST 26.381 | Vega 25.256
       |                                                          1.11x  1.125 mag
  ================================================================================
   22,680 paths      flux  9.204 -- 449.341 e/s       48.8x     4.22 mag
   with zero points  mag  18.625 -- 23.971                      5.35 mag
   published value   m_AB = 19.179   (ap r<8, AB, point kernel, constant bg)
  ================================================================================

pict

Figure 392: The object. Full UDF field with the cutout marked, the \(512\times 512\) cutout with the stamp marked, the \(41\times 41\) stamp with three apertures and the centre-of-mass position, and the azimuthally averaged radial profile against the \(1\sigma \) and \(5\sigma \) background levels.

pict

Figure 393: The complete input: the central \(13\times 13\) pixel values in electrons per second. Every quantity reported for this object is a function of this array and of the choices listed in the text.

pict

Figure 394: The same \(41\times 41\) values under eight display transforms.

pict

Figure 395: (a) Distribution of the recovered flux over all reduction paths. (b) Ratio of the median flux between the extreme settings of each stage. (c–e) The same distribution split by background model, reconstruction method and flux definition.

pict

Figure 396: (a) Growth curves under each reconstruction. (b) Median flux as a function of background model and flux definition. (c) The same for reconstruction against centroid estimator.

pict

pict