eqcorrscan.core.lag_calc._prepare_data

eqcorrscan.core.lag_calc._prepare_data(detect_data, detections, zipped_templates, delays, shift_len, plot)[source]

Prepare data for lag_calc - reduce memory here.

Parameters:
  • detect_data (obspy.core.stream.Stream) Stream to extract detection streams from.
  • detections (list) List of eqcorrscan.core.match_filter.DETECTION to get data for.
  • zipped_templates (zip) Zipped list of (template_name, template)
  • delays (list) List of lists of the delays for each template
  • shift_len (float) Shift length in seconds allowed for picking.
  • plot (bool) Whether to plot the data extracted or not, used for debugging.
Returns:

List of detect_streams to be worked on

Return type:

list