sep.sum_circann¶
-
sep.sum_circann(data, x, y, rin, rout, err=None, var=None, mask=None, maskthresh=0.0, gain=None, subpix=5)¶ Sum data in circular annular aperture(s).
Parameters: data :
ndarray2-d array to be summed.
x, y, rin, rout : array_like
Center coordinates and inner and outer radii of aperture(s).
xcorresponds to the second (“fast”) axis of the input array andycorresponds to the first (“slow”) axis.x, y = (0.0, 0.0)corresponds to the center of the first element of the array. These inputs obey numpy broadcasting rules. It is required thatrout >= rin >= 0.0.err, var : float or ndarray
Error or variance (specify at most one).
mask :
ndarray, optionalMask array. If supplied, a given pixel is masked if its value is greater than
maskthresh.maskthresh : float, optional
Threshold for a pixel to be masked. Default is
0.0.gain : float, optional
Conversion factor between data array units and poisson counts, used in calculating poisson noise in aperture sum. If
None(default), do not add poisson noise.subpix : int, optional
Subpixel sampling factor. Default is 5.
Returns: sum :
ndarrayThe sum of the data array within the aperture.
sumerr :
ndarrayError on the sum.
flags :
ndarrayInteger giving flags. (0 if no flags set.)