sep.sum_ellipann#
- sep.sum_ellipann(data, x, y, a, b, theta, rin, rout, err=None, var=None, mask=None, maskthresh=0.0, gain=None, subpix=5)#
Sum data in elliptical annular aperture(s).
- Parameters:
- data
ndarray 2-d array to be summed.
- x, yarray_like
Center coordinates and radius (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.- a, b, theta, rin, routarray_like
Elliptical annulus parameters. These inputs, along with
xandy, obey numpy broadcasting rules.ais the semi-major axis,bis the semi-minor axis andthetais angle in radians between the positive x axis and the major axis. It must be in the range[-pi/2, pi/2]. It is also required thata >= b >= 0.0androut >= rin >= 0.0- err, varfloat or
ndarray Error or variance (specify at most one).
- mask
ndarray, optional Mask array. If supplied, a given pixel is masked if its value is greater than
maskthresh.- maskthreshfloat, optional
Threshold for a pixel to be masked. Default is
0.0.- gainfloat, 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.- segmap
ndarray, optional Segmentation image with dimensions of
dataand dtypenp.int32. This is an optional input and corresponds to the segmentation map output byextract.- seg_idarray_like, optional
Array of segmentation ids used to mask additional pixels in the image. Dimensions correspond to the dimensions of
xandy. The behavior differs depending on whetherseg_idis negative or positive. Ifseg_idis positive, all pixels belonging to other objects are masked. (Pixelj, iis masked ifseg[j, i] != seg_id and seg[j, i] != 0). Ifseg_idis negative, all pixels other than those belonging to the object of interest are masked. (Pixelj, iis masked ifseg[j, i] != -seg_id). NB: must be included ifsegmapis provided.- subpixint, optional
Subpixel sampling factor. Default is 5.
- data
- Returns: