3. Calculate apriori dt for all cross-correlationsΒΆ

Given that Github has a limited capacity to upload data, please request the dataset to David Naranjo (d.f.naranjohernandez@tudelft.nl). Then, change the path2datadir variable to the location of this folder in your computer.

[1]:
from ocloc import ProcessingParameters, ClockDrift, trim_correlation_trace
[2]:
path2data_dir = "/Users/localadmin/Dropbox/GitHub/data"
station_file = "/Users/localadmin/Dropbox/GitHub/ocloc/tutorials/station_info"
params = ProcessingParameters()

cd = ClockDrift(station_file, path2data_dir,
                reference_time = '2014-08-21T00:00:00.000000Z',
                list_of_processing_parameters=[params])
No correlation file found for station:O26
No correlation file found for station:#STK

To calculate the time window where the causal and acausal waves are located in time the algorithm needs an apriori estimate. This estimate is an apriori of \(\delta t_{app}\) calculated individually for each cross-correlation file and is based on the presumed stability of the time-lapsed cross-correlations.

If there is only one cross-correlation for a given station pair, the apriori estimate is set to zero. When there are two or more files, the algorithm uses two cross-correlations, one with the earliest and one with the latest time-averaged date. Then, the cross-correlation between the earliest file and the latest file is computed. This provides an estimate of the time lag to the maximum waveform similarity. Then, the drift is assumed to be linear, meaning that the correction for the earliest file is zero while the correction of the latest file is the total time lag.

To calculate the apriori estimate for all cross-correlations you just need to:

[ ]:
cd.calculate_aprioridt_4_allcorrelations()
Calculating the apriori estimates for each stationpair