Introducing AMSP: Automatic Multi-Session Processing script for Siril, fully automatic

12 replies205 views
Cyril Richard avatar

Hi everyone,

I’d like to share a new Siril Python script I’ve been working on:

AMSP – Automatic Multi-Session Processing

This script is designed to fully automate the preprocessing workflow, with a strong focus on simplicity and robustness.

The idea is straightforward:

  • no manual sorting

  • no complex setup

  • just drag & drop your data into Siril and let the script handle everything

AMSP relies entirely on FITS header keywords to organize and process your data automatically. As long as your files contain properly structured metadata, the script will take care of the rest. It works particularly well with acquisition software like NINA, CCDciel, ASIAIR, and likely many others.

All sessions are automatically combined per filter at the end, so you directly get your final stacked images.

Key features

  • Fully automatic workflow based on FITS headers

  • No need to sort files manually

  • Multi-session support out of the box

  • Designed to be beginner-friendly while remaining powerful

Note: the script requires FITS files with proper header keywords. It won’t work with files lacking this information.

I’m also sharing a video from DeepSpace Astro that demonstrates the workflow and helps understand how it works in practice.

Feedback is very welcome 🙂

https://www.youtube.com/watch?v=80LwMI-WEJE

Well written Helpful Respectful Concise Engaging
Tony Gondola avatar

This is a big step up for Siril. Bravo for doing it!

Well written Respectful Supportive
Tony Gondola avatar

I just ran an OSC data set through this and it completed the job in about the quarter of the time it took WBPP. The stars were also very slightly tighter. I think this is a game changer for Siril users, especially for people processing complex narrowband or mono data sets.

Well written Respectful Concise Engaging
Cyril Richard avatar

It really makes me happy to read what you've written :)

I'll update my script regularly as soon as I receive bug reports.

Well written Respectful Engaging Supportive
Fabrice Lamidey avatar

This is awesome Cyril! Thank you.

I have a couple suggestions : an apostrophe in the file of folder name will halt the process (Bode's galaxy for example) so maybe treat that case.

A failed plate solve will stop the whole process while it could finish without a solution… maybe offer it as an option.

Xisf support would be awesome for people migrating from WBPP who enjoy the compression.

Thanks again!

Helpful Respectful Concise Engaging Supportive
Cyril Richard avatar

Hello. Thx for the feedbak.

Fabrice Lamidey · Apr 29, 2026, 02:40 AM

I have a couple suggestions : an apostrophe in the file of folder name will halt the process (Bode's galaxy for example) so maybe treat that case.

OK, I will have a look.

Fabrice Lamidey · Apr 29, 2026, 02:40 AM

A failed plate solve will stop the whole process while it could finish without a solution… maybe offer it as an option.

Is is an option. Disable distortion correction.

Fabrice Lamidey · Apr 29, 2026, 02:40 AM

Xisf support would be awesome for people migrating from WBPP who enjoy the compression.

I’m sorry but this is unlikely to happen. However, you can batch convert your XISF into FITS right before in the Siril conversion tab.

Cyril Richard avatar

Fabrice Lamidey · Apr 29, 2026, 02:40 AM

I have a couple suggestions : an apostrophe in the file of folder name will halt the process (Bode's galaxy for example) so maybe treat that case.

Should be fine now.

patrick cartou avatar

Hi Cyril

I come to test this script and …. “plate solve failed”.Capture d’écran du 2026-04-29 17-41-26.png

What may I do ?

Thanks by advance (merci).

CS

Patrick

Cyril Richard avatar

patrick cartou · Apr 29, 2026, 03:44 PM

What may I do ?

you could uncheck the distortion correction in the preferences.

patrick cartou avatar

Merci Cyril pour la réactivité, je vais essayer ce que tu me dis.

Je te mets le copier-coller des dernières lignes du terminal:

17:37:40: 🗑 Removed: masters

17:37:40: ━━ Phase 5 – Register & Stack ━━

17:37:40: M 63/—/120s: 1 session(s), 58 frame(s)

17:37:40: Exécution de la commande : cd

17:37:40: Définir le répertoire de travail à '/home/cartou/Images/_preproc/process_M_63_nofilter_120s'

17:37:40: Exécution de la commande : cd

17:37:40: Définir le répertoire de travail à '/home/cartou/Images/_preproc/session_2026-04-15/light_M_63_nofilter_120s'

17:37:40: M 63/—/120s: single session, no merge

17:37:40: Exécution de la commande : load

17:37:40: Lecture FITS : fichier pp_light_M_63_nofilter_120s_00001.fit, 3 canal(aux), 3840x2160 pixels, 32bits

17:37:40: Exécution de la commande : parse

17:37:40: Chaîne d'entrée : $RA:ra$_$DEC:dec$

17:37:40: Chaîne de sortie : 13h16m59s_+41d55m04s

17:37:40: Exécution de la commande : platesolve

17:37:40: Utilisation des coordonnées de la cible depuis l'en-tête de l'image : 198.977687, 42.015405

17:37:40: Utilisation de la taille de pixel de l'image : 2.90

17:37:40: Utilisation de la longueur focale de l'image : 1399.00

17:37:40: Résolution astrométrique de l'image de en ligne Gaia DR3 (via Vizier) pour un champ de vision de 0.52 degrés, en utilisant une magnitude limite de 20.55

17:37:40: Findstar : en cours pour le canal 1...

17:37:40: Exécution de la commande : cd

17:37:40: Définir le répertoire de travail à '/home/cartou/Images'

17:37:40: ↩ Returned to working directory: /home/cartou/Images

17:37:41: _preproc directory removed.

17:37:41: Siril error: Command 'platesolve' failed: Generic error

A +

Patrick

patrick cartou avatar

Je ne trouve pas dans Préférences l’équivalent de “distortion correction”…où dois-je chercher, Cyril ?

J’ai aussi fait un autre essai et regarde dans le tout début de l’exécution du script, apparemment j’ai un souci avec GTK:

8:10:48: Mise à jour des profils de travail.

18:11:26: Début du script /home/cartou/.var/app/org.siril.Siril/data/siril-scripts/preprocessing/AMSP.py

18:11:27: PyQt6 is installed

18:11:27: astropy is installed

18:11:27: Gtk-Message: 18:11:27.478: Failed to load module "xapp-gtk3-module"

18:11:27: Siril Wizard – Automatic Multi-Session Processing v1.0.11 – connected

18:11:27: Configuration loaded from /home/cartou/.config/siril/amsp.json

18:11:52: Scanning 124 FITS file(s)…

18:11:52: Scan done: 124 files (124 subs, 0 masters), 1 night(s).

Affaire à suivre. Encore merci pour tout ce boulot que tu réalises…

Patrick

Respectful
Cyril Richard avatar

This is in the script preferences

patrick cartou avatar

Thanks a lot, Cyril !

This topic is closed to new replies.
Related discussions
FITS File Analysis Tool Python
fits-analyser.py astronomical_analysis_description.pdf Hello fellow astrophotographers! I've developed a Python script to help me quickly analyze my FITS files and track my progress across different targets and filters. The main goal was to get a cle...
Analyzes FITS files with Python, directly relevant to AMSP's FITS header-based automation.
Oct 10, 2025