5.45. daofind

Runs daofind to detect sources on the image.


FitsArray.daofind(index: int = 0, sigma: float = 3.0, fwhm: float = 3.0, threshold: float = 5.0) pd.DataFrame

Runs daofind to detect sources on the image.

References

[1] https://docs.astropy.org/en/stable/api/astropy.stats.sigma_clipped_stats.html [2] https://photutils.readthedocs.io/en/stable/api/photutils.detection.DAOStarFinder.html

Parameters

indexint, default=0

The index of the Fits object in the FitsArray to run daofind on.

sigmafloat, default=3.0

The number of standard deviations to use for both the lower and upper clipping limit. These limits are overridden by sigma_lower and sigma_upper, if input. The default is 3. [1]

fwhmfloat, default=3.0

The full-width half-maximum (FWHM) of the major axis of the Gaussian kernel in units of pixels. [2]

thresholdfloat, default=5.0

The absolute image value above which to select sources. [2]

Returns

pd.DataFrame

DataFrame containing the list of sources found on the image.


5.45.1. Example:

from myraflib import FitsArray

fa = FitsArray.sample()
sources = fa.daofind()