-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathRUN.m
31 lines (21 loc) · 860 Bytes
/
RUN.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
settingsfile='settingsfile.txt';
% ESTIMATE THE GREEN'S FUNCTION:
egfs = estimate_GF(settingsfile);
%% MEASURE THE TIME SHIFT
delays = measure_timeshift(settingsfile);
% PLOT DAILY CROSS CORRELATION AND TIME SHIFTS
h = plot_egf_td(settingsfile);
h = plot_egf_td(settingsfile,'all');
%h = plot_egf_td(settingsfile,'Daily');
%h = plot_egf_td(settingsfile,'Frequency');
% INVERT TO FIND THE TIME DELY OF EACH STATION
[fdelay fdelayc] = invert_TD(settingsfile,'plot');
% Plot the results with distance, filters and ampliude spectrum
%h = plot_distance(settingsfile);
h = apply_filterband(settingsfile,'ref');
%h = apply_filterband(settingsfile,'daily');
% Give the drift on a specified date:
dato = {'2015-10-01'}
[tdd tddc dayn]= date_select('settingsfile.txt',char(dato));
% Corrcet for measured time shift:
%corrected_stat = correct_td(settingsfile);