421 Which Light Belongs to Which Object

The preceding subsection took a galaxy’s flux as given and asked what mass follows from it. This one asks the prior question: what makes a set of detector counts the flux of one object.

Four operations answer it, and all four are choices fixed in code.

421.0.1 The aperture

A fibre spectrograph cuts a disc out of the sky. The SDSS fibre subtends \(3''\); every photon inside that circle is the object’s, and every photon outside is not. Integrating the same MaNGA data cube within circular apertures of increasing radius, the flux fraction enclosed at \(1.5''\) is

\[ \begin {array}{lrrr} \text {galaxy} & \text {frac at } 1.5'' & M_* \text { factor} & D4000 \text { ratio} \\ \hline \text {8485-1901} & 0.417 & 2.40 & 1.012 \\ \text {8134-6102} & 0.158 & 6.31 & 1.018 \\ \text {9881-9102} & 0.074 & 13.57 & 1.015 \\ \text {7443-12703} & 0.079 & 12.63 & 1.060 \\ \end {array} \]
The aperture captures between \(7\%\) and \(42\%\) of the light, and the spectroscopic indices measured in it differ from those of the full cube. The quantity called the galaxy’s age is measured on the part of it that fell inside a circle whose radius was set by the fibre manufacturer.
421.0.2 The extrapolation

The remainder is supplied by fitting a profile and integrating it outward. Fitting five profile families to the same radial data:

\[ \begin {array}{lrrrr} \text {galaxy} & \text {best } n & L_{\rm tot}/L_{\rm obs}\ \text {range} & \text {within } \chi ^2<3\chi ^2_{\min } & \text {aperture corr.\ range} \\ \hline \text {8485-1901} & 0.98 & 0.80\text {--}1.06 & 1.01\text {--}1.02 & 1.9\text {--}2.5 \\ \text {8134-6102} & 0.20 & 0.17\text {--}1.00 & 0.49\text {--}0.70 & 1.1\text {--}4.4 \\ \text {9881-9102} & 0.49 & 0.10\text {--}1.00 & 0.89\text {--}0.90 & 1.4\text {--}12.2 \\ \text {7443-12703} & 0.48 & 0.16\text {--}1.00 & 0.78\text {--}0.91 & 2.0\text {--}11.5 \\ \end {array} \]

SDSS fits two families only, \(n=1\) and \(n=4\), and forms \(\mathrm {cmodel} = f_{\rm deV}\,\mathrm {deV} + (1-f_{\rm deV})\,\mathrm {exp}\) with \(f_{\rm deV}\) set by the likelihood ratio. For three of these four galaxies the catalogue records \(f_{\rm deV} \geq 0.898\), and for two of them \(f_{\rm deV} = 1.000\) exactly — that is, pure \(n=4\) — while the radial data prefer \(n \approx 0.2\)–\(0.5\) with \(\chi ^2\) smaller by factors of four to five. The published aperture correction for 7443-12703 is \(5.12\); refitting with the preferred \(n = 0.5\) gives \(11.52\), and the observed light alone requires \(12.63\).

421.0.3 The truncation

The extrapolation is not carried to infinity. The de Vaucouleurs profile is truncated at \(7\,r_e\) and smoothly zeroed by \(8\,r_e\); the exponential at \(3\,r_e\) and zeroed by \(4\,r_e\). The enclosed fraction is

\[ \begin {array}{lrrrrr} r_{\rm cut}/r_e & n{=}0.5 & n{=}1 & n{=}2 & n{=}4 & n{=}6 \\ \hline 2 & 0.936 & 0.848 & 0.761 & 0.690 & 0.657 \\ 3 & 0.998 & 0.961 & 0.878 & 0.788 & 0.741 \\ 7 & 1.000 & 1.000 & 0.987 & 0.929 & 0.880 \\ \infty & 1.000 & 1.000 & 1.000 & 1.000 & 1.000 \\ \end {array} \]
so the SDSS truncations discard \(7.1\%\) of an \(n=4\) profile and \(3.9\%\) of an \(n=1\) profile.

The stated reason for truncating is numerical stability and contamination by neighbours, not a property of galaxies. And the choice is absorbed downstream: since

\[ M_* = (M/L) \times L(r<r_{\rm cut}) \times \frac {1}{f(r_{\rm cut})}, \]
a different truncation is compensated exactly by a different \(M/L\). The pair \((r_{\rm cut},\,M/L)\) enters only as a product. Moving the cut from \(7\,r_e\) to infinity requires \(M/L\) smaller by \(0.929\) to return the same mass; \(M/L\) is supplied by the stellar population model, whose own IMF choice moves it by a factor of two.

This is the structure of a cutoff in an effective theory: the degrees of freedom above the cut are reabsorbed into the effective couplings below it, and only the combination is determined.

421.0.4 The point spread function

Every profile fit is performed after deconvolving an instrumental point spread function. The PSF is not observed. It is constructed by fitting a model to the images of objects in the field that are taken to be point sources.

Convolving a known \(n=1\), \(r_e = 2.0''\) profile with a double-Gaussian PSF of \(1.4''\) FWHM and refitting with different PSF families:

