mk_wfs_mask

mmtwfs.wfs.mk_wfs_mask(data, thresh_factor=50.0, outfile='wfs_mask.fits')[source] [edit on github]

Take a WFS image and mask/scale it so that it can be used as a reference for pupil centering

Parameters
dataFITS filename or 2D ndarray

WFS image

thresh_factorfloat (default: 50.)

Fraction of maximum value below which will be masked to 0.

outfilestring (default: wfs_mask.fits)

Output FITS file to write the resulting image to.

Returns
scaled2D ndarray

Scaled and masked WFS image