6.2.7.1.5. eqcorrscan.utils.findpeaks.multi_find_peaks

eqcorrscan.utils.findpeaks.multi_find_peaks(arr, thresh, trig_int, parallel=True, full_peaks=False, cores=None, internal_func=<function find_peaks_compiled>)[source]

Wrapper for find-peaks for multiple arrays.

Parameters:
  • arr (numpy.ndarray) – 2-D numpy array is required

  • thresh (list) – The threshold below which will be considered noise and peaks will not be found in. One threshold per array.

  • trig_int (int) – The minimum difference in samples between triggers, if multiple peaks within this window this code will find the highest.

  • parallel (bool) – Whether to compute in parallel or not - will use multiprocessing if not using the compiled internal_func

  • full_peaks (bool) – See eqcorrscan.utils.findpeaks.find_peaks2_short

  • cores (int) – Maximum number of processes to spin up for parallel peak-finding

  • internal_func (callable) – Function to use for peak finding - defaults to the compiled version.

Returns:

List of list of tuples of (peak, index) in same order as input arrays