clipped_sky_per_pix_stats#

stellarphot.photometry.photometry.clipped_sky_per_pix_stats(data, annulus, sigma=5, iters=5)[source]#

Calculate sigma-clipped statistics on an annulus.

Parameters:
dataastropy.nddata.CCDData

CCD image on which the annuli are defined.

annulusphotutils.CircularAnnulus

One or more annulus (of any shape) from photutils.

sigmafloat, optional

Number of standard deviations from the central value a pixel must be to reject it.

itersint, optional

Maximum number of sigma clip iterations to perform. Iterations stop automatically if no pixels are rejected.

Returns:
avg_sky_per_pix, med_sky_per_pix, std_sky_per_pixastropy.units.Quantity

Average, median and standard deviation of the sky per pixel.