5.4.1.4. eqcorrscan.utils.clustering.corr_cluster

eqcorrscan.utils.clustering.corr_cluster(trace_list, thresh=0.9)[source]

Group traces based on correlations above threshold with the stack.

Will run twice, once with a lower threshold, then again with your threshold to remove large outliers.

Parameters:
  • trace_list (list of obspy.Trace) Traces to compute similarity between
  • thresh (float) Correlation threshold between -1-1
Returns:

np.ndarray of bool

Note

We recommend that you align the data before computing the clustering, e.g., the P-arrival on all templates for the same channel should appear at the same time in the trace. See the stacking.align_traces function for a way to do this