I'd like to share a new script. Something like this may already exist, but I am new to PI and easily may have missed it.
PSFEstimation provides a simple way to estimate the point spread function (PSF) and other parameters of a target image.
Stars are detected automatically by StarAlignment's star detector. You can specify parameters to that process. The script generates a map of detected stars so you can double check your settings. The script then applies the DynamicPSF process to the detected stars and reports the medians and median deviations of the results.
In contrast to running DynamicPSF manually, you loose the ability to be selective in your choice of stars to fit, but you gain the ability to quickly analyze subexposures, calibrations, registrations and integrations.
Strictly speaking, the script should only be applied to linear images. But it does seem to provide some useful information for nonlinear images as well. RGB images are converted to Grayscale prior to PSF estimation.
When you click OK, the script runs its process and then opens a second dialog with the results, and optionally an additional window with visualizations. The result fields have tool tips that provide helpful information.
The script dialog.
Visualization (generated when the Mosaic size parameter is 3 or larger):
- Due to a previously reported issue, StarAlignment will abort PSFEstimation if it finds no stars. After clicking OK to dismiss the error dialog, try again with more permissive star detection parameters.
Added source view to dialog.
Added AvgDev eccentricity to results.
Decreased default detection sensitivity value.
Fixed non 32-bit floating point sample bug.
Increased limit on maximum number of stars fitted.
Changed fitted star map to Grayscale.
Fixed zero fitted stars bug.
Increased default detection sensitivity value.
Fixed StarAlignment stars view id bug.
Added new instance button to parameters dialog.
Added new instance button to results dialogs.
Allow dialog to open with no active view.
Fixed fitted star map bug.
Fixed no target view bug.
Preserve STF in star map views.
Removed duplicate fits.
Added Save As.. CSV file button.
Fixed missing directory bug.
Handle 'Execute in the global context' command.
0.14 - 0.18 changes:
0.19 - 0.28 changes:
Fix MacOS dialog layout bugs.
Impose maximum per panel and total fitted star limits.
0.30 - 0.32 changes:
Use MedDev rather than AvgDev for robustness.
Set defaults to Moffat4 and Eccentricity.
Add MRS Noise and SNR Weight.
Remove Median (background) visualization.
Added per star PSF information to the .csv file.