Le forum des utilisateurs de Siril

Nouvelles:

  • L'équipe de développement de Siril est heureuse de vous accueillir dans ce forum.

    La version 0.9.11-bêta  de Siril est disponible sous Linux !

    Le forum a été migré vers l'adresse www.forum.siril.org mettez à jour vos favoris !!!
  • We are delighted to welcome you to this forum

    Siril version 0.9.11-beta  is available under Linux!

    The forum has been migrated to www.forum.siril.org update your bookmarks!!!

Nouvelles

We are delighted to welcome you to this forum

Siril version 0.9.11-beta  is available under Linux!

The forum has been migrated to www.forum.siril.org update your bookmarks!!!

Scripting help

turfpit · 91

Hors ligne turfpit

  • Mercurien
  • *
    • Messages: 3
    • Karma: +0/-0
le: février 07, 2019, 02:51:58 14
Hello

Using Siril 0.9.10 on Windows 10 64-bit.

I am trying to run the script DSLR_preprocessing from the SiriL interface, with the following steps:

Windows
- create folder 'test'
- create subfolders biases, darks, flats, lights
- populate the folders with the appropriate capture frames
- the frames have names like M42-180s-bias_001.fit

Siril
- set current working directory to 'test'
- Scripts > DSLR Pre-processing

Log is
12:04:04: Setting CWD (Current Working Directory) to 'D:\test'
12:05:26: Starting script C:\Program Files\SiriL\scripts\DSLR_preprocessing.ssf
12:05:26: ############################################
12:05:26: # Script for Siril 0.9
12:05:26: # January 2019
12:05:26: # (C) Cyril Richard
12:05:26: # DSLR_preprocessing v1.3
12:05:26: ########### PREPROCESSING SCRIPT ###########
12:05:26: # Script for DSLR color camera preprocessing
12:05:26: # needs 4 sets of RAW images in the working
12:05:26: # directory, within 4 directories:
12:05:26: # biases, flats, darks and lights
12:05:26: #
12:05:26: ############################################
12:05:26: #build master-bias
12:05:26: Running command: cd
12:05:26: Setting CWD (Current Working Directory) to 'D:\test\biases'
12:05:26: Running command: convertraw
12:05:26: Conversion: processing...
12:05:26: Running command: stack
12:05:26: No sequence bias_.seq found.
12:05:26: Error in line 17. Exiting batch processing
12:05:26: Script execution failed.

A file called 'bias_.seq' is created in the 'biases' folder.
No other files are created in either the 'test' folder or the 'biases' folder.

What am I doing wrong?

Note - if I carry out the processes interactively, using the windows interface, as described in the manual, eveything works as expected.

Dave



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 270
    • Karma: +13/-0
Réponse #1 le: février 07, 2019, 05:38:39 17
All scripts starting by DSLR are for DSLR.
So FITS file are not handled. You need to put raw files from your camera: CR2 for Canon, NEF for nikon, etc...



Hors ligne turfpit

  • Mercurien
  • *
    • Messages: 3
    • Karma: +0/-0
Réponse #2 le: février 07, 2019, 09:58:05 21
Thanks Cyril.

I was capturing with a Canon 600D using Nebulosity.  The Nebulosity output using the Canon is FITS.  I have to set the Debayer pattern manually to RGGB and the interactive SiriL process works.  I can clearly see how the script commands match the interactive actions.

Is it possible to script for FITS files?  I am about to embark on my first attempts at LRGB processing and I know how repetitive processing is going to be (x4).

Dave



Hors ligne lock042

  • Administrator
  • Martien
  • *****
    • Messages: 270
    • Karma: +13/-0
Réponse #3 le: février 08, 2019, 07:46:24 07
Yes it is possible.
Take a look to Sirilic to build your scripts: https://gitlab.com/free-astro/sirilic



Hors ligne turfpit

  • Mercurien
  • *
    • Messages: 3
    • Karma: +0/-0
Réponse #4 le: février 08, 2019, 02:33:00 14
Thanks Cyril - I will have a look at that.

Dave



Hors ligne jcjesior@free.fr

  • Mercurien
  • *
    • Messages: 23
    • Karma: +1/-0
Réponse #5 le: février 10, 2019, 07:42:45 19
Dave,
I also had to struggle with the scripts but I sort of mastered them after using a text editor to open them and to modify them to my needs.
Don't use a word processor but a real text editor with a line counter: on a Mac, I use BBEdit.
Have fun.