get_apertures
- mmtwfs.wfs.get_apertures(data, apsize, fwhm=5.0, thresh=7.0, plot=True, cen=None, box=50)[source]
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
- cenlist-like or None
Pupil center (x, y). If given, background statistics come from a box around it rather than the whole image.
- boxint
Half-width in pixels of the background statistics box around cen. It should fit inside the central obscuration, or light from the inner ring of spots inflates the noise estimate.
- 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