calcrms¶
- interferopy.tools.calcrms(arr, fitgauss=False, around_zero=True, clip_sigma=3, maxiter=20)[source]¶
Calculate rms by iteratively disregarding outlier pixels (beyond clip_sigma x rms values).
- Parameters
arr – Input array.
fitgauss – If True, Gaussian will be fitted onto the distribution of negative pixels.
around_zero – Assume no systematic offsets, i.e., noise oscillates around zero.
clip_sigma – Clip values beyond these many sigmas (in both positive and negative directions).
maxiter – Maximum number of iterations to perform.
- Returns
rms or, if fitgauss is Truem rms and Gaussian sigma