(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Dynamic PSF is a dynamic tool inspired by the PixInsight routine of the same name. It is used to fit unsaturated stars whithin the image. For now, the PSF model is restricted to a 2D Gaussian function which is sufficient in most cases.

## Model

• 2D Gaussian:

$G=B+A\exp{-\left( \frac{}{} + \frac{}{} \right)}$

• Parameters:
• B: The average local background in the [0, 1] range.
• A: The maximal intensity of the star in the [0, 1] range: this is the peak value of the fitted function, located at the centroid coordinates x0 and y0.
• x0 and y0: The centroid coordinates in pixel units, which is the position of the center of symmetry of the fitted PSF.
• FWHM_X and FWHM_Y: The Full Width Half Maximum on the X and Y axis in pixel units. These parameters are calculated as follow :
• FWHM_X = sqrt(Sx/2.)*2*sqrt(log(2.)*2)
• FWHM_Y = sqrt(Sy/2.)*2*sqrt(log(2.)*2)
• It is possible to obtain the FWHM parameters in arcseconds units. This requires you fill all fields corresponding to your camera and lens/telescope focal in the setting parameter window. If standard FITS keywords FOCALLEN, XPIXSZ, YPIXSZ, XBINNING and YBINNING are read in the FITS HDU, the PSF will also compute the image scale in arcseconds per pixel.
• r: The roundness parameter. It is expressed as FWHM_Y/FWHM_X, with FWHM_X>FWHM_Y the symmetry condition.
• Angle: The rotation angle of the X axis with respect to the centroid coordinates in the [-90, 90] range. The angle is obtained as follow:
• x' = +x cos Angle + y sin Angle
• y' = -x sin Angle + y cos Angle
• RMSE: This is an estimation of fitting quality. The smaller the RMSE is, the better the function is fitted.

## Minimization

Minimization is performed with the Levenberg-Marquardt algorithm of the very robust GNU Scientific Library. As a first step, the algorithm runs a set of parameters excluding rotation angle in order to set good start values and thus, avoinding possible divergence. If Sx-Sy > 0.01 (parameters directly computed in the 2-D gaussian formula, see above), then another fit is run with the angle parameter. Therefore, the Siril Dynamic PSF provides accurate values for all the fitted parameters.

## Use

Dynamic PSF can be called from two different ways depending on what you want:

• You may want to fit just one star. In this case, after drawing a selection around an unsaturated star (this is important for the accuracy of the result) you can either type "PSF" in the prompt of the console or do a right click and choose the "PSF" item. In both case you will be able to copy the result and paste it where you want.
• In the case you want to deal with many stars and average it, you MUST work on the dynamic PSF window by ever clicking on the "Analysis" menu and the "Dynamic PSF" item or drawing a selection around an unsaturated star, doing a right click and selecting the "Pick a star" item.

The dynamic PSF window provides very valuable tools:

• You can select and/or remove a star chosing it in a tree list.
• You can export the result of the PSF in ASCII file.
• You can average the PSF results and copy and paste the result.
• You can run the star detection algorithm by clicking on the corresponding button.

## Star detection

As said before, this dynamic PSF also contains an automatic tool of star detection. This algorithm is based on the publication of Mighell, J. J.[1] which is a simple peak detector algorithm indentifying any pixel that is greater than any of its eight neighbors. In addition to this basic algorithm, a PSF is applied on every possible "detected stars" and Siril rejects all detected structures that don't fulfill a set of prescribed detection criteria. Finaly, a circle is drawn around detected stars. Nevertheless, if a non-stellar object is selected, it is possible to select it and remove it from the list. You may notice that during the automatic star detection, no rotation angle are fitted due to speed consideration.

## References

1. Mighell, K. J. 1999, in ASP Conf. Ser., Vol. 172, Astronomical Data Analysis Software and Systems VIII, eds. D. M. Mehringer, R. L. Plante, & D. A. Roberts (San Francisco: ASP), 317.