5.46. extract¶
Runs astroalign._find_sources to detect sources on the image.
- FitsArray.extract(index: int = 0, detection_sigma: float = 5.0, min_area: float = 5.0) pd.DataFrame¶
Runs
astroalign._find_sourcesto detect sources on the image.Parameters
indexint, default=0The index of the
Fitsobject in theFitsArrayto runextracton.detection_sigmafloat, default=5.0Threshold value for source detection, calculated as
thresh = detection_sigma * bkg.globalrms.min_areafloat, default=5.0Minimum area of detected sources.
Returns
pd.DataFrameDataFrame containing the list of sources found on the image.
5.46.1. Example:¶
from myraflib import FitsArray
fa = FitsArray.sample()
sources = fa.extract()