Lecture 03: CCD Detectors, Bias, Dark, and Flat Fields

ASTR 210 Observational Astronomy and Data Reduction

Context and Why This Matters

A CCD or CMOS sensor converts photons into electrons with high linearity, which is why it replaced photographic plates, but every pixel adds its own small, systematic offset and its own sensitivity. Understanding these effects at the hardware level explains why calibration frames must be taken on the same night, with the same instrument setup, as the science frames — exactly as Lecture 1’s Canon EOS M50 example did.

Learning Goals

  1. Explain the physical origin of bias, dark current, and flat-field variations in a CCD.
  2. Derive and apply the calibration equation I_cal = (I_raw − D)/F to a real worked example, converting Lecture 1's qualitative additive/multiplicative reasoning into a computable tool.
  3. Distinguish additive corrections from multiplicative corrections.

Opening Phenomenon

A galaxy image taken with a dirty or scratched filter shows a faint ring pattern (dust donuts) that has nothing to do with the galaxy. The same instrumental pattern appears, identically, in a flat-field exposure of blank twilight sky.

Terms Developed in Context

These terms form the measurement chain for CCD Detectors, Bias, Dark, and Flat Fields: each connects an observable to a model choice, and each has a boundary that must be respected when making a scientific claim.

bias frame

A nominally zero-exposure image that maps the electronic offset added during detector readout. It reveals why an unilluminated pixel can have a large positive value and establishes the additive calibration floor.

A master bias estimates the offset and read-noise pattern; a matched dark may already contain this bias pedestal. A bias frame does not measure thermal charge, and subtracting both a bias and a dark that already includes bias would double-correct the data.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

dark current

Thermally generated charge accumulated in a detector pixel during an exposure even when no photons arrive. It can imitate faint source signal or produce hot pixels unless a matched dark exposure or detector model removes it.

Dark signal generally depends on exposure time and temperature and enters the additive part of the calibration and SNR models. Dark current is a signal with shot noise; a dark subtraction removes its mean pattern but cannot erase the noise already accumulated.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

flat field

A normalized image of relative pixel and optical throughput measured under spatially uniform illumination. Dividing by the flat removes vignetting, dust shadows, and pixel-response variations that would otherwise bias flux comparisons.

The flat is the multiplicative term \(F\) in \(I_{cal}=(I_{raw}-D)/F\), so values above and below one rescale counts in opposite directions. A flat is valid only for the optical configuration, filter, focus, and detector state in which it was obtained.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

quantum efficiency

The fraction of incident photons at a given wavelength that produce collected detector electrons. It sets wavelength-dependent sensitivity and therefore affects exposure planning and count-to-flux interpretation.

Expected electrons scale approximately as incident photons times quantum efficiency and total optical throughput. Quantum efficiency is not constant with wavelength and is not the same as the gain from electrons to ADU.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

vignetting

A position-dependent loss of illumination caused by the optical system, usually strongest toward the field edges. It explains the radial flat-field pattern and why equal sources can have unequal raw counts at different detector positions.

A normalized flat maps vignetting so division restores a common photometric response across the field. Flat correction compensates stable vignetting but cannot recover photons that were never detected with the same SNR as the field center.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

read noise

Random electronic uncertainty introduced when the detector charge is measured and digitized. It limits faint-source measurements and makes many very short exposures less efficient than fewer longer exposures.

For an aperture of \(n_{pix}\) pixels, the variance contribution is \(n_{pix}R^2\), added in quadrature with photon-noise terms. Read noise is not removed by bias subtraction; the mean bias pattern can be removed, but stochastic read noise remains.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

linearity

The regime in which recorded counts are proportional to the number of collected electrons or incident photons. Linearity is what permits calibrated counts to be compared, averaged, and converted into relative flux.

A linear detector obeys \(C=aN_e+b\) over its usable range, allowing additive and multiplicative calibration models. Near saturation or at very low signal, detector response can depart from linearity and invalidate simple scaling.

Developed in this lecture: The term helps interpret this evidence: The Lecture 1 master bias (20 stacked frames) gives a stable mean of about 2,048 ADU with a small (1.7–2.2 ADU) scatter, independent of exposure time. It also constrains the working model: Bias and dark current are additive detector signals; when the master dark is captured at the same exposure length as the light frames, a single dark-frame subtraction removes both at once.

Evidence

Model

Working Equation

\[ I_{\rm cal} = \dfrac{I_{\rm raw} - D}{F} \]

This is the equation implied by Lecture 1's additive-then-multiplicative reasoning, now stated so it can be computed directly.

Worked Example

  1. A second real patch (the "center" patch in Lab 01) records 3048 raw ADU with flat value F = 1.09.
  2. Using the same matched-exposure master dark D = 2046.0 ADU as Lecture 1: corrected signal = (3048 − 2046.0) / 1.09 = 919.3 ADU.
  3. Note that the center patch has a higher flat value (F = 1.09 > 1) than the top-left patch (F = 0.96 < 1), consistent with the vignetting pattern: the sensor center is more sensitive than its corners, so a center-patch raw count is divided up rather than down to match the true source brightness.

Common Misconception

Using a flat field taken through a different filter, at a different focus, or on a different night than the science frames. Flats are only valid for the exact optical configuration that produced them.

Active-Learning Guidance

Sketch, without numbers, how a bias frame, a dark frame, and a flat frame would each look if photographed directly, and explain which corrections are additive and which are multiplicative.

Lab / Observing Connection

Lab 01 requires completing the calibration table for all five real aperture patches, including the two shown here as worked examples plus three left for the student.

Synthesis Questions

References