Easily combine multiple frames to boost detail in your astro photos.
We’re going to run through how to stack data in Siril. Stacking is referred to as ‘pre-processing’ within Siril and occurs right at the start of the processing workflow.
If you’re new to stacking, don’t be put off: the process is quite simple, when you know how.
Creating a detailed astrophotography image typically involves these steps:
- Imaging the target (known as taking ‘light’ frames)
- Gathering a series of calibration images (‘dark’, ‘flat’ and ‘bias’ frames)
- Using software to stack these images to remove noise and increase data signal
- Stretching this data to boost delicate details
- Making colour and gradient adjustments to perfect the image
It’s quite common to use multiple software programs to carry out the above steps – for example, stacking software followed by specialist processing software to do the rest.
Why use Siril?
The free astrophotography processing software Siril is capable of supporting the entire workflow, from stacking data to managing background gradients and colour saturations afterwards.
It comes pre-programmed with various scripts designed to automate many functions and even interfaces with other tools, including StarNet and Pixel Math, to perform additional processing steps.
We started with 250 individual light frames of the Sadr region in Cygnus, each of 60 seconds, taken with a Canon 6D DSLR.
We’d also taken 25 frames each of bias, dark and flat calibration images to stack with these light frames to reduce thermal noise, electronic noise and vignetting in our final picture.
Using Siril
We opened Siril and set our working directory (the location where our image data would be stored) to ensure that when we ran the stacking script, Siril knew where to collect the data from.
To do this, we clicked on the home icon (see image below), navigated to the image folder on our computer and clicked ‘Open’.
We then had to ensure that our image folders were stored and named in a way that Siril’s stacking script could recognise each set of light and calibration images.
The image below shows the correct layout of this folder system: the main target images are stored in a ‘lights’ folder, bias frames are in a folder called ‘biases’, dark frames in ‘darks’ and flat frames in ‘flats’.
These folders must be named exactly this way and should be the only folders present in the working directory, or the script won’t be able to execute.
Once done, we ran Siril’s stacking script by clicking Scripts > OSC_Preprocessing (see image below).
You’ll see the script start to run in the Console on the right-hand side of the screen.
Siril first creates Master files for each of the calibration frames before aligning and then stacking with the light frames by subtracting the noise and vignetting.
The time taken will depend on how many light frames and stars there are. For my star-heavy widefield image, it took over 24 minutes.
Once complete, the Console read ‘Script execution finished successfully’.
Stacking complete, now for the final adjustments
We then opened the stacked file in our working directory, titled ‘result_[number]s.fit’, where [number] refers to the time in seconds taken to complete the stacking script.
The stacked image will look dark and flat; it now needs stretching.
We did this initially by clicking on the ‘linear’ dropdown box and selecting ‘AutoStretch’ (highlighted, image below).
Siril performed a preliminary histogram stretch, allowing us to gauge how much signal versus noise was present within our stacked image.
This stretch helped guide our processing steps going forward, but also highlighted stacking artefacts on the edges of our image caused by camera rotation over the period of multiple imaging sessions.
To crop these out, we right-clicked on the image, selected ‘Crop’, selected the area of the image we wanted to keep and hit Enter to perform the crop.
Our final image (shown at the top of this article) was then ready for further processing using Siril or another photo-editing software of our choice.
3 quick tips
- Before running a script, ensure you have backed up your data to avoid file corruption.
- Ensure there are only raw files in the working directory, as random JPEGs or other files can cause errors.
- Avoid making adjustments to colour or saturation until after cropping the stacked image and removing artefacts.
Are you an astrophotographer? Whether beginner or seasoned, don’t forget to send us your images and they could appear in an upcoming issue of BBC Sky at Night Magazine.