Midwest Astronomy

Astrophotography Calibration Frames Explained: Darks, Flats, Bias and Dark Flats

Quick answer: Calibration frames remove signals that are not the sky. Darks (same exposure, gain, offset and temperature as your lights, with the scope capped) remove thermal signal, amp glow and hot pixels. Flats (same optical train and focus, evenly lit) correct vignetting and dust shadows. Bias frames (shortest exposure) or dark flats (same exposure as your flats) remove the sensor offset from the flats. Shoot 20-50 of each, build masters, and calibrate before registration and stacking.

As an Amazon Associate, Midwest Astronomy earns from qualifying purchases.

Every light frame you capture contains three things: the signal from the sky, unwanted signal added by the camera and optics, and random noise. Calibration subtracts and divides out the unwanted but repeatable part. It cannot remove random noise; in fact the Siril documentation points out that calibration adds a little noise, which is why you build each master from many frames. Done well, calibration is the difference between a clean background and one full of dust donuts, dark corners, glowing edges and colored speckles that no amount of processing will fully hide.

What each calibration frame removes

Frame How to shoot it What it removes Must match
Lights The target (This is your data) –
Darks Scope capped, same exposure as lights Thermal signal, amp glow, hot pixels, offset Exposure, gain/ISO, offset, sensor temperature, binning
Flats Evenly lit field (panel, sky, screen) Vignetting, dust donuts, pixel sensitivity differences Optical train, focus, camera rotation, filter, binning
Bias Capped, shortest possible exposure Fixed electronic offset (read pattern) Gain/ISO, offset, binning
Dark flats Capped, same exposure as flats Offset and short-exposure dark signal in flats Flat exposure, gain, offset, temperature
Grid of gray flat-field calibration frames from a multi-detector astronomical camera showing uneven pixel sensitivity
Flat-field frames from a professional multi-chip camera. Flats record vignetting, dust and pixel-to-pixel sensitivity so they can be divided out of your light frames. Photo: ESO, CC BY 4.0, via Wikimedia Commons

Dark frames

Darks record what the sensor produces with no light: the bias offset, thermal signal that grows with exposure time and temperature, hot pixels, and on many CMOS sensors amp glow at an edge or corner. Subtracting a master dark removes that pattern from each light.

How to shoot them:

  1. Cap the telescope or lens and cover the viewfinder on a DSLR. Light leaks around filter wheels and focusers are common, so check a test dark for gradients.
  2. Use the same exposure time, gain (or ISO), offset and binning as your lights.
  3. Match sensor temperature. Cooled cameras make this easy: set the same setpoint and you can build a dark library that stays valid for months. Uncooled DSLRs and mirrorless cameras are harder, because the sensor warms during a session; shoot darks at the end of the night, or interleave them.
  4. Take 20-50 frames. More frames give a cleaner master.

DSLR and mirrorless note: Turn off in-camera long-exposure noise reduction when you plan to shoot proper darks. It doubles session time by taking a dark after every light. If temperature matching is impossible, dithering plus a good bad-pixel correction (Siril’s cosmetic correction) can work nearly as well as poorly matched darks. Siril also offers dark optimization, which scales the master dark to minimize noise when your darks were not taken under identical conditions.

Flat frames

Flats map how your optical system transmits light across the sensor: vignetting toward the corners, doughnut-shaped shadows from dust on filters or the sensor window, and small pixel-to-pixel sensitivity differences. Calibration divides each light by the normalized master flat, which brightens the corners and fills in the dust shadows.

Flats are the frames most people get wrong, because they must match the optical train exactly:

  • Same focus. Do not touch focus between lights and flats.
  • Same camera rotation and spacing. Rotating the camera moves the dust shadows relative to the vignetting.
  • Same filter. Each filter has its own dust and transmission. Mono imagers need flats for every filter.
  • Same session, ideally. Dust moves. If you break down the rig, take new flats.

How bright should flats be?

Aim for the histogram peak to sit roughly a third to half of the way across, well clear of both ends. The Siril documentation recommends checking that the right edge of the brightest histogram peak stays below about 80%, because an overexposed flat guarantees a failed calibration. For CMOS cameras, flat exposures of at least a second or two are often recommended when your light source allows it, to avoid shutter or readout effects at very short exposures. Dim the panel or add diffuser layers if exposures are too short.

Flat light sources

  1. Flat panel. An electroluminescent or LED flat field panel placed over the dew shield is the most repeatable method. Capture software can automate it; N.I.N.A.’s Flat Wizard finds the right exposure per filter and stores it so later sequences can reuse the trained exposures.
  2. LED tracing pad. An inexpensive LED tracing pad with a few sheets of white paper or opal acrylic works well on small refractors.
  3. Sky flats. Point at the twilight sky opposite the sun, with a white T-shirt or diffuser stretched over the dew shield. Exposure changes as the sky darkens, so you shoot quickly.
  4. Tablet or monitor. A white screen at full brightness through a diffuser. Watch for pixel patterns and dimming that is too bright for short exposures.

DSLR users can shoot flats in Aperture Priority (Av) mode at the imaging ISO and let the camera choose exposure, then check the histogram.

Bias frames

Bias frames are the shortest exposure your camera allows with the scope capped. They capture the fixed electronic offset that every frame contains, so you can remove it from flats before they are normalized.

For DSLRs and most CCDs, bias frames are simple and reliable. Many modern CMOS astro cameras do not behave linearly at their shortest exposures, so their bias frames do not accurately represent the offset in a 2-second flat. That is why many CMOS users replace bias frames with dark flats. Siril also supports a synthetic bias: instead of a master bias, you enter a constant level (for example =2048, or =64*$OFFSET if the offset is in the FITS header). Its documentation recommends this for modern sensors where the offset is very uniform.

Dark flats

