measure_fwhm

poppy.measure_fwhm(hdulist_or_filename, ext=0, center=None, plot=False, threshold=0.1)[source]

Improved version of measuring FWHM, without any binning of image data.

Method: Pick out the image pixels which are above some threshold relative to the peak intensity, then fit a Gaussian to those. Infer the FWHM based on the width of the Gaussian.

Parameters:
hdulist_or_filenamestring

what it sounds like.

extint

Extension in FITS file

centertuple of floats

Coordinates (x,y) of PSF center, in pixel units. Default is image center.

thresholdfloat

Fraction relative to the peak pixel that is used to select the bright peak pixels used in fitting the Gaussian. Default is 0.1, i.e. pixels brighter that 0.1 of the maximum will be included. This is chosen semi-arbitrarily to include most of the peak but exclude the first Airy ring for typical cases.

plotbool

Display a diagnostic plot.

Returns:
fwhmfloat

FWHM in arcseconds