4.36. extract¶
Runs astroalign._find_sources to detect sources on the image.
- Fits.extract(detection_sigma: float = 5.0, min_area: float = 5.0) pd.DataFrame¶
Runs
astroalign._find_sourcesto detect sources on the image.Parameters
- detection_sigma (
float, default=5.0): Threshold for source detection, defined as
thresh = detection_sigma * bkg.globalrms.
- detection_sigma (
- min_area (
float, default=5.0): Minimum area of connected pixels to be considered as a source.
- min_area (
Returns
pd.DataFrameA DataFrame containing a list of sources found on the image.
4.36.1. Example:¶
from myraflib import Fits
fits = Fits.sample()
sources = fits.extract()