-
Notifications
You must be signed in to change notification settings - Fork 9
/
create_ph5.sh
executable file
·104 lines (96 loc) · 4.2 KB
/
create_ph5.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#!/bin/bash
echo "Making test PH5!"
rm -rf ph5/test_data/ph5
cd ph5/test_data/
mkdir ph5
cd ph5
initialize_ph5 -n master.ph5
segdtoph5 -n master.ph5 -U 13N -r ../segd/fairfield/3ch.fcnt
130toph5 -n master.ph5 -r ../rt130/2016139.9EEF.ZIP
125atoph5 -n master.ph5 -r ../rt125a/I2183RAW.TRD
metadatatoph5 -n master.ph5 -f ../metadata/station.xml --force
mstoph5 -n master.ph5 -d ../miniseed/ --force
keftoph5 -n master.ph5 -k ../metadata/array_8_130.kef
keftoph5 -n master.ph5 -k ../metadata/array_9_rt125a.kef
keftoph5 -n master.ph5 -k ../metadata/experiment.kef
resp_load -n master.ph5 -a 1,8,9 -i ../metadata/input.csv
time_kef_gen -n master.ph5 -o ../metadata/time.kef
keftoph5 -n master.ph5 -k ../metadata/time.kef
keftoph5 -n master -k ../metadata/event_t.kef
sort_kef_gen -n master.ph5 -a > ../metadata/sort_t.kef
keftoph5 -n master -k ../metadata/sort_t.kef
geo_kef_gen -n master.ph5 > ../metadata/offset_t.kef
keftoph5 -n master -k ../metadata/offset_t.kef
mkdir samplerate
cd samplerate
mkdir error
keftoph5 -n master.ph5 -k ../../samplerate/all_arrays.kef
keftoph5 -n master.ph5 -k ../../samplerate/Expirement_SampleRate.kef
keftoph5 -n master.ph5 -k ../../samplerate/Receiver_SampleRate.kef
cp master.ph5 error
mstoph5 -n master.ph5 -d ../../samplerate --force
keftoph5 -n master.ph5 -k ../../samplerate/Das_SampleRate.kef
cd error
mstoph5 -n master.ph5 -r ../../../samplerate/8H.10075..GH1.2012-08-27T23.01.00.ms --force
keftoph5 -n master.ph5 -k ../../../samplerate/Das_SampleRate_error.kef
cd ../../
mkdir availability
cd availability
keftoph5 -n master.ph5 -k ../../availability/Availability_all_arrays.kef
keftoph5 -n master.ph5 -k ../../availability/Expirement_Availability.kef
keftoph5 -n master.ph5 -k ../../availability/Receiver_Availability.kef
mstoph5 -n master.ph5 -d ../../availability --force
keftoph5 -n master.ph5 -k ../../availability/Das_Availability.kef
cd ../
mkdir availability_extent
cd availability_extent
initialize_ph5 -n master.ph5
segdtoph5 -n master.ph5 -U 13N -r ../../segd/fairfield/3ch.fcnt
130toph5 -n master.ph5 -r ../../rt130/2016139.9EEF.ZIP
125atoph5 -n master.ph5 -r ../../rt125a/I2183RAW.TRD
metadatatoph5 -n master.ph5 -f ../../metadata/station.xml --force
mstoph5 -n master.ph5 -d ../../miniseed/ --force
keftoph5 -n master.ph5 -k ../../metadata/array_8_130_extent.kef
keftoph5 -n master.ph5 -k ../../metadata/array_9_rt125a.kef
keftoph5 -n master.ph5 -k ../../metadata/experiment.kef
resp_load -n master.ph5 -a 1,8,9 -i ../../metadata/input.csv
time_kef_gen -n master.ph5 -o ../../metadata/time.kef
keftoph5 -n master.ph5 -k ../../metadata/time.kef
keftoph5 -n master -k ../../metadata/event_t.kef
sort_kef_gen -n master.ph5 -a > ../../metadata/sort_t.kef
keftoph5 -n master -k ../../metadata/sort_t.kef
geo_kef_gen -n master.ph5 > ../../metadata/offset_t.kef
keftoph5 -n master -k ../../metadata/offset_t.kef
cd ../
mkdir response_table_n_i
cd response_table_n_i
pwd
initialize_ph5 -n master.ph5
metadatatoph5 -n master.ph5 -f ../../response_table_n_i/station_response.xml --force
mstoph5 -n master.ph5 -d ../../response_table_n_i/miniseed/ --force
keftoph5 -n master.ph5 -k ../../metadata/experiment.kef
time_kef_gen -n master.ph5 -o ../../metadata/time.kef
keftoph5 -n master.ph5 -k ../../metadata/time.kef
keftoph5 -n master -k ../../metadata/event_t.kef
sort_kef_gen -n master.ph5 -a > ../../metadata/sort_t.kef
keftoph5 -n master -k ../../metadata/sort_t.kef
geo_kef_gen -n master.ph5 > ../../metadata/offset_t.kef
keftoph5 -n master -k ../../metadata/offset_t.kef
nuke_table -n master.ph5 --all_arrays
keftoph5 -n master.ph5 -k ../../response_table_n_i/Response_ni_all_arrays.kef
cd ../
mkdir sampleratemultiplier0
cd sampleratemultiplier0
mkdir array_das # both tables have sample_rate_multiplier_i=0
mkdir das # das table sample_rate_multiplier_i=0
cd array_das
initialize_ph5 -n master.ph5
keftoph5 -n master.ph5 -k ../../../metadata/experiment.kef
segdtoph5 -n master.ph5 -r ../../../segd/fairfield/1111.0.0.fcnt
cp master.ph5 ../das/
echo "y" | delete_table -n master.ph5 -D 1X1111 --trunc
keftoph5 -n master.ph5 -k ../../../metadata/Das_t_1X1111.0.0_SRM0.kef
echo "y" | delete_table -n master.ph5 -A 1
keftoph5 -n master.ph5 -k ../../../metadata/Array_t_001_SMR0.kef
cp mini* ../das/
echo "Finished creating test PH5"