NINA Flat Wizard: Cleaning Dust Shadows Out of Your Light Frames

Every camera has dust. Some sits on the sensor cover glass, some rides the filters or the flattener, and each speck casts a soft gray blob onto every light frame you shoot. Vignetting does the same thing at the frame corners. A single sub looks fine, but stretch a stacked image and the blobs float over your nebula like out of focus balloons. Flat calibration frames erase all of it, and NINA’s Flat Wizard makes taking them almost painless.

If you already read the guide on calibration frames, you know what flats do and why they need a fixed histogram target. This post covers the tool that gets you there: the Flat Wizard in N.I.N.A, also called FlatWizard in older versions.

What a Flat Frame Actually Needs

A good flat meets three conditions. The sensor must be evenly illuminated, the histogram peak should land in the middle of the range, roughly a 40 to 60 percent filling, and the camera settings must match your light frames in gain, offset, binning, and temperature. Focus position matters too, and this is the part beginners miss: dust shadows scale with focal position, so take flats at the same focus position you used for your lights, or at least very close to it.

Three Light Sources

The Flat Wizard can drive three different illumination methods, and the one you pick shapes the whole workflow.

Artificial Flat Panel

The most reliable option. An electroluminescent panel clipped over the objective gives perfectly repeatable illumination regardless of weather or time of day. Cheap panels work fine, they just need to be dim enough that exposure times do not bottom out at the camera minimum. The wizard measures panel brightness and can control panel dimness directly if your device supports it.

Sky Flats

Point the telescope at a featureless piece of twilight sky and let the wizard find the right exposure. This is the standard method when you do not own a panel. The wizard slews the telescope, solves the plate, drifts the mount slightly between exposures to average out any faint stars at the frame edge, and keeps shooting until every flat lands inside your histogram target. Shoot sky flats at dawn rather than dusk: the sky brightens smoothly in the morning, which makes long runs of matched exposures far easier than the rapid fade of evening.

Flat Device

Lights that live on your telescope, most often a pegboard with LEDs behind a diffuser. You get panel grade repeatability without covering the objective by hand, and the wizard can trigger the lights, take the exposures, and switch them off again automatically.

Running the Wizard

Open Flat Wizard from the equipment tab. Pick your light source, set a target mean around a value of 0.5 on the normalized histogram, and give it a tolerance. Then four things happen, either automatically or one click at a time depending on how you configure it.

First the wizard measures the current brightness and solves for an exposure. Second it takes a test exposure, checks where the histogram actually landed, and adjusts. Third it retests until the mean falls inside your tolerance band. Fourth it captures however many flats you asked for, a minimum of about 20 per filter, and saves them with your sequence naming.

The iterative loop is the whole value of the tool. Hand computing twilight exposure times to a fraction of a second, over and over as the sky changes, is exactly the kind of busywork a computer does better. Watch the histogram display while it runs and you can see it converge within two or three test frames.

One Set Per Filter

Flats are filter specific. Dust shadows, vignetting, and any filter coating artifacts differ between filters, so if you shoot LRGB or narrowband, the wizard needs a full run per filter. If you drive an electronic filter wheel, NINA will step through every filter in your configured filter set automatically and build the whole library in one session. Set it going, and by the time the sky is dark your calibration library is complete and filed where your sequencer expects it.

Storing and Using the Flats

Keep a flat library on disk organized by session date, filter, gain, and binning. NINA’s sequencer can pull the correct flats automatically at the start of each night through flat settings in the sequence, so calibration happens before the first light frame is ever exposed. Siril handles them at stacking time as well, and if you shoot sky flats they load exactly like any other calibration master.

One caution from the earlier calibration guide still applies: never take flats on a different night, different focus position, or different gain and expect them to match. A flat library is tied to the conditions that made it. Change anything and retake the set. It costs ten minutes with the wizard, which is far cheaper than a night of ruined photometry.

When to Retake Flats

Check your lights occasionally. Stretch a fresh sub in NINA and look for gray blobs that moved since your last library build. A speck of dust that migrated across the sensor after a lens change, a new fingerprint on a filter, or a reinstalled drawer all shift the shadows. Many imagers retake flats every month as cheap insurance, and the wizard makes that habit nearly free.

Dust blobs are the difference between a good stack and a great one, and ten minutes of twilight or a flat panel removes them entirely. Point the wizard at the sky, let it converge, and get back to shooting the actual nebula.

Leave a Reply