radial_profile

poppy.radial_profile(hdulist_or_filename=None, ext=0, ee=False, center=None, stddev=False, binsize=None, maxradius=None, normalize='None', pa_range=None)[source]

Compute a radial profile of the image.

This computes a discrete radial profile evaluated on the provided binsize. For a version interpolated onto a continuous curve, see measure_radial().

Code taken pretty much directly from pydatatut.pdf

hdulist_or_filename : string
FITS HDUList object or path to a FITS file. NaN values in the FITS data array are treated as masked and ignored in computing bin statistics.
ext : int
Extension in FITS file
ee : bool
Also return encircled energy (EE) curve in addition to radial profile?
center : tuple of floats
Coordinates (x,y) of PSF center, in pixel units. Default is image center.
binsize : float
size of step for profile. Default is pixel size.
stddev : bool
Compute standard deviation in each radial bin, not average?
normalize : string
set to ‘peak’ to normalize peak intensity =1, or to ‘total’ to normalize total flux=1. Default is no normalization (i.e. retain whatever normalization was used in computing the PSF itself)
pa_range : list of floats, optional
Optional specification for [min, max] position angles to be included in the radial profile. I.e. calculate that profile only for some wedge, not the full image. Specify the PA in degrees counterclockwise from +Y axis=0. Note that you can specify ranges across zero using negative numbers, such as pa_range=[-10,10]. The allowed PA range runs from -180 to 180 degrees.
results : tuple
Tuple containing (radius, profile) or (radius, profile, EE) depending on what is requested. The radius gives the center radius of each bin, while the EE is given inside the whole bin so you should use (radius+binsize/2) for the radius of the EE curve if you want to be as precise as possible.