get_apertures¶
- mmtwfs.wfs.get_apertures(data, apsize, fwhm=5.0, thresh=7.0, plot=True, cen=None)[source] [edit on github]¶
Use wfsfind to locate and centroid spots. Measure their S/N ratios and the sigma of a 2D gaussian fit to the co-added spot.
- Parameters
- datastr or 2D ndarray
WFS image to analyze, either FITS file or ndarray image data
- apsizefloat
Diameter/width of the SH apertures
- Returns
- srcsastropy.table.Table
Detected WFS spot positions and properties
- maskslist of photutils.ApertureMask objects
Masks used for aperture centroiding
- snrs1D np.ndarray
S/N for each located spot
- sigmafloat