\[ \begin {array}{lrrrr} \text {PSF used in the fit} & r_e & n & \text {residual} & L_{\rm tot}\ \text {ratio} \\ \hline \text {Moffat }\beta {=}2.5 & 1.775 & 1.088 & 0.0031 & 1.000 \\ \text {Moffat }\beta {=}3.5 & 1.904 & 1.076 & 0.0022 & 1.146 \\ \text {Moffat }\beta {=}4.5 & 1.954 & 1.057 & 0.0020 & 1.198 \\ \text {Gaussian} & 2.040 & 0.977 & 0.0006 & 1.262 \\ \text {double Gaussian } f{=}0.10 & 2.000 & 1.000 & 0.0000 & 1.225 \\ \text {double Gaussian } f{=}0.20 & 1.902 & 1.006 & 0.0028 & 1.110 \\ \end {array} \]

The residuals span \(0.0006\) to \(0.0031\) — all small, and none decisive. The recovered total luminosity spans a factor of \(1.26\). The fit quality does not discriminate between PSF families, and the quantity that propagates to the mass does.

Misjudging only the width has a smaller but systematic effect: assuming \(1.0''\) instead of \(1.4''\) returns \(r_e\) high by \(2.9\%\) and \(n\) low by \(14\%\); assuming \(1.8''\) returns \(r_e\) low by \(4.3\%\) and \(n\) high by \(24\%\).

421.0.5 The circularity in the star–galaxy separation

SDSS classifies an object as a star when

\[ \mathrm {psfMag} - \mathrm {cmodelMag} < 0.145 . \]
The first term requires fitting the PSF at that position; the second requires convolving the composite profile model with the PSF; the threshold is hardcoded.

The PSF is built from the objects classified as stars. Changing \(0.145\) moves the boundary, which changes the sample of stars from which the PSF is constructed, which changes psfMag, which moves the boundary again.

421.0.6 The sky

What remains after subtraction is the object. The sky is estimated from fibres assigned to blank positions — \(32\) per plate — and a position is judged blank by the photometric catalogue, which is the output of the detection and deblending steps above.

421.0.7 The detection and the deblender

Whether a set of counts is one object or two is decided by the deblender: contiguous pixels above a threshold form an object, and multiple peaks within it are split into children. The SDSS mask bits record the outcome directly — CHILD, “Object is a child, created by the deblender”, and NODEBLEND, “Although this object was marked as a blend, no deblending was attempted”. The photometric catalogue therefore carries, per object, the record of whether the split was performed.

421.0.8 The source is not distributed

The routines implementing all of the above — detection, deblending, PSF construction, profile fitting — constitute the SDSS photo pipeline. It is not in a public repository: github.com/sdss/photo returns 404 and the SDSS subversion path returns 403. What is distributed is the output: psField files containing Karhunen–Loève coefficients of the fitted PSF, and photoObj files containing the resulting magnitudes and classifications. The supporting libraries idlutils and photoop are public and read those products.

Every measurement in §439.2 and in the spectroscopic sections above is conditioned on a pipeline whose source is unavailable.

