Home / Learn / Calibration frames explained

Learn · Tutorial

Calibration frames explained

Bias, darks, flats, dark flats and bad pixel maps: what each one removes, how to capture them, and how to build a reusable library of masters.

Why calibrate

A free upgrade for every image

Deep-sky exposures with a CMOS camera run 5, 10 or 15 minutes, far longer than a DSLR snapshot, and with that comes heat, signal noise and light artifacts you might not otherwise see. Calibration files remove the noise built into your camera, its electronics and heat, and the dust and optics in front of it.

They’re easy to make, can often be shot in daylight, and cost nothing. There is no downside, only a bit of confusion about how and when to use them. Here’s the simple version.

The five types

What each calibration file removes

Each one captures a different source of unwanted signal, so your stacking software can subtract or divide it out.

Read noise

Bias

The shortest exposure your camera allows (about 0.001 s) in complete darkness, with the cap on. Captures the read noise and power-on signal every frame contains.

Heat

Darks

Capped exposures matching your lights’ length, temperature and gain. Captures dark current, which grows with time and heat, including the amp glow common on CMOS sensors.

Light path

Flats

An evenly lit sensor. Maps vignetting toward the corners and the shadows or rings from dust, lint and smudges on the sensor, lenses or filters.

Optional

Dark flats

Capped frames matching your flats. Flats are so short that dark current is negligible, so we recommend a master bias instead.

Defects

Bad pixel map

Finds dead, hot and stuck pixels so the software can replace them with the average of their healthy neighbors.

Before and after

The same stack, with and without calibration

LBN 325, stacked in Astro Pixel Processor.

No calibration

Gradients, noise and amp glow

Stacked with no calibration files at all. Notice the heavy gradient across the top, which is vignetting that flats would remove, plus the noise and other data errors through the frame.

Bias, darks, flats + bad pixel map

Clean, flat and sharper

The same data, calibrated with bias, darks, flats and a bad pixel map. The flats remove the gradients, and the bias and darks clear the amp glow on the edges for a much better signal-to-noise ratio.

Best practices

Three rules for a consistent library

01

Stay in one program

Build your masters in the same software you stack with. AstroPixelProcessor, PixInsight and DeepSkyStacker each build master bias, darks and flats differently, and mixing them can introduce artifacts.

02

Match temperature and gain

Dark current is very sensitive to temperature. If you image at −10 °C and gain 100, your darks must use exactly that. Standardize on a few settings, such as −10 °C at gain 0, 75 or 139, to keep the library manageable.

03

Capture it all at once

Shoot every bias and dark in one dedicated session, during the day or a cloudy stretch. Building the library in one go keeps it consistent and avoids forgotten or mismatched settings.

Step by step

How to capture each type

Bias

Creating bias

Quick exposures, cap on, in total darkness.

  • Cover the lens or scope
  • Set temperature (−10 or −20 °C) and each gain you use: 0, 75, unity, 200
  • Shortest exposure your camera allows, about 0.001 s
  • Take 40–50; they’re fast
Darks

Creating darks

Long exposures. A full set can take a couple of days.

  • Cover the lens or scope
  • 15, 30, 60, 90, 120, 180, 240, 300 and 600 s at each gain
  • Same temperature you image at (−10, −20 or 0 °C)
  • 10–30 frames per gain and exposure
  • Calibrate them with the bias at the same gain
Flats

Creating flats

Quick to take, and the only set you retake: daily, weekly or per project, one set per filter.

  • Use a T-shirt over the scope, dawn or dusk sky, or a flat panel: a steady, not too bright source
  • Aim for about 20,000 ADU, with the histogram peak 30–35% across
  • Dim the source so exposures land around 1–2 s
  • Take 20–30 at your imaging temperature
Dark flats

Creating dark flats

The most optional set. We highly recommend a master bias instead. It does nearly the same job with one master to manage, and avoids the risk of light leaking into dark flats and skewing your calibration.

If you still want them:

  • Cap the scope right after your flats
  • Take 20–30 at the same temperature, gain and exposure as the flats
  • Bad pixel map: let your stacking software build it (Astro Pixel Processor does)
Calibration frame library in a folder
Masters

Build once, reuse for years

Load your calibration files into the same software you stack with and build a master for each set: a bad pixel map and master bias for each gain, and a master dark for each gain and exposure.

Those masters stay good for a few years, so the bias, darks and bad pixel maps are a one-time job you only repeat now and then.

Flats are the only frames you keep retaking: daily, weekly or once per project, whenever dust, filters or the optical train change. Keep a master flat for each filter.

Every stack then just gets a few master files and a fresh set of flats, and the unwanted signal is gone.

Astro PM tilt and curvature map
Grade subs with Astro PM

Throw out bad frames before you stack

Astro PM grades every sub-frame for stars, focus and tracking, so only the good data goes into your stack.

Fix it for good

Stop fighting your corners.

The Photon Cage gives you 4-corner tilt and independent backfocus on almost any telescope.