Python to generate Siril script for cooled OSC

Hi again,

here-below the log of modifications (corrections and additions):

Corrections:

  • bug correction with the dark path file
  • corrected calling bias instead of flat in the preprocessing of the lights

Features:

  • Possibility to specify dark library path as absolute or relative - the path written in the script is always absolute (cannot have spaces yet!)

  • Added flexible darkfile name format (darkfmt) based on FITS header keys and format spec:

  • Example: ‘darks_G[GAIN:d][SET-TEMP:d]C_bin[XBINNING:d][EXPTIME:03d]s.fit’

  • Checks that the FITS header keys specified in darkfmt are all present in the lights

  • Checks for existence of dark library and correct dark file before starting the process

  • Does not rename the files if they already have the right name format (avoid overwriting logs if this code is run a second time)

Clear skies,

C.GenSirilScript.py (6.7 KB)

2 Likes