FetchSyn usage » History » Version 7

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

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