1 | |
---|
2 | Quick Guide to SH |
---|
3 | ================= |
---|
4 | |
---|
5 | ! version 2, 4-Nov-98 |
---|
6 | |
---|
7 | |
---|
8 | General Remarks |
---|
9 | --------------- |
---|
10 | |
---|
11 | - command line interpreter is not case-sensitive |
---|
12 | - command line consists of command-verb, parameters and qualifiers |
---|
13 | - separation characters are blanks " " or semicolons ";" |
---|
14 | - qualifiers are preceded by a slash. |
---|
15 | - delete scratch files in directory '$SH_SCRATCH' from time to time |
---|
16 | |
---|
17 | |
---|
18 | |
---|
19 | Trace Addressing |
---|
20 | ---------------- |
---|
21 | |
---|
22 | Traces are numbered from bottom upward. A list of traces is specified |
---|
23 | by a list of trace numbers separated by comma or hypen. Examples: |
---|
24 | DEL 3 ! deletes 3rd trace |
---|
25 | DEL 1,4 ! deletes 1st and 4th trace |
---|
26 | DEL 1-3 ! deletes first 3 traces |
---|
27 | DEL 1-3,7-9 ! deletes traces 1,2,3,7,8,9 |
---|
28 | DEL ALL ! deletes all traces |
---|
29 | |
---|
30 | |
---|
31 | |
---|
32 | Some Commands |
---|
33 | ------------- |
---|
34 | |
---|
35 | |
---|
36 | > basic commands ------------------------------------------------------------ |
---|
37 | |
---|
38 | |
---|
39 | - start SH from C-shell |
---|
40 | SH |
---|
41 | |
---|
42 | - open graphics window |
---|
43 | XOPEN;; on X-Window system |
---|
44 | |
---|
45 | - exiting from SH |
---|
46 | QUIT |
---|
47 | |
---|
48 | - help |
---|
49 | HELP directory of (almost all) available commands |
---|
50 | HELP/KEY directory with brief description |
---|
51 | HELP/CALL directory with calling syntax |
---|
52 | HELP <cmd> more detailed help on command <cmd>, example: HELP HELP |
---|
53 | |
---|
54 | - read commands for waveform data |
---|
55 | READ reads from q-files (SH private format) |
---|
56 | READS reads from Mini-SEED files (only Steim1 data records) |
---|
57 | READGSE reads GSE1 or GSE2 files |
---|
58 | READAH reads AH file (if implemented) |
---|
59 | READA read ASCII file |
---|
60 | |
---|
61 | - redraw display |
---|
62 | RD redraws display |
---|
63 | NR disables automatic redrawing (re-enable with RD) |
---|
64 | |
---|
65 | - set & delete time windows |
---|
66 | STW set time window |
---|
67 | DTW delete time window |
---|
68 | |
---|
69 | - pick time position on traces |
---|
70 | TIME gives absolute and relative time, also difference |
---|
71 | time to last pick, exit with "E"-key |
---|
72 | |
---|
73 | - delete traces |
---|
74 | DEL <list> deletes all traces of <list> |
---|
75 | |
---|
76 | - shift traces |
---|
77 | SHIFT <list> <time> shift all traces in <list> by <time> seconds |
---|
78 | SHIFT ALL TIME_AL shift traces according to their position in absolute time |
---|
79 | TRESET sets time-origin to zero for all traces |
---|
80 | |
---|
81 | |
---|
82 | - trace amplitudes |
---|
83 | NORM AF default setting. Traces are normalized to the maximum value |
---|
84 | of all traces on the display |
---|
85 | NORM SF all traces are displayed with the same amplitude |
---|
86 | ZOOM <list> <f> all traces in <list> are amplified by a factor of <f> |
---|
87 | this is independent from the NORM command |
---|
88 | - hardcopy |
---|
89 | HC creates PostScript file and sends it to laser printer |
---|
90 | print command can be changed with CHANGE_PRN |
---|
91 | default print command is: "lpr -Plw %s" |
---|
92 | %s is replaced by the actual filename |
---|
93 | TITLE <n> <t> puts a title line on the display |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | > filtering commands ------------------------------------------------------------ |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | - filtering traces (FFT filters) |
---|
102 | FILI F <filter> read in filter file (contains poles and zeroes) |
---|
103 | FILTER F <list> filters list of traces |
---|
104 | |
---|
105 | - filtering traces (recursive filters) |
---|
106 | FILI R <filter> read in filter file (contains poles and zeroes) |
---|
107 | FILTER R <list> filters list of traces |
---|
108 | |
---|
109 | |
---|
110 | |
---|
111 | > 3-component commands ------------------------------------------------------ |
---|
112 | |
---|
113 | |
---|
114 | |
---|
115 | - particle motion diagrams |
---|
116 | PMSTART <wdwsize> opens separate window of size <wdwsize> x <wdwsize> cm. |
---|
117 | PM/MWDW <list> <wd> particle motion diagrams of N pairs of traces given by |
---|
118 | 2N elements in <list>. <wd> is width of time window. |
---|
119 | PM3 <wd> abbreviation of PM/MWDW 2,1,3,2,3,1 <wd> |
---|
120 | if 3 traces are on the display, same for 6 and 9 traces |
---|
121 | PMEND closes PM window |
---|
122 | Before using the PM command, set an appropriate time window |
---|
123 | with the STW command. |
---|
124 | |
---|
125 | - find azimuth & angle of incidence |
---|
126 | MDIR <list> * computes angles according to selected time window. <list> must |
---|
127 | have 2 or 3 elements |
---|
128 | |
---|
129 | - trace rotation |
---|
130 | ROT3 <list> <a> <i> 3-dim rotation of traces by azimuth <a> and angle of |
---|
131 | incidence <i>. <list> must have 3 elements (Z,N,E). |
---|
132 | ROTAZ <list> <a> 2-dim azimuth rotation. <list> must have 2 elements (N,E). |
---|
133 | ROTINCI <list> <i> 2-dim incidence rotation. <list> must have 2 elements (Z,R). |
---|
134 | |
---|
135 | |
---|
136 | |
---|
137 | > array features ------------------------------------------------------------ |
---|
138 | |
---|
139 | |
---|
140 | |
---|
141 | - location of events |
---|
142 | LOCATE computes azimuth and slowness for picked phase |
---|
143 | exit with "E"-key |
---|
144 | Traces MUST have the correct position in time !!! |
---|
145 | ensure with the two commands: |
---|
146 | SET ALL T-ORIGIN 0. (or 'TRESET') |
---|
147 | SHIFT ALL TIME_AL |
---|
148 | |
---|
149 | - beaming of traces |
---|
150 | BEAM <list> <a> <s> shifts traces to align a phase coming from an azimuth of <a> |
---|
151 | and a slowness of <s>. |
---|
152 | Traces MUST have the correct position in time !!! (see above) |
---|
153 | |
---|
154 | - summing of traces |
---|
155 | SUM <list> sums all traces specified in <list> |
---|
156 | |
---|
157 | |
---|
158 | |
---|
159 | > other --------------------------------------------------------------------- |
---|
160 | |
---|
161 | |
---|
162 | |
---|
163 | - utilities |
---|
164 | DEMEAN <list> removes mean value |
---|
165 | TREND <list> removes linear trend |
---|
166 | DESPIKE <list> <f> removes spikes |
---|
167 | MEND ... replaces several consecutive samples by interpolation |
---|
168 | RESAMPLE <list> <dt> resamples traces |
---|
169 | CUT <list> <lo> <hi> cuts traces at the specified time bounds |
---|
170 | SYSTEM access to UNIX shell |
---|
171 | MARK <trc> <time> marks trace (marks can be labelled, see HELP MARK) |
---|
172 | |
---|
173 | |
---|
174 | |
---|