🎨 In Practice: Siril's Pre-processing Script

Pre-processing and Stacking · lesson 6 of 12 · 3 min

Siril provides scripts that automatically chain all the steps covered so far: masters, calibration, debayering, registration, stacking. This is the simplest way to get a first clean image, and a good basis for comparison when you move on to manual settings.

Preparing the folders

The bundled scripts expect a specific organization. In a working folder, create four subfolders and put your files in them:

  • lights: your sky frames;
  • darks: the darks;
  • flats: the flats;
  • biases: the bias frames (or, depending on your method, the flat darks).

The expected names may vary by version: check them at the top of the script you are going to run. In Siril, then set this working folder as the current directory.

Choosing the right script

Siril offers several pre-processing scripts, including:

  • a script for color sensors (DSLR, mirrorless, and color cameras), which includes debayering;
  • a script for monochrome sensors;
  • variants without darks or without flats, for incomplete sessions;
  • scripts dedicated to images taken with a dual-band filter on a color sensor, which separate the signals.

Choose the one that matches your equipment and the frames you have. Run it, then let it work: depending on the number of frames and the computer's power, it takes from a few minutes to more than an hour.

What you get

At the end, Siril produces a stacked image (often named after the stacking result) in FITS format, and a working subfolder containing the intermediate files. These files take up a lot of space: once you are satisfied with the result, you can delete them, keeping your original files and the final stack.

Open the stacked image with the display's automatic stretch and check:

  1. The stars are round and sharp across the whole field.
  2. The background shows no dark rings (faulty flats), no dark edges (poorly corrected vignetting), and no edges that are too bright (overcorrected flats).
  3. The colors are plausible, even if a color cast is normal at this stage.
  4. The edges are irregular: crop them.

If something looks wrong, go back to the calibration frames before changing the stacking settings. A problem visible in the stack most often comes from an unsuitable flat or the wrong Bayer pattern.

What about DeepSkyStacker?

DeepSkyStacker, free and for Windows, does the same thing with a graphical interface: you add lights, darks, flats, and bias frames, and it calculates, aligns, and stacks. Its result is very decent. Siril's advantage is that you stay in the same software for the rest of the processing, and it is available on Windows, macOS, and Linux.

PixInsight, a paid program, offers a comparable automated workflow and very fine control over settings. None of these programs will work miracles with failed flats: data quality matters more than the tool.

Get into the habit of noting, for each target, the number of frames kept, the total exposure time, and the script used. This information will help you improve and present your image.

Key points

  • Siril's scripts chain masters, calibration, debayering, registration, and stacking.
  • Put your files in the expected subfolders (lights, darks, flats, biases) and check the names at the top of the script.
  • Choose the right script: color or monochrome, with or without darks and flats.
  • Check the stack's stars, background, colors, and edges before going further.
  • DeepSkyStacker and PixInsight do the same job; data quality matters more than the software.

🧮 Exercise

Organize one of your sessions into the four subfolders, run the pre-processing script suited to your sensor, and check the stacked image against the four points of the lesson. Note the total exposure time kept in your logbook.

Let's go