How to modify this script so that it can process more than 2048 lights?

I love this script, but it can’t process more than 2048 lights. I think that’s due to it using the symbolic link. How do I modify it so that it doesn’t use symbolic links? (I know it’ll use more data, that’s ok, I have a big SSD and use the RICE compression on my .FITS).

Here is the script:

############################################

Script for Siril 1.0

July 2020

(C) Cyril Richard

Preprocessing_WithoutDark v1.0

########### PREPROCESSING SCRIPT ###########

Script for color camera preprocessing

Needs 3 sets of RAW images in the working

directory, within 4 directories:

biases/

flats/

lights/

############################################

requires 0.99.4

Convert Bias Frames to .fit files

cd biases
convert bias -out=…/process
cd …/process

Stack Bias Frames to bias_stacked.fit

stack bias rej 3 3 -nonorm
cd …

Convert Flat Frames to .fit files

cd flats
convert flat -out=…/process
cd …/process

Pre-process Flat Frames

preprocess flat -bias=bias_stacked

Stack Flat Frames to pp_flat_stacked.fit

stack pp_flat rej 3 3 -norm=mul
cd …

Convert Light Frames to .fit files

cd lights
convert light -out=…/process
cd …/process

Pre-process Light Frames

preprocess light -bias=bias_stacked -flat=pp_flat_stacked -cfa -equalize_cfa -debayer

Align lights

First doing: register pp_light -2pass -noout

register pp_light -2pass -noout

Now doing: seqapplyreg pp_light -framing=max

seqapplyreg pp_light -framing=max

Stack calibrated lights to result.fit

stack r_pp_light rej 3 3 -norm=addscale -output_norm -out=…/result

cd …
close

Hello. This is not due to the use of symbolic links. Especially if on Windows.
You can have a look to this warning
https://siril.readthedocs.io/en/latest/Sequences.html#a-set-of-two-or-more-fits-files

1 Like

Ahhh… thanks for the correction, but I’m trying to understand the implications and what to do. So I need to convert my FITS files into a multi-FITS files or a set of multi-FITS files and then load those into the “lights” folder and run the script?

Or do I need to modify the script to create a different type of FITS sequence?

Still not sure how to proceed.

Yes you can have a single file that contains 3000 images, whether it’s SER or FITS, virtually no size limit.
No Siril will not see 1000 files of 3 images as 3000 images, just 1000 sequences of 3 images.

1 Like

Can I have my script do this by adding -fitseq on the conversion of the light frames, like this?

# Convert Light Frames to .fit files

cd lights
convert light -out=…/process -fitseq
cd …/process

that should work, yes

1 Like

Stacking now… looks to be working! Awesome!