🎨 Darks, Flats, Bias: What Each Frame Corrects

Understanding Your Data · lesson 3 of 12 · 3 min

Calibration frames are used to remove from your light frames (the lights) everything that does not come from the sky. Each one targets a specific defect. Understanding them well will spare you most processing problems.

Bias frames (offsets)

A bias frame is the shortest possible exposure, with the sensor covered. It records the baseline level that the electronics add to every pixel, even without light, as well as fixed readout patterns. You take a series (often several dozen) that you combine into a master bias.

With some CMOS cameras, very short exposures behave poorly and the bias does not faithfully represent the baseline level of longer exposures. In that case you replace bias frames with flat darks (see below). Your camera's documentation or the forum will tell you if this applies to you.

Darks

A dark is an exposure taken with the sensor covered, with the same exposure time, the same gain (or ISO), and the same temperature as your lights. It records the dark current, hot pixels, and the amp glow that some sensors produce along one edge. The master dark is subtracted from each light.

A dark also contains the bias: if you subtract a dark, you are already removing the baseline level of the lights.

With a cooled camera, the temperature is regulated: a dark library can last a long time. With a DSLR or mirrorless camera, the temperature varies during the night and darks match less well. Many astrophotographers who use such cameras therefore rely on dithering (a slight shift of the framing between exposures) and on cosmetic correction of hot pixels, with or without darks.

Flats

A flat is an image of a uniformly lit surface (light panel, twilight sky, white T-shirt stretched over the front of the tube). It records how your optics distribute light: vignetting (darker edges) and dust shadows, those dark rings caused by dust on a filter or in front of the sensor.

To be valid, flats must be taken without changing anything in the optical train: same focus, same camera orientation, same filters, same dust. The safest approach is to take them right after the session, without disassembling anything. Aim for a histogram located roughly between one third and one half of the dynamic range.

Flats have their own baseline level that must be removed: you subtract the master bias from them, or flat darks (covered exposures at the same exposure time as the flats). The master flat then serves as a divisor: each light is divided by it, which brightens the areas the optics had darkened.

In summary

  1. Bias: electronic baseline level.
  2. Darks: thermal signal and hot pixels, at the same exposure time and temperature as the lights.
  3. Flats: vignetting and dust, with the optics strictly unchanged.
  4. Flat darks: baseline level of the flats, when bias frames are not suitable.

Failed flats leave rings, dark edges, or on the contrary edges that are too bright: this is the most common problem. Before blaming your processing, look at your flats.

Key points

  • Bias: the sensor's electronic baseline level.
  • Darks: same exposure time, same gain, same temperature as the lights; they remove thermal signal and hot pixels.
  • Flats: vignetting and dust, taken without touching the focus or the orientation.
  • The master flat divides the lights; bias and darks are subtracted.
  • Persistent vignetting or rings almost always come from the flats.

📸 Exercise

At your next session, take a series of flats right after the lights without disassembling anything, then a series of flat darks or bias frames. Note in your logbook the exposure time and gain you used.

Let's go