findDip¶
-
lcps.slidingWindow.
findDip
(timeWindow, fluxWindow, minDur=1, maxDur=5, localMedian=1.0, localMAD=0.01, detectionThresh=0.995)[source]¶ Search for negative excursions (dips) in an array.
findDip counts the number of entries in fluxWindow that fall short of a threshold in relative flux specified in detectionThresh. If this number lies between minDur and maxDur, a dip is detected and findDip returns the time of egress and the minimum flux relative to localMedian.
Parameters: timeWindow : array
Numpy array containing time data
fluxWindow : array
Numpy array containing flux data
minDur : int
minimum dip duration in # of data points
maxDur : int
maximum dip duration in # of data points
localMedian : float
local median flux
MAD : float
median absolute deviation of the current window’s neighborhood
detectionThresh : float
fraction of flux, below which a deviation is registered
Returns: t_egress : float
time at end of detected dip
minFlux : float
Minimum flux relative to localMedian