SH_Reference¶
- class mmtwfs.wfs.SH_Reference(data, fwhm=4.5, threshold=20.0, plot=True)[source] [edit on github]¶
Bases:
objectClass to handle Shack-Hartmann reference data
Read WFS reference image and generate reference magnifications (i.e. grid spacing) and aperture positions.
- Parameters
- dataFITS filename or 2D ndarray
WFS reference image
- fwhmfloat
FWHM in pixels of DAOfind convolution kernel
- thresholdfloat
DAOfind threshold in units of the standard deviation of the image
- plotbool
Toggle plotting of the reference image and overlayed apertures
Methods Summary
adjust_center(x, y)Adjust reference center to new x, y position.
apply_pupil(pup_inner, pup_outer)Apply a pupil mask to the reference apertures
pup_coords(pup_outer)Take outer radius of pupil and calculate pupil coordinates for the masked apertures
Methods Documentation
- adjust_center(x, y)[source] [edit on github]¶
Adjust reference center to new x, y position.
- apply_pupil(pup_inner, pup_outer)[source] [edit on github]¶
Apply a pupil mask to the reference apertures
- pup_coords(pup_outer)[source] [edit on github]¶
Take outer radius of pupil and calculate pupil coordinates for the masked apertures