dominosee.eca.get_eca_precursor_from_events¶
- dominosee.eca.get_eca_precursor_from_events(eventA, eventB, delt=2, sym=True, tau=0, func='njit')[source]¶
Calculate precursor events from eventA (events in location A) to eventB (events in location B) based on event coincidence analysis.
- Parameters:
eventA (xr.DataArray) – Binary event time series at location A
eventB (xr.DataArray) – Binary event time series at location B
delt (int, optional) – Length of the coincidence window, by default 2
sym (bool, optional) – If True, use symmetric window, by default True
tau (int, optional) – Time lag from eventA to eventB, by default 0
func (str, optional) – Function to use for calculation - “njit” for numba optimized, or “guvectorize” for gufunc, by default “njit”
- Return type:
- Returns:
xr.DataArray – Number of precursor events from location A to location B