4.3.2.1. eqcorrscan.core.match_filter._channel_loop

eqcorrscan.core.match_filter._channel_loop(templates, stream, cores=1, do_subspace=False, debug=0)[source]

Internal loop for parallel processing.

Loop to generate cross channel correaltion sums for a series of templates hands off the actual correlations to a sister function which can be run in parallel.

Parameters:
  • templates (list) A list of templates, where each one should be an obspy.Stream object containing multiple traces of seismic data and the relevant header information. If do_subspace is True, templates should be a list of lists of obspy.Stream objects, one list for each detector of length n, where n is the number of singular vectors.
  • stream A single obspy.Stream object containing daylong seismic data to be correlated through using the templates. This is in effect the image.
  • cores (int) Number of cores to loop over
  • do_subspace (bool) Flag for running subspace detection. Defaults to False.
  • debug (int) Debug level.
Returns:

New list of :class: ‘numpy.array’ objects. These will contain the correlation sums for each template for this day of data.

Returns:

list of ints as number of channels used for each cross-correlation.

Returns:

list of list of tuples of station, channel for all cross-correlations.