5.7.1.1. eqcorrscan.utils.findpeaks.coin_trig¶
-
eqcorrscan.utils.findpeaks.
coin_trig
(peaks, stachans, samp_rate, moveout, min_trig, trig_int)[source]¶ Find network coincidence triggers within peaks of detection statistics.
Useful for finding network detections from sets of detections on individual stations.
Parameters: - peaks (list) – List of lists of tuples of (peak, index) for each station-channel. Index should be in samples.
- stachans (list) – List of tuples of (station, channel) in the order of peaks.
- samp_rate (float) – Sampling rate in Hz
- moveout (float) – Allowable network moveout in seconds.
- min_trig (int) – Minimum station-channels required to declare a trigger.
- trig_int (float) – Minimum allowable time between network triggers in seconds.
Returns: List of tuples of (peak, index), for the earliest detected station.
Return type: list
>>> peaks = [[(0.5, 100), (0.3, 800)], [(0.4, 120), (0.7, 850)]] >>> triggers = coin_trig(peaks, [('a', 'Z'), ('b', 'Z')], 10, 3, 2, 1) >>> print(triggers) [(0.45, 100)]