def below1(mag, magerr):
"""This function measures the ratio of data points that are below 1 standard deviations
from the mean magnitude.
:param mag: the time-varying intensity of the lightcurve. Must be an array.
:param magerr: photometric error for the intensity. Must be an array.
:rtype: float
"""
mag, magerr = remove_bad(mag, magerr)
a = meanMag(mag, magerr) + deviation(mag, magerr)
below1 = len(np.argwhere(mag > a))
return below1
评论列表
文章目录