Revision as of 11:26, 26 September 2013 by Lock42 (talk | contribs) (Ajout de commandes)

Siril command line functions reference

This manual is a summary of the different commands you can find in Siril. As Siril is in alpha test phase, numerous commands can be added and some others can be changed. Please check the date of the page (the history link) before using.


cd directory

Set the current working directory.


crop x, y, width, height

Crops the current image either with the rectangle previously selected with the mouse or with the x, y, width and height parameters.


ddp level coef sigma

Performs a DDP (digital development processing) as described first by Kunihiko Okano. This implementation is the one described in IRIS. It combines a linear distribution on low levels (below level) and a non-linear on high levels. It uses a Gaussian filter of sigma sigma multiplies the resulting image by coef.


entropy filename

Computes the entropy of the file given in the parameter filename.



Quits the application.


fill value

Fills the whole current image with pixels having the value intensity.


gauss sigma

Performs a Gaussian filter with the given sigma.



Gives the available commands.


load filename

Loads the fits image filename; it first attempts to load filename, then and finally filename.fits, aborting if none of these are found. These scheme is applicable to every Siril command implying reading files. Fits headers MIPS-HI and MIPS-LO are read and their values given to the current viewing levels (the second, optional argument is reserved for a future use)



Computes and applies a logarithmic scale to the current image.



Rotates the image around a vertical axis.



Rotates the image around an horizontal axis.


new width height

Creates a new image filled with zeros with a size of width height.


nozero level

Replaces null values by level values. Useful before an idiv or fdiv operation.


offset value

Adds the constant value to the current image. This constant can take a negative value. As Siril uses unsigned fit files, if the intensity of the pixel become negative its value is replaced by 0 and by 65535 (for a 16-bit file) if the pixel intensity overflows. To check the minimum and maximum intensities values, click on the Auto level button and note the low and high threshold.


save filename

Writes the currently displayed image to Fits headers MIPS-HI and MIPS-LO are added with values corresponding to the current viewing levels (the second, optional argument is reserved for a future use).


savergb filename

Same command than save.

threshlo, threshhi, thresh

These are threshold functions:

  • threshlo 40 replaces values below 40 with 40;
  • threshhi 1000 replaces values above 1000 with 1000;
  • thresh 40 1000 does both.


unsharp sigma multi

Applies to the working image an unsharp mask with sigma sigma and coefficient multi.


visu low high

Display an image with low and high as the low and high threshold.


wavelet plan_number type

Computes the wavelet transform on plan_number plans using linear (type=1) or bspline (type=2) version of the 'a trous' algorithm. The result is stored in a file as a structure containing the planes, ready for weighted reconstruction with wrecons.


wrecons c1 c2 ... cn

Reconstructs to current image from the planes previously computed with waveletand weighted with coefficients c1, c2, ..., cn according to the number of planes used for wavelet transform