6.2.5.1.3. eqcorrscan.utils.correlate.numpy_normxcorr

eqcorrscan.utils.correlate.numpy_normxcorr(templates, stream, pads, cc_squared=False, *args, **kwargs)[source]

Compute the normalized cross-correlation using numpy and bottleneck.

Parameters:
  • templates (np.ndarray) – 2D Array of templates

  • stream (np.ndarray) – 1D array of continuous data

  • pads (list) – List of ints of pad lengths in the same order as templates

  • cc_squared (bool) – Whether to output cc-squared or not

Returns:

np.ndarray of cross-correlations

Returns:

np.ndarray channels used