phot.radprof.radcum_profile
phot.radprof.radcum_profile(
im,
center,
radii=1,
mask=None,
var=None,
err=None,
return_var=False,
add_npix=True,
norm_by_last=False,
)Calculate a cumulative radial profile with circular apertures.
Parameters
im : 2-D array-
Image data.
center : tuple of float-
Aperture center in
(x, y)order. radii : 1-D array = 1-
Radii of the circular apertures.
mask : 2-D array = None-
Boolean mask;
Truepixels are ignored. Default isNone. var : 2D array = None-
Variance map. Its aperture sum is also computed. Mutually exclusive with
err. Default isNone. err : 2D array = None-
Error map, converted internally to variance (
variance = error**2). Mutually exclusive withvar. Default isNone. return_var : bool = False-
If
True, return the aperture sum asvarwithout taking a square root. IfFalse(default), return its square root aserr. Requires eithervarorerr. add_npix : bool = True-
Include
npix(weighted unmasked aperture support) whenTrue(default). SetFalseto skip theto_maskcomputation when counts are not needed. norm_by_last : bool = False-
Normalize all flux columns by the value at the largest radius when
True. Default isFalse.
Returns
profs : pandas.DataFrame-
DataFrame with these columns:
r: aperture radiusapsum: aperture sum within radius rnpix: weighted unmasked aperture support (ifadd_npix=True)var: variance ofapsum,sum(w**2 * var)with exact overlap weightsw(ifreturn_var=Trueandvar/erris given)err: square root ofvar(ifreturn_var=Falseandvar/erris given)