Multi-night (session) stacking Python script for Siril 1.4

I’ve created a OSC Multi-night (session) stacking Python script for Siril 1.4 that was inspired by Sirilic. The reasons I wrote this script were because…

  1. Integrates and supports Siril 1.4.
  2. Supports the new Drizzle function that can recover more detail from undersampled images when using my Hyperstar.
  3. Sirilic hasn’t been updated in over a year.

It doesn’t support all the features that Sirilic supports such as Mono images. I don’t have a Mono setup or Mono datasets so I have not been able to implement that feature. You can find the script in this git repo.

I would like folks to try it out and provide feedback.

1 Like
  1. Open Siril 1.4
  • Start Siril normally.
  • Ensure Python scripting is enabled (Preferences → Python).

No such option in my version of Siril?

Launch the Application

  • In Siril’s command window or a system terminal, run:

python multi-night-stacking.py

“Unknown command: ‘python’ or not implemented yet”
“Command execution failed: unknown command name.”

Looks like you are not using Siril 1.4 but an earlier version that did not support python scripting. You should be running at least Siril1.4 Beta 4.

I had AI write up the README markdown doc so it made things a bit complicated by running the command from the shell which I do not believe most people will do. So, I removed that part. You should just run it from within Siril.

I am running v1.4 beta 4.

Never mind, got it to work by copy and pasting your python scripts to the scripts folder path listed in the settings.

I’ll evaluate it in due course.

Thanks,

Mark

Yes, I updated the doc to say that the script needs to go into your scripts folder. I’ve also updated the script to version 1.1. I’ve tested it with a 8 session data set with 1371 Light frames.

New enhancements:

  • Now compresses final register and stack fit files instead of just the intermediate session fit files.
    • Limitation: register and setapplyreg commands will not compress fit files if drizzling is enabled due to a limitation with Siril 1.4 where the drizzling functionality does not support compressed fit files.**
  • Added pack Sequences feature - this allows you to pack the fit or fz files into a SER or FITSEQ sequence file. This allows us to overcome the 2048 open file limit on Windows.
    • Off by default
    • Auto, FITSEQ, and SER are the options that can be used.
    • Pack Sequences only will pack LIGHT frames. LIGHT frame pack threshold is configurable and can be lowered and raised as needed.
    • Auto uses the FITSEQ sequence file format (recommended for maximum compatibility) where is puts the fit or fz files into into a single file for stacking.

enter "pyscript nameofscript.py in the siril command line