5.2.5.1.6. eqcorrscan.utils.correlate.get_stream_xcorr

eqcorrscan.utils.correlate.get_stream_xcorr(name_or_func=None, concurrency=None)[source]

Return a function for performing normalized cross correlation on lists of streams.

Parameters:
  • name_or_func – Either a name of a registered function or a callable that implements the standard array_normxcorr signature.

  • concurrency – Optional concurrency strategy, options are below.

Returns:

A callable with the interface of stream_normxcorr

Concurrency options:
  • multithread - use a threadpool for concurrency;

  • multiprocess - use a process pool for concurrency;

  • concurrent - use a customized concurrency strategy for the function, if not defined threading will be used.