Dark flats (also called flat darks) are darks shot at the same exposure, gain, offset and temperature as your flats. Subtract a master dark flat from the flats instead of a master bias. They are the safest choice for CMOS cameras with amp glow or with nonlinear behavior at very short exposures, and they are cheap to shoot right after the flats.

Rule of thumb: use either bias or dark flats to calibrate your flats, not both. Your lights are calibrated with the master dark (which already contains the offset), so they do not need a separate bias.

Andromeda Galaxy M31 in true color with satellite galaxies M32 and M110 against a dense star field
The Andromeda Galaxy (M31) with M32 and M110. Smooth, even backgrounds like this depend on good flats. Photo: Brody Wesner, CC0, via Wikimedia Commons

How many calibration frames?

  • Darks: 20-50. Long exposures at warm temperatures benefit from more.
  • Flats: 20-50 per filter.
  • Bias or dark flats: 30-50. They are fast, so there is little reason to shoot fewer.

Diminishing returns set in quickly. Going from 10 to 30 flats makes a visible difference to background smoothness; going from 50 to 100 rarely does. If time is short, prioritize: flats first (dust and vignetting are the most visible defects), then darks, then bias or dark flats.

Applying calibration in Siril

As of November 2026 the current Siril release is 1.4.5. The workflow is the same in older 1.4 versions, and Siril ships preprocessing scripts for color and monochrome cameras that automate it when your files are sorted into lights, darks, flats and biases folders.

  1. Build the master bias or dark flat. Convert the frames to a sequence and stack them with median or sigma-clipped average, no normalization.
  2. Build the master dark the same way.
  3. Calibrate the flats with the master bias, synthetic bias or master dark flat, then stack them with multiplicative normalization to make the master flat. For one-shot color cameras, the equalize CFA option balances the color channels in the flat.
  4. Calibrate the lights with the master dark and master flat, enable cosmetic correction for remaining hot and cold pixels, and (for OSC cameras) debayer.
  5. Register and stack the calibrated lights.

Other stacking programs follow the same logic with different buttons. Our comparison of DSS, Siril, APP and PixInsight explains where each one fits.

Stretched monochrome stack of H-alpha data of the Veil Nebula
Stacked and stretched H-alpha data of the Veil Nebula from a monochrome camera, before color combination. Image: Midwest Astronomy

Troubleshooting calibration problems

  • Corners or dust donuts look brighter than the background after calibration (overcorrection). Usually the flats were calibrated with the wrong offset (bias from the wrong gain or offset, or no bias at all), the flats were overexposed, or light leaked into the darks.
  • Dust donuts remain (undercorrection). The flats do not match: focus, rotation or filter changed, or the dust moved before you took them.
  • Amp glow remains. Darks do not match exposure, gain or temperature, or dark optimization over-scaled them.
  • Color blotches on OSC images. Flats were not equalized, or the wrong Bayer pattern was used during calibration.
  • Banding or a gradient appears only after calibration. Check for a light leak in the darks or a flat panel that is not even.

Siril’s documentation has a dedicated troubleshooting page for these cases, and our astrophotography troubleshooting hub covers capture-side issues such as dew and walking noise. If you image narrowband with a mono camera, flats per filter are mandatory; the Veil Nebula image in our post on first pictures with a monochrome camera combines separate H-alpha, OIII and SII stacks, and every one of those filters needs its own matching flats.

Midwest note: temperature swings and dew

Clear winter nights in the upper Midwest can drop many degrees between dusk and midnight. That matters in two ways. Uncooled cameras need darks that cover the temperature range of the session, so shoot some early and some late. And dew or frost on the objective changes the light path, so flats taken after the front element frosted over will not match lights taken before it did. A dew heater on the objective and a quick inspection before shooting flats saves a night of data.

Calibration frame checklist

  1. Lights: dithered, with focus and rotation locked.
  2. Flats: same train, focus, rotation and filter; histogram peak around a third to half; 20-50 per filter.
  3. Dark flats (or bias): same settings as flats; 30-50.
  4. Darks: same exposure, gain, offset and temperature as lights; 20-50, or from your dark library.
  5. Label everything by date, filter, gain, offset and temperature.

New to the hobby? Our astrophotography for beginners guide has a one-minute version of this topic and shows where calibration fits into a first night.

Frequently asked questions

Do I need all four types of calibration frames?

No. Most setups need darks, flats, and either bias frames or dark flats. Use bias with DSLRs and most CCDs, and dark flats with CMOS astro cameras that behave nonlinearly at very short exposures or show amp glow.

Can I reuse dark frames from another night?

Yes, if exposure, gain, offset, binning and sensor temperature all match. Cooled cameras make this easy, and a dark library can last months. Rebuild it after firmware or driver changes or if hot pixels change noticeably.

Can I reuse flats from another night?

Only if nothing in the optical train changed: same focus position, camera rotation, filter and no new dust. In practice, take fresh flats each session unless the rig is permanently mounted and untouched.

How bright should flat frames be?

Aim for a histogram peak about a third to half of the way across. The Siril documentation recommends keeping the brightest part of the histogram below about 80% so the sensor stays in its linear range. Overexposed flats cause calibration to fail.

Why are my flats overcorrecting?

The most common causes are using the wrong bias or no bias for the flats, overexposed flats, a light leak in the darks, or mismatched gain and offset. Recheck that the flats were calibrated with bias or dark flats taken at the same settings.

Do I need calibration frames for a smart telescope or Milky Way photos?

Most smart telescopes handle dark calibration internally, so check your model's documentation before adding your own. For tracked Milky Way shots, flats help most with lens vignetting, and darks help with hot pixels; for single untracked shots, in-camera noise reduction is a simpler alternative.

Leave a Reply

Your email address will not be published. Required fields are marked *