5.10.1.3. eqcorrscan.utils.stacking.align_traces

eqcorrscan.utils.stacking.align_traces(trace_list, shift_len, master=False)[source]

Function to allign traces relative to each other based on their cross-correlation value.

Parameters:
  • trace_list (list of Traces) – List of traces to allign
  • shift_len (int) – Length to allow shifting within in samples
  • master (obspy.Trace) – Master trace to align to, if set to False will align to the largest amplitude trace (default)
Returns:

list of shifts for best allignment in seconds