FetchSyn usage » History » Version 2

« Previous - Version 2/22 (diff) - Next » - Current version
Alexander Hutko, 12/09/2015 06:46 PM

FetchSyn usage

Executing the scripts

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:

$ python FetchSyn

Help menu to list parameters

To access the help menu, which lists all input parameters:

$ FetchSyn --u


To generate a synthetic for IU.ANMO for the Tohoku earthquake using it's GCMT origin and moment tensor:

$ FetchSyn.py --N IU --S ANMO --evid GCMT:M201103110546A

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:

$ FetchSyn.py --N IU --S ANMO,KIP --C ZRT --evid GCMT:M201103110546A --sdepm 35000

Same request, but:
*include all stations in the virtual network _GSN
*use a different model
*change the sample rate to 0.05 sps
*make the output miniseed rather than saczip
*return velocity not the default (displacement)
*cut the traces to 10 seconds before P
*make traces 300 seconds in duration

$ 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