eqcorrscan.core.match_filter._channel_loop¶
-
eqcorrscan.core.match_filter.
_channel_loop
(templates, stream, cores=1, debug=0)[source]¶ Internal loop for parallel processing.
Loop to generate cross channel correlation 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 (obspy.core.stream.Stream) A single Stream object to be correlated with the templates. This is in effect the image in normxcorr2 and cv2.
- cores (int) Number of cores to loop over
- debug (int) Debug level.
Returns: New list of
numpy.ndarray
objects. These will contain the correlation sums for each template for this day of data.Return type: Returns: list of ints as number of channels used for each cross-correlation.
Return type: Returns: list of list of tuples of station, channel for all cross-correlations.
Return type: