Superstacking script not working in SiriL 1.20

Having problems with the Windows PowerShell superstacking script, listed in comet stacking tutorial (Siril - Working with Comets)

It worked fine in my previous v.1.05, but now in 1.20 seems like it is not launching siril-cli.exe and not creating a stacked file to copy to “superstack” folder, so I’m getting an error

The code section is as follows:

  @"
requires $version
setext $ext
cd $tempfolder
stack $seqname.seq $method -nonorm
cd ..
"@ | & $sirilcliexe -s - >log 2>&1

  $supstack="superstack_{0:s}{1:00000}.{2:s}" -f $seqname,$($c+1),$ext
  Move-Item -Path $tempfolder/${seqname}stacked.$ext -Destination $stackfolder/$supstack

Any ideas what can be the problem?

Hi,

not sure it’s related to siril version, but more to what’s in the script. Could you try the following updated version (just change the extension to ps1)?
superstack_v0.2.txt (2.9 KB)

Change is basically to run siril-cli with an option -d to make sure we start in the correct folder, so that the subsequent cd work as intended.

  @"
requires $version
setext $ext
cd $tempfolder
stack $seqname.seq $method -nonorm
cd ..
"@ | & $sirilcliexe -d $PWD -s - >log 2>&1

Cheers,

C.

Thanks, works perfectly!
Is there any documentation on run options, so no more rookie questions in the future? :slight_smile:

I’m afraid there’s nothing more than what’s written in the ps1 file itself:

# User settings
# nbframes:number of frames in each super stack
# step: number of frames between each super stack
# seqname: name of the registered sequence
# stackfolder: output subfolder
# processfolder: name of the subfolder which contains the sequence
# ext: chosen fits extension

so basically, just send:

.\superstack_v0.2.ps1 5 1 myseq_ sstack5

if you want to make 5-images superstacks for instance…

Not a powershell guru myself, so I’ve made it very basic :slight_smile:

1 Like