Astrophotography Tutorial: Image Stacking in Siril

By Sathvik Acharya

Astrophotography allows us to capture the beauty of the night sky, but due to long exposure times and low light conditions, a single image often contains noise and lacks detail. To overcome this, astrophotographers use a technique called image stacking. By combining multiple images of the same scene, we can enhance the signal-to-noise ratio and reveal more celestial details.

In this guide, we will walk you through the process of stacking your astrophotography images using Siril, a powerful, free software designed for astronomical image processing.

Installing Siril

You can download and install Siril directly from the official website: https://siril.org/.

Here are the steps for installation on different platforms:

Linux Installation

sudo apt install siril

Prerequisites

To perform image stacking, you need a set of multiple images of the same celestial object or field. Ensure that these images are taken under similar conditions and with consistent settings to achieve optimal stacking results. The more images you have, the better the final result will be, as stacking helps to reduce noise and enhance details.

Practice Astrophotography Image Stacking

You can download practice images for astrophotography image stacking from the following sources to get hands-on experience:

These resources provide excellent data sets for practicing your image stacking and processing techniques.

Image Calibration

Organizing Your Image Files for Stacking in Siril

Before you begin processing your astrophotography images in Siril, it's essential to organize your files properly.

  1. Start by creating a main directory named after the object or star cluster you're working. (eg: M31 - The Andromeda Galaxy)

  1. Inside this directory, create four subdirectories: lights, darks, biases, and flats.

  1. In this step, we will be placing only the light files (the raw images) into the lights folder. For this guide, we'll be working exclusively with these light images.

Note: These directories are crucial because Siril's built-in scripts rely on them for executing the stacking process. If these directories are not properly created and filled with the corresponding images, the scripts won't run, and you'll encounter errors. By following this structure, you'll ensure a smooth stacking workflow.

Launching Siril

Setting up the workspace

By default, Siril might open with a different working directory than where your images are stored. To ensure that Siril can access your images and perform stacking correctly, follow these steps to change the working directory:

  1. Open Siril: Launch Siril on your computer.

  1. To change the current directory in Siril, click the home icon located in the top-left corner of the window.

  1. This action will open a file browser, allowing you to navigate to and select the directory where your images are stored.

  1. After navigating to the directory containing the lights, darks, flats, and biases folders, click Open to set this directory as your working directory in Siril.

Installing Scripts

  1. To install scripts, click the three-dash icon in the top-right corner of the Siril window.

  1. Click on Get Scripts.

  1. After clicking Get Scripts, you will be redirected to Siril’s documentation page. From there, locate the GitLab link under the Getting More Scripts section and click on it.

  1. Click preprocessing.

  1. Click OSC_Preprocessing_WithoutDBF.ssf

Note: We will be downloading the OSC_Preprocessing_WithoutDBF.ssf script, as we are working exclusively with light frames.

  1. Download the OSC_Preprocessing_WithoutDBF.ssf

After downloading the script, place it in the following directory:

/This PC/Local Disk (C:)/Program Files/Siril/scripts/OSC_Preprocessing_WithoutDBF.ssf

Once the scripts are installed and placed in the correct directory, you're all set to begin the stacking process in Siril.

Stacking Images

  1. Click Scripts in the top menu.

  1. Select OSC_Preprocessing_WithoutDBF from the list of available scripts.

  1. Click Run to execute the script.

  1. Wait for the script to complete.

The final stacked image will be saved in the main directory named M31.

  1. To open the final stacked image, click Open in the Top Menu.

  1. The final stacked image will be named result.fit and saved in FITS format.
    Select result.fit and click Open at the bottom to load the image.

  1. This is the raw, stacked image of M31 displayed in linear view.

  1. To switch from Linear to Autostretch, simply click on Linear and select Autostretch to adjust the image view.

Note: Autostretch applies a temporary stretch to the image's data, making faint details more visible without permanently altering the raw data. This is useful for previewing your stacked image before performing any further post-processing.

Note: After applying Autostretch to the stacked image, you may notice green noise. This is common and can be corrected during further processing.

  1. To switch to Histogram View, select Histogram from the view options. Switching to Histogram View gives you finer control over the image's tonal range, enabling better visualization of details and adjustment of exposure.

Post Processing

To begin post-processing, first crop the artifacts and noise around the edges, which are visible in the Histogram View.

  1. To crop, left-click on the image, select the area you wish to keep, then right-click and choose Crop to apply the changes.

After cropping, switch back to Autostretch view to enhance visibility, and then start the Background Extraction process.

  1. Navigate to Image Processing

Background extraction in Siril is a process that helps to remove unwanted background noise or variations from your astronomical images.

  1. Select Background Extraction.

  1. Generate samples.

Note: Siril uses these samples to estimate the background intensity and gradients caused by factors like light pollution or sensor noise. After selecting the samples, Siril will subtract the estimated background model from your image, creating a cleaner and more uniform background.

  1. To ensure accurate background extraction, right-click on any samples that are too close to bright stars or celestial objects to remove them. This helps prevent interference from objects in the image and ensures only the background is modelled.

  1. Click on Compute Background to finalize the process and click apply.

  1. If any green noise persists in the image, click on Remove green noise to eliminate it.

  1. Leave the default options unchanged, and simply click Apply.

Cleaner and more balanced image after removing the green noise.

  1. Change the view mode to Linear view and then select Asinh transformation. This adjustment will enhance the details in your image.

  1. Adjust the Strech Factor to its maximum value to enhance the contrast and details in your image.

  1. Slightly increase the Black point to make the background darker.

  1. Click on Histogram Transformation to stretch the image.

  1. Apply the autostretch algorithm by clicking on the icon above clip%.

  1. Click on Color Saturation option to enhance the vibrancy of colors in your image.

  1. Choose Global to access a variety of color options.

  1. After selecting your desired color options, increase the color saturation by adjusting the amount slider. Click Apply to finalize and apply the changes to enhance the vibrancy of your image.

  1. Use the Select toggle below to darken the background.

Here is the result of the final stacked image. You can further refine and enhance it using various photo editing softwares for additional adjustments and improvements.

  1. Click on the Save or Download option in the top right corner to save the final result image.

  1. When saving the image, you can select from different file formats to suit your needs.

This guide has walked you through the process of stacking astrophotography images in Siril.

Conclusion

After working through the step-by-step guide on astrophotography image stacking in Siril, I’ve really come to appreciate just how powerful this software is for astrophotographers. One of the best features has to be its support for multiple scripts, which takes a lot of the hassle out of complex tasks like stacking and calibrating images. It pretty much automates everything, so you don’t have to be hands-on the whole time super helpful when dealing with tons of photos. Plus, its support for different file formats like RAW and FITS means it works with a wide range of cameras and setups. And if you want to take things up a notch, you can even add third-party scripts to extend its functionality.

That said, there are a few bumps along the way. For example, you need to stay on top of organizing your calibration frames (like darks, flats, and biases) into the right folders. If you mess up the folder structure, the scripts won’t run properly. Also, getting third-party scripts installed can be a bit tricky if you’re new to it - it’s not always the most straightforward process.

Overall, Siril’s an awesome tool, but you’ll need a little patience to nail the workflow!

Credits

The images used in this guide on image stacking in Siril have been sourced from Astropix and AstroBackyard. I acknowledge their invaluable contributions to this project by providing high-quality astrophotography resources.

For more details, visit Astropix and AstroBackyard.