4.6.3. match_filter

Functions for network matched-filter detection of seismic data. Designed to cross-correlate templates generated by template_gen function with data and output the detections. The central component of this is the match_template function from the openCV image processing package. This is a highly optimized and accurate normalized cross-correlation routine. The details of this code can be found here: OpenCV object detection

copyright:EQcorrscan developers.
license:GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html)

4.6.3.2. Functions

extract_from_stream Extract waveforms for a list of detections from a stream.
get_catalog Generate an obspy.core.event.Catalog from list of Detection‘s.
match_filter Main matched-filter detection function.
normxcorr2 Thin wrapper on openCV match_template function.
read_detections Read detections from a file to a list of Detection objects.
read_tribe Read a Tribe of templates from a tar archive.
read_party Read detections and metadata from a tar archive.
read_template Read a Template object from a tar archive.
write_catalog Write events contained within detections to a catalog file.

4.6.3.3. Private Functions

_channel_loop Internal loop for parallel processing.
_template_loop Handle individual template correlations.
_group_process Process data into chunks based on template procesing length.
_group_detect Pre-process and compute detections for a group of templates.
_write_family Write a family to a csv file.
_read_family Internal function to read csv family files.
_total_microsec Calculate difference between two datetime stamps in microseconds.
_test_event_similarity Check the similarity of the components of obspy events, discounting resource IDs, which are not maintained in nordic files.