Python, Cross Correlation, Geophysics, Time Series Analysis, Time Series Data.
(50), 1) rs = np.nan_to_num([crosscorr(d1, d2, lag) for lag in lags]) maxrs, minrs = np.max(rs), np.min(rs) if np.abs(maxrs) >= np.abs(minrs): corrval = maxrs else: corrval = minrs ax[1].plot(lags, rs, 'k', label='Xcorr (s1 vs s2), maxcorr: {:.2f}'.format( corrval), lw=0.5) #