faster_sigma_clip_stats#
- stellarphot.photometry.photometry.faster_sigma_clip_stats(data, sigma=5, iters=5, axis=None)[source]#
Calculate sigma clipped stats quickly using NaNs instead of masking and using bottleneck where possible.
- Parameters:
- datanumpy array
The data to be clipped. The data should have had masked values replaced with NaN prior to calling this function.
- sigmafloat, optional
Number of standard deviations (estimated with the MAD) a point must be from the central value (median) to be rejected.
- itersint, optional
Number of sigma clipping iterations to perform. Fewer iterations than this may be performed because iterations stop when no new data is being clipped.
- axisint, optional
axis along which to perform the median.
- Returns:
- mean, median, stdfloat or numpy array
Clipped statistics; shape depends on the shape of the input.