4.4.2.1. eqcorrscan.core.lag_calc._channel_loop

eqcorrscan.core.lag_calc._channel_loop(detection, template, min_cc, interpolate=False, i=0, debug=0)[source]

Inner loop for correlating and assigning picks.

Utility function to take a stream of data for the detected event and write maximum correlation to absolute time as picks in an obspy.core.event.Event object. Only outputs picks for picks above min_cc.

Parameters:
  • detection (obspy.core.stream.Stream) Stream of data for the slave event detected using template.
  • template (obspy.core.stream.Stream) Stream of data as the template for the detection.
  • interpolate (bool) Interpolate the correlation function to achieve sub-sample precision.
  • i (int) Used to track which process has occurred when running in parallel.
Returns:

Event object containing net, sta, chan information

Return type:

obspy.core.event.Event