Updating to match new version of source page |
Updating to match new version of source page |
||
Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
=Siril scripts= | =Siril scripts= | ||
<br /> | <br /> | ||
Since its early days, Siril can take user inputs as textual [[Siril:Commands|commands]], from the command line. Recently, [[Siril:Commands#Commands_history|more commands have been added]], enabling for a basic automated processing of images. Commands can be stored in a file that we call '''script''', and they are executed one after the other. Some commands can be used in scripts, some cannot, this is indicated in the help of the command line from the graphical user interface of siril. | Since its early days, Siril can take user inputs as textual [[Siril:Commands|commands]], from the command line. Recently, [[Siril:Commands#Commands_history|more commands have been added]], enabling for a basic automated processing of images. Commands can be stored in a file that we call '''script''', and they are executed one after the other. Some commands can be used in scripts, some cannot, this is indicated in the help of the command line from the graphical user interface of siril. | ||
Line 6: | Line 6: | ||
Since release [[Siril:0.9.9|0.9.9]], Siril can execute scripts from a file. Since [[Siril:0.9.10|0.9.10]], [[Siril:Commands|commands]] can also be taken from a [[Siril:Commands#Command_stream_.28pipe.29|named pipe]]. | Since release [[Siril:0.9.9|0.9.9]], Siril can execute scripts from a file. Since [[Siril:0.9.10|0.9.10]], [[Siril:Commands|commands]] can also be taken from a [[Siril:Commands#Command_stream_.28pipe.29|named pipe]]. | ||
==Using scripts== | ==Using scripts== | ||
<br /> | <br /> | ||
There are two ways to start a script manually: <br /> | There are two ways to start a script manually: <br /> | ||
Line 21: | Line 21: | ||
* click on the 'Burger' icon then on 'Preferences' | * click on the 'Burger' icon then on 'Preferences' | ||
[[File:Menu-Preferences_EN.jpg]] | [[File:Menu-Preferences_EN.jpg]] | ||
* click on the Scripts section | * click on the 'Scripts' section | ||
* | * delete the 2 lines in the field as described below | ||
* click on Apply | * click on 'Apply' | ||
* close and restart SiriL | |||
[[File:Preferences-Scripts_EN.jpg]] | [[File:Preferences-Scripts_EN.jpg]] | ||
==Getting scripts== | ==Getting scripts== | ||
<br /> | <br /> | ||
* Since release [[Siril:0.9.10|0.9.10]], scripts are provided with the installation. | * Since release [[Siril:0.9.10|0.9.10]], scripts are provided with the installation. | ||
Line 38: | Line 39: | ||
* [https://gitlab.com/free-astro/siril/-/blob/master/3rdparty/scripts/en/OSC_Preprocessing_WithDrizzle.ssf OSC_Preprocessing_WithDrizzle.ssf]: same script as above with resize of images by 2x2. Beware, this script takes much more time and disk space. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a RGB file named result.fit. | * [https://gitlab.com/free-astro/siril/-/blob/master/3rdparty/scripts/en/OSC_Preprocessing_WithDrizzle.ssf OSC_Preprocessing_WithDrizzle.ssf]: same script as above with resize of images by 2x2. Beware, this script takes much more time and disk space. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a RGB file named result.fit. | ||
* [https://gitlab.com/free-astro/siril/-/blob/master/scripts/OSC_Extract_Ha.ssf OSC_Extract_Ha.ssf]: script for OSC DSLR or astro camera preprocessing, for use with Ha filter or dual-band filter. This script extracts the Ha layer of the color image. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a monochrome file named Ha_result.fit. | * [https://gitlab.com/free-astro/siril/-/blob/master/scripts/OSC_Extract_Ha.ssf OSC_Extract_Ha.ssf]: script for OSC DSLR or astro camera preprocessing, for use with Ha filter or dual-band filter. This script extracts the Ha layer of the color image. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a monochrome file named Ha_result.fit. | ||
* [https://gitlab.com/free-astro/siril/-/blob/master/scripts/OSC_Extract_HaOIII.ssf OSC_Extract_HaOIII.ssf]: same script as above, but extracts Ha and OIII layers of the color image. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get 2 monochrome files named Ha_result.fit and OIII_result.fit. You can also use the menu 'Image Processing' then 'RGB compositing' and put Ha_result in Red layer and OIII_result in Green and Blue layers to get | * [https://gitlab.com/free-astro/siril/-/blob/master/scripts/OSC_Extract_HaOIII.ssf OSC_Extract_HaOIII.ssf]: same script as above, but extracts Ha and OIII layers of the color image. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get 2 monochrome files named Ha_result.fit and OIII_result.fit. You can also use the menu 'Image Processing' then 'RGB compositing' and put Ha_result in Red layer and OIII_result in Green and Blue layers to get an HOO image. | ||
'''Other scripts:''' | '''Other scripts:''' | ||
* [ | |||
* [ | * [https://free-astro.org/images/9/95/Mono_Preprocessing_WithoutDBF.ssf Mono_Preprocessing_WithoutDBF.ssf]: preprocess monochrome images without dark, bias nor flat. Added 2020/09/01 | ||
* [ | * [https://free-astro.org/images/a/a4/OSC_Preprocessing_WithoutDBF.ssf OSC_Preprocessing_WithoutDBF.ssf]: preprocess color images without dark, bias nor flat. Added 2020/09/01 | ||
* [https://free-astro.org/images/d/dd/OSC_Startrail.ssf OSC_Startrail.ssf]: preprocess color images and build a star-trail. Added 2020/09/01. | |||
We encourage users creating their own scripts to publish them and make a link in this page with a basic description of what they do. | We encourage users creating their own scripts to publish them and make a link in this page with a basic description of what they do. | ||
We also suggest users | We also suggest users to use [https://gitlab.com/free-astro/sirilic Sirilic] to generate scripts or [https://gitlab.com/free-astro/sirilic Sirilot] to provide a more suited way to manage all the files required for such a processing. |
Revision as of 18:51, 1 September 2020
Siril scripts
Since its early days, Siril can take user inputs as textual commands, from the command line. Recently, more commands have been added, enabling for a basic automated processing of images. Commands can be stored in a file that we call script, and they are executed one after the other. Some commands can be used in scripts, some cannot, this is indicated in the help of the command line from the graphical user interface of siril.
Since release 0.9.9, Siril can execute scripts from a file. Since 0.9.10, commands can also be taken from a named pipe.
Using scripts
There are two ways to start a script manually:
- using the @ keyword on the command line, followed by the script name, as explained here,
- or use the Scripts menu.
The scripts menu only appears if some scripts have been found in the script search directories defined either by default or by the user in the preference menu.
If you don't see the Scripts menu (or if you don't see the default scripts in the list):
Please use the following procedure:
- click on the 'Burger' icon then on 'Preferences'
- click on the 'Scripts' section
- delete the 2 lines in the field as described below
- click on 'Apply'
- close and restart SiriL
Getting scripts
- Since release 0.9.10, scripts are provided with the installation.
- Since release 0.99.4, a new command 'convert' allows the execution of universal scripts that are available for DSLR (RAW files) and Astro cameras (FITs files).
Default scripts (automatically installed with SiriL):
- Mono_Preprocessing.ssf: script for monochrome DSLR or Astro camera preprocessing, uses biases, flats and darks, registers and stacks the images. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a monochrome file named result.fit.
- OSC_Preprocessing.ssf: same script as above but for One-Shot Color (OSC) DSLR or Astro camera. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a RGB file named result.fit.
- OSC_Preprocessing_WithDrizzle.ssf: same script as above with resize of images by 2x2. Beware, this script takes much more time and disk space. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a RGB file named result.fit.
- OSC_Extract_Ha.ssf: script for OSC DSLR or astro camera preprocessing, for use with Ha filter or dual-band filter. This script extracts the Ha layer of the color image. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get a monochrome file named Ha_result.fit.
- OSC_Extract_HaOIII.ssf: same script as above, but extracts Ha and OIII layers of the color image. To use it: put your files (RAW or FITs) in the folders named 'lights', 'darks', 'flats' and 'biases' (in the SiriL default working folder), then run the script. When the script ends, you get 2 monochrome files named Ha_result.fit and OIII_result.fit. You can also use the menu 'Image Processing' then 'RGB compositing' and put Ha_result in Red layer and OIII_result in Green and Blue layers to get an HOO image.
Other scripts:
- Mono_Preprocessing_WithoutDBF.ssf: preprocess monochrome images without dark, bias nor flat. Added 2020/09/01
- OSC_Preprocessing_WithoutDBF.ssf: preprocess color images without dark, bias nor flat. Added 2020/09/01
- OSC_Startrail.ssf: preprocess color images and build a star-trail. Added 2020/09/01.
We encourage users creating their own scripts to publish them and make a link in this page with a basic description of what they do.
We also suggest users to use Sirilic to generate scripts or Sirilot to provide a more suited way to manage all the files required for such a processing.