FetchSyn usage » History » Version 2

Alexander Hutko, 12/09/2015 06:46 PM

1 1 Alexander Hutko
h1. FetchSyn usage
2 1 Alexander Hutko
3 1 Alexander Hutko
{{toc}}
4 1 Alexander Hutko
5 1 Alexander Hutko
h2. Executing the scripts
6 1 Alexander Hutko
7 1 Alexander Hutko
After downloading the scripts they can be executed from the command line either by explicitly invoking python or by making the scripts executable and installing the path to python in the first line.  To explicitly invoke python to execute a script type the following:
8 1 Alexander Hutko
9 1 Alexander Hutko
<pre>
10 1 Alexander Hutko
$ python FetchSyn
11 1 Alexander Hutko
</pre>
12 1 Alexander Hutko
13 2 Alexander Hutko
h2. Help menu to list parameters
14 1 Alexander Hutko
15 1 Alexander Hutko
To access the help menu, which lists all input parameters:
16 1 Alexander Hutko
17 1 Alexander Hutko
<pre>
18 1 Alexander Hutko
$ FetchSyn --u
19 1 Alexander Hutko
</pre>
20 1 Alexander Hutko
21 1 Alexander Hutko
h2. Examples
22 1 Alexander Hutko
23 2 Alexander Hutko
To generate a synthetic for IU.ANMO for the Tohoku earthquake using it's GCMT origin and moment tensor:
24 1 Alexander Hutko
25 1 Alexander Hutko
<pre>
26 1 Alexander Hutko
$ FetchSyn.py --N IU --S ANMO --evid GCMT:M201103110546A
27 2 Alexander Hutko
</pre>
28 2 Alexander Hutko
29 2 Alexander Hutko
Same request, but add station KIP and make the source depth 35km and return the vertical (Z), radial (R) and transverse (T) components rather than the default ZNE components:
30 2 Alexander Hutko
31 2 Alexander Hutko
<pre>
32 2 Alexander Hutko
$ FetchSyn.py --N IU --S ANMO,KIP --C ZRT --evid GCMT:M201103110546A --sdepm 35000
33 2 Alexander Hutko
</pre>
34 2 Alexander Hutko
35 2 Alexander Hutko
36 2 Alexander Hutko
Same request, but:
37 2 Alexander Hutko
*include all stations in the virtual network _GSN
38 2 Alexander Hutko
*use a different model
39 2 Alexander Hutko
*change the sample rate to 0.05 sps
40 2 Alexander Hutko
*make the output miniseed rather than saczip
41 2 Alexander Hutko
*return velocity not the default (displacement)
42 2 Alexander Hutko
*cut the traces to 10 seconds before P
43 2 Alexander Hutko
*make traces 300 seconds in duration
44 2 Alexander Hutko
45 2 Alexander Hutko
<pre>
46 2 Alexander Hutko
$ FetchSyn.py --N _GSN --evid GCMT:M201103110546A --model prem_a_20s --dt 0.05 --label TOHOKU --format mseed --C ZRT --units velocity --start P-10 --end 300
47 2 Alexander Hutko
</pre>
48 2 Alexander Hutko
49 2 Alexander Hutko
50 2 Alexander Hutko
<pre>
51 2 Alexander Hutko
$ 
52 2 Alexander Hutko
</pre>
53 2 Alexander Hutko
54 2 Alexander Hutko
55 2 Alexander Hutko
<pre>
56 2 Alexander Hutko
$ 
57 1 Alexander Hutko
</pre>