FetchSyn usage » History » Version 5

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

1 1 Alexander Hutko
h1. FetchSyn usage
2 1 Alexander Hutko
3 5 Alexander Hutko
Download here:  "FetchSyn":https://seiscode.iris.washington.edu/projects/ws-fetch-scripts/files
4 5 Alexander Hutko
5 1 Alexander Hutko
{{toc}}
6 1 Alexander Hutko
7 1 Alexander Hutko
h2. Executing the scripts
8 1 Alexander Hutko
9 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:
10 1 Alexander Hutko
11 1 Alexander Hutko
<pre>
12 1 Alexander Hutko
$ python FetchSyn
13 1 Alexander Hutko
</pre>
14 1 Alexander Hutko
15 2 Alexander Hutko
h2. Help menu to list parameters
16 1 Alexander Hutko
17 1 Alexander Hutko
To access the help menu, which lists all input parameters:
18 1 Alexander Hutko
19 1 Alexander Hutko
<pre>
20 1 Alexander Hutko
$ FetchSyn --u
21 1 Alexander Hutko
</pre>
22 1 Alexander Hutko
23 1 Alexander Hutko
h2. Examples
24 1 Alexander Hutko
25 2 Alexander Hutko
To generate a synthetic for IU.ANMO for the Tohoku earthquake using it's GCMT origin and moment tensor:
26 1 Alexander Hutko
27 1 Alexander Hutko
<pre>
28 1 Alexander Hutko
$ FetchSyn.py --N IU --S ANMO --evid GCMT:M201103110546A
29 2 Alexander Hutko
</pre>
30 2 Alexander Hutko
31 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:
32 2 Alexander Hutko
33 2 Alexander Hutko
<pre>
34 2 Alexander Hutko
$ FetchSyn.py --N IU --S ANMO,KIP --C ZRT --evid GCMT:M201103110546A --sdepm 35000
35 2 Alexander Hutko
</pre>
36 2 Alexander Hutko
37 2 Alexander Hutko
38 2 Alexander Hutko
Same request, but:
39 2 Alexander Hutko
*include all stations in the virtual network _GSN
40 2 Alexander Hutko
*use a different model
41 2 Alexander Hutko
*change the sample rate to 0.05 sps
42 2 Alexander Hutko
*make the output miniseed rather than saczip
43 2 Alexander Hutko
*return velocity not the default (displacement)
44 2 Alexander Hutko
*cut the traces to 10 seconds before P
45 2 Alexander Hutko
*make traces 300 seconds in duration
46 2 Alexander Hutko
47 2 Alexander Hutko
<pre>
48 4 Alexander Hutko
$ FetchSyn --N _GSN --model prem_a_20s --dt 0.05 --format mseed --units velocity --start P-10 --end 300 --C ZRT --evid GCMT:M201103110546A --sdepm 35000
49 2 Alexander Hutko
</pre>
50 1 Alexander Hutko
51 4 Alexander Hutko
h3. Using a file with a list of receivers
52 1 Alexander Hutko
53 4 Alexander Hutko
Example using a text file with receiver names.  Each line of the receiver file is an example of valid formatting.  The networkcode, stationcode, locationcode in the later lines is optional.
54 4 Alexander Hutko
55 4 Alexander Hutko
recfile.txt
56 1 Alexander Hutko
<pre>
57 4 Alexander Hutko
IU ANMO 
58 4 Alexander Hutko
II *
59 4 Alexander Hutko
-89 -179
60 4 Alexander Hutko
-89 -178 S0002
61 4 Alexander Hutko
-89 -177 N2 S0003 L2
62 1 Alexander Hutko
</pre>
63 2 Alexander Hutko
64 4 Alexander Hutko
Manually input the origin using a double couple source (strike,dip,rake[,optional_scalar_moment_in_NM])
65 2 Alexander Hutko
66 2 Alexander Hutko
<pre>
67 4 Alexander Hutko
$ FetchSyn --recfile rec.txt --origin 2011,03,11,05,46,24 --slat 38.3 --slon 142.3 --sdepm 24400 --dc 203,10,88,5.3e22 --C Z
68 1 Alexander Hutko
</pre>