obspy.signal.cross_correlation¶
Signal processing routines based on cross correlation techniques.
| copyright: | The ObsPy Development Team (devs@obspy.org) |
|---|---|
| license: | GNU Lesser General Public License, Version 3 (https://www.gnu.org/copyleft/lesser.html) |
Public Functions
| correlate | Cross-correlation of signals a and b with specified maximal shift. |
| templates_max_similarity | Compares all event templates in the streams_templates list of streams against the given stream around the time of the suspected event. |
| xcorr | Cross correlation of tr1 and tr2 in the time domain using window_len. |
| xcorr_3c | Calculates the cross correlation on each of the specified components separately, stacks them together and estimates the maximum and shift of maximum on the stack. |
| xcorr_max | Return shift and value of the maximum of the cross-correlation function. |
| xcorr_pick_correction | Calculate the correction for the differential pick time determined by cross correlation of the waveforms in narrow windows around the pick times. |
Private Functions
Warning
Private functions are mainly for internal/developer use and their API might change without notice.
| _pad_zeros | Pad num zeros at both sides of array a |
| _xcorr_padzeros | Cross-correlation using SciPy with mode=’valid’ and precedent zero padding |
| _xcorr_slice | Cross-correlation using SciPy with mode=’full’ and subsequent slicing |