measure_radial

poppy.measure_radial(hdulist_or_filename=None, ext=0, center=None, binsize=None)[source]

measure azimuthally averaged radial profile of a PSF.

Returns a function object which when called returns the mean value at a given radius.

Parameters:
hdulist_or_filenamestring

what it sounds like.

extint

Extension in FITS file

centertuple of floats

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

binsize:

size of step for profile. Default is pixel size.

Returns:
radial_profile: function

A function which will return the mean PSF value at any desired radius.

Examples

>>> rp = measure_radial("someimage.fits")  
>>> radius = np.linspace(0, 5.0, 100)
>>> plt.plot(radius, rp(radius), label="PSF")