Python, Cross Correlation, Geophysics, Time Series Analysis, Time Series Data.
print( "xcorr {}-{}".format(time_series[ind1], time_series[ind2]), lags[np.argmax(rs)], np.max(rs)) In the above code, I have used the crosscorr function to compute the correlation between the pair of time-series for a series of lag values. The lag values have been constrained between -200 to 200