421.0.9 The chain
\[ {\footnotesize \begin {array}{lll} \text {input} & \text {output} & \text {what fixes it} \\ \hline \text {photons} & \text {detector counts} & \texttt {opGain.par}, \text {note}='' \\ \text {counts} & \text {is it an object} & 5\sigma \ \text {contiguous pixels} \\ \text {object} & \text {one or two} & \text {deblender peak threshold} \\ \text {image} & \text {PSF removed} & \texttt {psField}\ \text {KL coefficients} \leftarrow \text {stars} \\ \text {star} & \text {is it a star} & \mathrm {psfMag}-\mathrm {cmodelMag}<0.145 \leftarrow \text {PSF} \\ \text {profile} & \text {which family} & f_{\rm deV} = \text {likelihood ratio} \\ \text {model} & \text {total light} & r_{\rm cut} = 7\,r_e,\ 3\,r_e \\ \text {light} & \text {mass} & M/L \leftarrow \text {SPS} \leftarrow \text {IMF} \\ \text {fibre} & \text {this galaxy's light} & 3''\ \text {aperture} + \text {correction} \\ \text {spectrum} & \text {sky subtracted} & 32\ \text {sky fibres} \leftarrow \text {photoObj} \\ \end {array} } \]
Rows four and five reference each other. Rows nine and ten depend on the output of row two. Row seven and row eight enter the mass only as a product.

The statement that a galaxy has a given mass and a given age presupposes that a particular set of counts is that galaxy’s, and that presupposition is manufactured by an aperture of stipulated radius, a detection threshold, a splitting rule, a PSF built from objects identified using that PSF, a profile family chosen from two, and a truncation radius chosen for numerical convenience.

421.0.10 The point spread function

Every profile fit is performed after removing an instrumental point spread function. The PSF is not measured. It is a model fitted to the images of objects in the field taken to be point sources, and stored as coefficients.

What is distributed. The psField file for a field contains, per band, a Karhunen–Loève decomposition: a small set of eigen-templates together with the polynomial coefficients that mix them as a function of position on the CCD. Reading the file for run 94, camcol 1, field 192 (rerun 301) gives, in the \(r\) band,

columns: nrow_b  ncol_b  c  lambda  RNROW  RNCOL  RTYPE
         RROWS  RROW0  RCOL0  counts

nrow_b = [3 3 3 3]      polynomial order in row, per template
ncol_b = [3 3 3 3]      polynomial order in column, per template
counts = [198076.45  -3192.84  -1131.31  1776.63]

Four templates, each mixed by a quadratic in row and column with no cross-terms. The reconstruction is

\[ a_k = \sum _i \sum _j (10^{-3}\,\mathrm {ROWC})^i (10^{-3}\,\mathrm {COLC})^j [C_k]_{ij}, \qquad \mathrm {PSF} = \sum _k a_k\,\mathrm {RROWS}_k . \]
The number of templates, the polynomial order, and the selection of stars from which the coefficients were fitted are choices; the file records only the result.

The PSF varies within a single frame. Reconstructing at five positions in the same frame:

\[ \begin {array}{lrrr} (\mathrm {row},\mathrm {col}) & \text {peak} & \mathrm {FWHM}\ [''] & \text {difference from first} \\ \hline (100,\ 100) & 0.06472 & 1.120 & 0.00\% \\ (700,\ 700) & 0.06518 & 1.120 & 7.61\% \\ (1300,\ 1500) & 0.06679 & 1.120 & 11.05\% \\ (200,\ 1800) & 0.06802 & 1.120 & 11.75\% \\ (1400,\ 300) & 0.06436 & 1.120 & 1.79\% \\ \end {array} \]
where the difference is \(\sum |P - P_{\rm ref}| / \sum P_{\rm ref}\).

The full width at half maximum is identical to three decimals at every position, and the profiles differ by up to \(11.75\%\). A single number summarising the PSF — the seeing — does not capture what the deconvolution actually removes. Two objects in the same exposure, separated by a few arcminutes, are deconvolved with different kernels, and which kernel applies is fixed by a quadratic fitted across the frame.

The family matters more than the width. Convolving a known \(n=1\), \(r_e = 2.0''\) profile with a double-Gaussian PSF of \(1.4''\) FWHM and refitting with each of six families at the correct width:

\[ \begin {array}{lrrrr} \text {PSF used in the fit} & r_e\ [''] & n & \text {residual} & L_{\rm tot}\ \text {(relative)} \\ \hline \text {Moffat }\beta {=}2.5 & 1.775 & 1.088 & 0.0031 & 1.000 \\ \text {Moffat }\beta {=}3.5 & 1.904 & 1.076 & 0.0022 & 1.146 \\ \text {Moffat }\beta {=}4.5 & 1.954 & 1.057 & 0.0020 & 1.198 \\ \text {Gaussian} & 2.040 & 0.977 & 0.0006 & 1.262 \\ \text {double Gaussian } f{=}0.10 & 2.000 & 1.000 & 0.0000 & 1.225 \\ \text {double Gaussian } f{=}0.20 & 1.902 & 1.006 & 0.0028 & 1.110 \\ \end {array} \]

The residuals span \(0.0006\) to \(0.0031\) — all below the noise of any real frame — and the recovered total luminosity spans a factor of \(1.26\). The fit quality does not select among PSF families, and the quantity that propagates to the stellar mass does.

Misjudging only the width is a smaller, systematic effect: assuming \(1.0''\) returns \(r_e\) high by \(2.9\%\) and \(n\) low by \(14\%\); assuming \(2.0''\) returns \(r_e\) low by \(6.7\%\) and \(n\) high by \(42\%\).

The classification loop. SDSS classifies an object as a star when

\[ \mathrm {psfMag} - \mathrm {cmodelMag} < 0.145 . \]
The first term requires fitting the PSF at that position; the second requires convolving the composite profile model with the PSF; the threshold is hardcoded. The PSF is built from the objects classified as stars. Changing \(0.145\) moves the boundary, which changes the sample from which the PSF is constructed, which changes psfMag, which moves the boundary again.

The source. The routines that perform the star selection, fit the KL coefficients, deblend the images and fit the profiles constitute the SDSS photo pipeline. github.com/sdss/photo returns 404; the SDSS subversion path returns 403. What is distributed is the output — psField and photoObj — together with read-only tools (read_PSF, read_atlas_image, read_mask), an algorithm description (Lupton, photo-lite; arXiv:astro-ph/0101420), and independent reimplementations of the reconstruction step (sdss_psfrec.pro in SDSSIDL; pydl.photoop.image. sdss_psf_recon).

The algorithm can therefore be read, and the reconstruction can be reproduced from the coefficients. The code that produced the coefficients cannot.

pict

Figure 368: The SDSS point spread function reconstructed from the psField Karhunen–Loève coefficients at five positions within a single frame (run 94, camcol 1, field 192, \(r\) band). Top: logarithmic images. Bottom: azimuthally averaged profiles. The full width at half maximum is \(1.120''\) at every position; the profiles differ by up to \(11.75\%\) in integrated absolute difference. The deconvolution kernel applied to an object depends on where in the frame it fell, through a quadratic fitted across the CCD.

pict

The chain from photons to a stellar mass
photons
  |  gain (opGain.par, 24 hand-entered lines, three with empty Note)
  v
detector counts
  |  5-sigma contiguous pixels
  v
"is it an object"
  |  deblender peak threshold; CHILD / NODEBLEND recorded per object
  v
"is it one object or two"
  |  PSF removed -- psField KL coefficients, fitted to stars
  v          ^
  |          |  stars identified by  psfMag - cmodelMag < 0.145
  |          |  which requires the PSF
  |          +--------------------------------------------------+
  v                                                             |
deconvolved image ----------------------------------------------+
  |  profile family: n=1 or n=4 only; fracDeV = likelihood ratio
  v
r_e, n
  |  truncation: 7 r_e (deV) discards 7.1%, 3 r_e (exp) discards 3.9%
  v
L(r < r_cut)
  |  extrapolation to infinity / f(r_cut)
  v
L_total
  |  M/L  <-  SPS  <-  IMF          [ (r_cut, M/L) enter only as a product ]
  v
stellar mass

the same photons, spectroscopic branch
  |  3-arcsec fibre aperture: 7% to 42% of the light enters
  v
fibre spectrum
  |  sky subtracted using 32 sky fibres per plate
  |  a position is "blank" according to photoObj -- output of the branch above
  v
object spectrum
  |  wavelength solution fitted to an arc line list
  |  the list contains Ritz values with no observed counterpart
  v
observed wavelength
  |  z = (lambda_obs - lambda_lab) / lambda_lab
  v
redshift

what fixes each quantity, and what it costs

  quantity            fixed by                       spread
  ------------------  ----------------------------  --------------
  ADU -> electrons    opGain.par entry for that MJD  up to 43% at a
                      selected by  mjd .lt. MJD      switch boundary
  is it an object     5 sigma                        -
  one or two          deblender peak threshold       -
  PSF                 KL basis, polynomial order,    L_tot x 1.26
                      the star sample
  star or galaxy      psfMag - cmodelMag < 0.145     moves the star
                      hardcoded                      sample -> PSF
  profile family      n = 1 or n = 4 only            L_tot x 1.45-2.25
                      fracDeV = likelihood ratio     within chi2 < 3x
  truncation          7 r_e / 3 r_e                  L x 1.04-1.08
  M/L                 SPS + IMF                      x 2
  aperture            3 arcsec fibre                 x 2.4-13.6

421.1 What the Reparameterisation Can and Cannot Absorb

The stellar mass assigned to a galaxy has the form

\[ M_* \;=\; \Upsilon \times L_{\rm obs}(\text {aperture}) \times \frac {1}{f(r_{\rm cut}, n)}, \]
with \(\Upsilon = M/L\) from the population model, \(L_{\rm obs}\) the flux actually integrated inside the aperture, and \(f\) the fraction of the model profile that the aperture and truncation admit.

In logarithm,

\[ \log M_* \;=\; \log \Upsilon + \log L_{\rm obs} + \log (1/f). \]
A choice that shifts \(\log M_*\) by a constant is indistinguishable from a redefinition of \(\Upsilon \). A choice that shifts it by an amount depending on the galaxy is not. The question of whether a given cutoff matters is therefore the question of whether its effect factorises.
421.1.1 One axis at a time factorises

Holding everything else fixed and varying the truncation radius alone, with \(n=4\), \(r_e = 3''\) and a \(1.5''\) aperture:

\[ \begin {array}{lrrr} r_{\rm cut}/r_e & f & M_*\ (\Upsilon {=}1) & \Upsilon \ \text {needed} \\ \hline 4 & 0.8466 & 0.3778 & 1.0000 \\ 7 & 0.9293 & 0.3441 & 1.0977 \\ 10 & 0.9615 & 0.3326 & 1.1357 \\ \infty & 1.0000 & 0.3198 & 1.1812 \\ \end {array} \]
The last column is the factor by which \(\Upsilon \) must change to return the same mass. It is a single number, applicable to every galaxy. The pair \((r_{\rm cut}, \Upsilon )\) enters only as a product, and neither is separately determined.

The same holds for the aperture at fixed profile, and for the PSF width at fixed PSF family — the latter being absorbed by \(r_e\) rather than by \(\Upsilon \).

421.1.2 Two axes do not

Tabulating \(M_*\) over pairs of choices and asking how well the logarithm is described by a sum of one-dimensional terms:

\[ \begin {array}{llrr} \text {axis 1} & \text {axis 2} & \text {rank-1 \%} & \text {residual \%} \\ \hline n & \text {sky offset} & 63.56 & 36.44 \\ \text {aperture} & \text {sky offset} & 85.02 & 14.98 \\ n & r_e & 87.08 & 12.92 \\ n & \text {aperture} & 88.51 & 11.49 \\ r_e & \text {PSF FWHM} & 99.82 & 0.18 \\ n & \text {PSF FWHM} & 99.70 & 0.30 \\ \text {aperture} & \text {PSF FWHM} & 99.93 & 0.07 \\ \end {array} \]
The residual is the part of the variation that no redefinition of \(\Upsilon \) can remove. For the profile index against the sky level it is \(36\%\); for the profile index against the aperture, \(11.5\%\). Only the PSF width, which acts through \(r_e\) alone, factorises cleanly.

Extending to three axes simultaneously — profile index, aperture, PSF width — an additive model in the three reproduces \(88.50\%\) of the variance, leaving \(11.50\%\) as interaction. The largest single interaction residual is \(0.582\) in \(\ln M_*\), a factor of \(1.79\), against a total range of \(22.2\) across the grid.

421.1.3 The same statement at the sample level

The criterion has a direct form. Apply two reductions to the same set of galaxies and take the ratio of the masses; if the ratio is constant, a single \(\Upsilon \) absorbs the difference, and if it scatters, it does not.

For \(400\) galaxies with \(r_e\) drawn log-normally about \(3''\):

\[ \begin {array}{lrrr} \text {change from the default} & \text {median ratio} & \text {scatter [dex]} & \text {range} \\ \hline n = 0.5\ \text {only} & 0.475 & 0.475 & 0.12\text {--}1.22 \\ \text {aperture } 3''\ \text {only} & 1.555 & 0.081 & 1.27\text {--}1.94 \\ n = 0.5 + \text {aperture } 3'' & 1.474 & 0.278 & 0.47\text {--}1.77 \\ n = 0.5 + \text {PSF } 0.8'' & 0.487 & 0.496 & 0.12\text {--}1.34 \\ \text {all three} & 1.497 & 0.284 & 0.48\text {--}1.81 \\ \end {array} \]

The scatter is not zero even for a single-axis change, because \(f\) depends on \(r_e/r_{\rm aper}\) and \(r_e\) varies across the sample. What a fixed \(\Upsilon \) could absorb is the median; what it cannot absorb is the \(0.08\) to \(0.50\) dex of galaxy-to-galaxy variation, a factor of \(1.2\) to \(3.2\).

421.1.4 Realised combinations

Taking the SDSS default — \(n = 4\), \(r_{\rm cut} = 7\,r_e\), \(1.5''\) aperture, \(1.4''\) PSF — as unity, and moving to choices the data themselves prefer:

\[ \begin {array}{lrl} \text {configuration} & M_*/M_*^{\rm SDSS} & \text {absorbable by } \Upsilon \\ \hline \text {SDSS default} & 1.000 & - \\ \text {profile index the data prefer } (n{=}0.5) & 0.450 & \text {yes} \\ \ \ + \text {aperture } 3'' & 1.428 & \text {no} \\ \ \ + \text {PSF family} & 0.460 & \text {no} \\ \ \ + \text {sky offset } 1\% & 0.658 & \text {no} \\ \ \ + \text {aperture} + \text {PSF} & 1.454 & \text {no} \\ \ \ + \text {all three} & 2.289 & \text {no} \\ \text {no truncation, } n\ \text {free} & 2.284 & \text {no} \\ \end {array} \]

The last row differs from the first by a factor of \(2.28\) and cannot be returned by any single choice of \(\Upsilon \), because the required correction differs from galaxy to galaxy by \(0.28\) dex.

421.1.5 Remark

This is the structure of a cutoff in an effective theory, and its limit. A single cutoff can be moved freely: the degrees of freedom above it are reabsorbed into the effective couplings below, and only the product is observable. Two cutoffs cannot both be moved freely, because their effects do not commute — the interaction term remains.

In the present case the couplings are \(\Upsilon \) and \(r_e\), and the cutoffs are the truncation radius, the aperture, the profile family, the PSF family, and the sky level. Moving any one is invisible. Moving two is a different measurement.

The published catalogue fixes all of them at once, and the fixing is not recorded as an uncertainty.

421.2 The Object

Every preceding section presupposes that something is being measured. This one examines the presupposition.

421.3 Pointing requires a prior catalogue

A directed observation begins with coordinates, and the coordinates must exist before the observation. They come from an earlier observation.

\[ \begin {array}{ll} \text {SDSS} & \texttt {plugmap} \leftarrow \text {target selection} \leftarrow \text {imaging catalogue} \\ \text {DESI} & \texttt {fiberassign} \leftarrow \text {Legacy Surveys DR9} \\ \text {VLBI} & \text {schedule } (\texttt {.skd}) \leftarrow \text {ICRF source list} \\ \text {ALMA} & \text {Scheduling Block} \leftarrow \text {catalogue position} + \text {calibrator list} \\ \text {JWST/HST} & \text {APT visit} \leftarrow \text {proposer coordinates} \\ \end {array} \]

In the released code this is explicit rather than implied. The DESI fibre assignment package reads a target table and renames its position column:

orig_h["TARGETS"].columns["RA"].name = "TARGET_RA"
if "TARGET_RA" in tgdata.dtype.names:
    d_ra[:] = tgdata["TARGET_RA"][:]

Eighty-two lines in fiberassign and \(462\) in desitarget reference the target table, its mask bits, its priority or its observation count. The instrument does not find objects; it is told where they are.

421.4 How many are there

421.4.1 The same sky, six catalogues

Querying VizieR for sources within \(3'\) of five positions:

\[ \begin {array}{lrrrrrrr} \text {field} & \text {SDSS} & \text {Gaia} & \text {2MASS} & \text {AllWISE} & \text {PS1} & \text {GALEX} & \text {ratio} \\ \hline \text {COSMOS} & 180 & 36 & 18 & 128 & 283 & 24 & 15.7 \\ \text {GOODS-N} & 379 & 15 & 6 & 144 & 124 & 7 & 63.2 \\ \text {Stripe 82} & 3353 & 35 & 17 & 100 & 186 & 49 & 197.2 \\ \text {NGP} & 184 & 23 & 10 & 114 & 108 & 0 & 18.4 \\ \text {Bulge-adjacent} & 0 & 2090 & 920 & 233 & 3560 & 0 & 15.3 \\ \end {array} \]

The ratio of largest to smallest non-zero count runs from \(15\) to \(197\). Two fields return zero sources in a catalogue that returns hundreds or thousands in another: SDSS has no coverage of the bulge-adjacent field, and GALEX none of the bulge-adjacent or NGP fields.

These are different instruments observing different wavelengths to different depths, and the disagreement is expected. The point is what follows from it: there is no catalogue-independent count of the objects in a patch of sky, and every statement of the form “this field contains \(N\) galaxies” names a survey.

421.4.2 The same objects, two catalogues

Cross-matching the COSMOS field within a tolerance \(r\):

\[ \begin {array}{lrrrr} \text {pair} & r & \text {matched} & \text {of A} & \text {of B} \\ \hline \text {SDSS} \times \text {Gaia} & 0.5'' & 31 & 17.2\% & 86.1\% \\ & 1.0'' & 35 & 19.4\% & 97.2\% \\ & 2.0'' & 35 & 19.4\% & 97.2\% \\[3pt] \text {SDSS} \times \text {PS1} & 0.5'' & 138 & 76.7\% & 48.8\% \\ & 1.0'' & 149 & 82.8\% & 52.7\% \\ & 2.0'' & 150 & 83.3\% & 53.0\% \\[3pt] \text {SDSS} \times \text {AllWISE} & 0.5'' & 48 & 26.7\% & 37.5\% \\ & 1.0'' & 72 & 40.0\% & 56.2\% \\ & 2.0'' & 78 & 43.3\% & 60.9\% \\[3pt] \text {PS1} \times \text {AllWISE} & 0.5'' & 57 & 20.1\% & 44.5\% \\ & 1.0'' & 78 & 27.6\% & 60.9\% \\ & 2.0'' & 87 & 30.7\% & 68.0\% \\ \end {array} \]

Gaia sources are matched by SDSS at \(97\%\); SDSS sources are matched by Gaia at \(19\%\). The relation is not symmetric, and neither figure is a property of the sky.

The tolerance matters most where the two catalogues have the poorest angular resolution in common. SDSS \(\times \) AllWISE rises from \(26.7\%\) to \(43.3\%\) between \(0.5''\) and \(2''\), a factor of \(1.6\); SDSS \(\times \) Gaia is flat above \(1''\). Widening the radius does not resolve ambiguity, it absorbs it: at \(2''\) a match is asserted between objects that may be unrelated.

Identity across catalogues is a decision about a radius.

421.5 Detection on a real image

An SDSS \(r\)-band frame (frame-r-001000-1-0027, \(1489 \times 2048\) pixels) was background-subtracted with a \(64\times 64\) mesh, convolved with a Gaussian kernel, and passed to segmentation and deblending with varying parameters.

\[ \begin {array}{rrrrrr} n\sigma & \texttt {npixels} & \texttt {nlevels} & \texttt {contrast} & \text {segments} & \text {deblended} \\ \hline 1.5 & 3 & 32 & 0.001 & 1011 & 1109 \\ 2.0 & 5 & 32 & 0.001 & 911 & 989 \\ 3.0 & 5 & 32 & 0.001 & 777 & 834 \\ 5.0 & 5 & 32 & 0.001 & 642 & 674 \\ 10.0 & 10 & 32 & 0.100 & 447 & 459 \\ \end {array} \]

Over the full grid of \(60\) settings the number of detected objects runs from \(459\) to \(1109\), a factor of \(2.4\), on one image.

The detection threshold dominates. Holding everything else fixed and varying only \(n\sigma \):

\[ \begin {array}{rrr} n\sigma & \text {segments} & \text {deblended} \\ \hline 1.5 & 986 & 1079 \\ 2.0 & 911 & 989 \\ 3.0 & 777 & 834 \\ 5.0 & 642 & 674 \\ 10.0 & 471 & 487 \\ \end {array} \]
a factor of \(2.2\). Deblending contributes less: varying contrast over \(0.001\), \(0.01\), \(0.1\) at fixed threshold gives \(834\), \(824\), \(809\) — a spread of \(3\%\). Whether a blend is split into two objects or kept as one is a smaller effect than whether a faint object is admitted at all.

The values in use are not derived. Scanning the same packages returns:

\[ \begin {array}{ll} \texttt {contrast} & \{0.0,\ 0.001,\ 0.03,\ 1.0\} \\ \texttt {deblend\_cont} & \{0.005,\ 1.0\} \\ \texttt {deblend\_nthresh} & \{32\} \\ \texttt {nsigma} & \{2.0,\ 5.0\} \\ \texttt {minarea} & \{1.0,\ 5.0\} \\ \texttt {thresholdFactor} & \{0.25,\ 1.0,\ 1.2,\ 1.25,\ 1.4,\ 1.5,\ 1.7\} \\ \texttt {threshold} & \{0.1,\ 0.8,\ 1.0,\ 1.5,\ 3.2,\ 5.0,\ 10.0,\ 25.0,\ \dots \} \\ \end {array} \]
Fifty-eight assignments over twelve names, each fixed in source.

421.6 The loop

\begin{align} \text {where to point} \quad &\leftarrow \text {target catalogue} \leftarrow \text {prior imaging} \leftarrow \text {its detection threshold} \tag{22171}\\ \text {what counts as one} \quad &\leftarrow \text {deblending} \leftarrow \text {PSF model} \leftarrow \text {point source assumed} \tag{22172}\\ \text {the PSF model} \quad &\leftarrow \text {measured on stars} \leftarrow \text {which objects are stars} \leftarrow \text {classification} \tag{22173}\\ \text {classification} \quad &\leftarrow \text {colour--colour locus} \leftarrow \text {photometry} \leftarrow \text {zero point} \leftarrow \text {standard stars} \tag{22174}\\ \text {redshift} \quad &\leftarrow \text {spectrum} \leftarrow \text {fibre assignment} \leftarrow \text {target catalogue} \leftarrow \text {photo-}z \tag{22175}\\ \text {photo-}z \quad &\leftarrow \text {training set} \leftarrow \text {spectroscopic } z \leftarrow \text {the same selection} \tag{22176}\\ \text {existence} \quad &\leftarrow \text {detection} \leftarrow \text {threshold} \leftarrow \text {background} \leftarrow \text {masking detected objects} \tag{22177}\end{align}

The last is the tightest. The detection threshold is set relative to the background; the background is estimated after masking the detected objects; and what is detected depends on the threshold.

421.7 Observations that do not point

Some instruments observe without a target list, and it is worth stating what replaces it.

\[ \begin {array}{ll} \text {Gaia} & \text {autonomous onboard detection} \leftarrow \text {threshold } G \approx 20.7 \\ \text {ZTF, LSST} & \text {repeated all-sky} \leftarrow \text {difference imaging} \leftarrow \text {a reference image} \\ \text {radio surveys} & \text {beam scanning} \leftarrow \text {source extraction threshold} \\ \text {gravitational waves} & \text {omnidirectional} \leftarrow \text {matched filtering} \leftarrow \text {a template bank} \\ \text {neutrinos} & \text {omnidirectional} \leftarrow \text {event definition} \leftarrow \text {a threshold} \\ \end {array} \]

In each case the prior catalogue is replaced by something that plays the same role. Gaia detects autonomously, and objects fainter than its onboard threshold do not enter the catalogue — the threshold, not the sky, sets the boundary of the survey. Difference imaging finds what changed relative to a reference, and the reference is a set of detections made with a threshold. A matched filter detects waveforms present in the bank; a waveform outside the bank is not detected, which is why the bank is constructed from the models being tested.

The absence of a target list removes the explicit circularity of §421.2 and replaces it with a threshold or a template. It does not produce an unconditioned observation.

\[ \boxed { \begin {aligned} &\text {presupposed} && \text {that something is at these coordinates} \\ &\text {source of the coordinates} && \text {a prior catalogue, or a threshold} \\ &\text {number of objects} && 459\text {--}1109\ \text {on one image;} \ 15\text {--}197\times \ \text {across catalogues} \\ &\text {identity across catalogues} && \text {a choice of matching radius} \\ &\text {measured} && \text {a count above a threshold in a background} \\ & && \text {estimated after masking what was counted} \end {aligned}} \]

The sections above traced a redshift to a wavelength, a wavelength to a count, and a count to a voltage above a threshold. This section adds the step before all of them. The instrument is pointed at coordinates supplied by a catalogue whose entries were produced by the same operation, and the object whose properties are then measured is the thing that survived a threshold.

\begin{align*} &\text {Continuous voltage}\\ &\quad \downarrow \ \text {(amplification, factors of }10^6\text {)}\\ &\text {Continuous charge}\\ &\quad \downarrow \ \text {(threshold, human-set)}\\ &\text {Integer count}\\ &\quad \downarrow \ \text {(division by QE, factor }0.15\text {--}0.95\text {)}\\ &\text {``Photon count''}\\ &\quad \downarrow \ \text {(calibration chain, 9 circles)}\\ &\text {Physical quantity}\\ &\quad \downarrow \ \text {(theory framework)}\\ &\text {``Measurement''} \end{align*}

pict

421.8 Gain and the Poisson Assumption

Of the nine circular calibrations of Remark 420.1, one closes exactly. It is stated here in full because the closure is algebraic rather than approximate.

421.8.1 What the photon transfer curve assumes

The gain is obtained from flat fields by measuring the mean and variance of the signal in digital units and forming

\begin{equation} \hat g \;=\; \frac {\mu _{\rm ADU}}{\sigma ^2_{\rm ADU}} . \label {eq:ptc} \tag{22178}\end{equation}
This identity holds only if the electron count is Poisson distributed. Writing \(S = N_e/g\),
\begin{equation} \mathrm {Var}(N_e) = \langle N_e\rangle \;\Longrightarrow \; \sigma ^2_{\rm ADU} = \frac {\langle N_e\rangle }{g^2} = \frac {\mu _{\rm ADU}}{g} . \tag{22179}\end{equation}
The gain is therefore measured under the assumption of Poisson statistics.
421.8.2 The Poisson test returns the gain it was given

The standard check on the assumption is to convert the signal to electrons and verify that the variance equals the mean. Substituting \(N_e = \hat g\,S\):

\begin{equation} \frac {\mathrm {Var}(N_e)}{\langle N_e\rangle } = \frac {\hat g^2\,\sigma ^2_{\rm ADU}}{\hat g\,\mu _{\rm ADU}} = \hat g \cdot \frac {\sigma ^2_{\rm ADU}}{\mu _{\rm ADU}} = \frac {\hat g}{\hat g} = 1 . \label {eq:identity} \tag{22180}\end{equation}
The test is satisfied identically. It is Eq. (22178) rearranged.

Verified numerically on simulated flats with \(g = 2.0\), \(\langle N_e\rangle = 400\), read noise \(3\,e^-\), which give \(\hat g = 1.9551\):

\[ \begin {array}{rr} \text {assumed } g & \mathrm {Var}(N_e)/\langle N_e\rangle \\ \hline 0.5000 & 0.255747 \\ 1.0000 & 0.511495 \\ \mathbf {1.9551} & \mathbf {1.000000} \\ 2.0000 & 1.022989 \\ 5.0000 & 2.557474 \\ \end {array} \]
The ratio is exactly unity at \(\hat g\) and at no other value, to six decimal places. The apparent agreement at the true gain \(2.0\) — \(1.0230\) — is worse than at the estimate, because the estimate is defined to make it one.
421.8.3 The test rejects the gain, not the assumption

Adopting the conventional presentation, in which a \(\chi ^2\) against a Poisson distribution is computed for the inferred electron counts:

\[ \begin {array}{rrrrr} \text {assumed } g & \langle N_e\rangle & \mathrm {Var} & \mathrm {Var}/\text {mean} & \chi ^2/\mathrm {dof} \\ \hline 0.5 & 100.0 & 25.6 & 0.256 & 2182.7 \\ 1.0 & 200.0 & 102.5 & 0.513 & 336.0 \\ 1.5 & 300.0 & 230.7 & 0.769 & 44.3 \\ 2.0 & 400.0 & 410.1 & 1.025 & 1.36 \\ 3.0 & 600.0 & 922.8 & 1.538 & 156.7 \\ 5.0 & 1000.0 & 2563.4 & 2.564 & 872.8 \\ 10.0 & 2000.0 & 10253.6 & 5.127 & 1722.4 \\ \end {array} \]
The \(\chi ^2\) discriminates sharply, and a reader would conclude that the Poisson hypothesis has been tested and passed at \(g = 2\). What has been tested is the value of \(g\). The Poisson form was assumed in constructing the estimator and cannot be rejected by a statistic built from it.
421.8.4 Non-Poisson charge biases the gain

Because the assumption cannot be tested this way, a departure from it appears as an error in the gain rather than as a failed test. Simulating flats with \(g = 2.0\) under several charge statistics and applying Eq. (22178):

\[ \begin {array}{lrr} \text {charge statistics} & \hat g & \text {error} \\ \hline \text {Poisson (assumed)} & 1.952 & -2.4\% \\ \text {over-dispersed, mild} & 0.399 & -80.1\% \\ \text {over-dispersed, strong} & 0.095 & -95.3\% \\ \text {sub-Poisson (charge sharing)} & 3.893 & +94.7\% \\ \text {excess noise factor } \sqrt {2} & 0.984 & -50.8\% \\ \end {array} \]

Over-dispersion — flat-field structure, pixel-to-pixel sensitivity variation, illumination gradients — makes the variance exceed the mean and drives the inferred gain down, by up to \(95\%\) in the strong case. Sub-Poisson behaviour from charge sharing or the brighter-fatter effect drives it up by \(95\%\). An excess noise factor of \(\sqrt {2}\), the intrinsic value for avalanche multiplication, halves it.

Which of these applies is exactly the question the gain would be needed to settle.

421.8.5 What propagates

The gain converts every measured signal into a photon count, and an error in it propagates unattenuated:

\[ \begin {array}{rrrr} \Delta g & \Delta N_\gamma & \Delta m\ [\mathrm {mag}] & \text {claimed S/N} \\ \hline -20\% & -20\% & +0.242 & 0.894 \\ -10\% & -10\% & +0.114 & 0.949 \\ -5\% & -5\% & +0.056 & 0.975 \\ +10\% & +10\% & -0.104 & 1.049 \\ +20\% & +20\% & -0.198 & 1.095 \\ \end {array} \]
A ten per cent gain error is a \(0.10\) mag photometric error and a five per cent misstatement of the signal-to-noise ratio.
421.8.6 The implementation

The LSST photon transfer curve task exposes the structure directly. The extraction stage carries:

\begin{align*} &\text {LSST photon transfer curve task --- extraction stage:}\\ &\quad \texttt {minNumberGoodPixelsForCovariance}\\ &\quad \texttt {thresholdDiffAfwVarVsCov00}\\ &\quad \texttt {maximumRangeCovariancesAstier}\\ &\quad \texttt {gainCorrectionType}\\[4pt] &\text {solve stage:}\\ &\quad \texttt {minMeanSignal}\\ &\quad \texttt {maxMeanSignal}\\ &\quad \texttt {sigmaClipFullFitCovariancesAstier}\\ &\quad \texttt {maxIterFullFitCovariancesAstier}\\ &\quad \texttt {minVarPivotSearch}\\ &\quad \texttt {consecutivePointsVarDecreases}\\[4pt] &\text {dataset object stores: \texttt {gain} and \texttt {gainUnadjusted}}\\[4pt] &\text {separate task \texttt {cpPtcAdjustGainRatios}:}\\ &\quad \texttt {new\_gain = output\_ptc.gainUnadjusted[amp\_name] / correction}\\ &\quad \text {bounded by \texttt {max\_fractional\_gain\_ratio}} \end{align*}

bounding how far the correction may go.

The Astier model fitted in place of the simple ratio includes a brighter-fatter parameter \(a_{00}\), whose test value is \(-1.2\times 10^{-6}\). That parameter describes precisely the sub-Poisson charge correlation of the table above: the departure from Poisson statistics is absorbed into the model rather than treated as a failure of the assumption underlying the measurement.

\[ \boxed { \begin {aligned} &\hat g = \mu /\sigma ^2 && \text {requires } \mathrm {Var}(N_e) = \langle N_e\rangle \\ &\mathrm {Var}(\hat g S)/\langle \hat g S\rangle = 1 && \text {identically, for any data} \\ &\text {departures from Poisson} && \text {appear as gain error, not as a failed test} \\ &\text {measured value of that error} && -95\%\ \text {to}\ +95\% \\ &\text {propagation} && \Delta N_\gamma = \Delta g;\ \ \Delta m = -2.5\log _{10}(1+\Delta g) \end {aligned}} \]

The conversion from electrons to photons requires the quantum efficiency (§420); the conversion from digital units to electrons requires the gain; and the gain is measured by an equation whose validity is the thing the measurement would have to establish.