source: trunk/params/localmag.d @ 6401

Revision 6401, 14.8 KB checked in by stefan, 4 years ago (diff)

updated 7.8 params

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1# Configuration file for the localmag program
2# Some of these parameters can be overridden on the command-line;
3# some of them only make sense on the command-line.
4#
5# As of 20 December, 2000, there is NO SUPPORT for Earthworm Database (EWDB)
6#
7# Required Commands:
8# The following five commands are always required by localmag.
9# Other commands below may be required when certain options are given.
10#
11# maxSta number
12# The number of stations to be used by localmag must be specified with
13# the maxSta command. This is the number of unique SNs to be used.
14# A total of 6 * maxSta channel structures will be allocated.
15# The maxSta command must come before any "Pri" commands.
16
17maxSta 100
18
19# maxDist km
20# The maximum epicenter - station distance in kilometers.
21# Stations lying outside this radius will not be used by localmag.
22#
23maxDist 600
24
25
26# maxTrace nsamples
27# The maximum number of trace data samples to process from one SCN.
28# This is the product of the trace length in seconds and the highest
29# expected sample rate. For example, 10 minutes of data at 100 samples per
30# second gives 60000 samples.
31
32maxTrace 60000
33
34
35# logA0 filename
36# The file containing the table of -logA0 values versus distance.
37# This file mist start with two commands:
38#   Dist <type>: which distance is to used to access this table.
39#        choices are: epi - station - epicenter distance
40#                     hypo - station - hypocenter distance (use event depth
41#                          but not station depth.)
42#   nDist number: the number of table entries that follow.
43#  Following these two commands are `nDist' lines of distance and -logA0
44#  values. The distance numbers must be integer values, in kilometers.
45#  The -logA0 values are positive decimal values.
46#  Entries MUST be in order of increasing distance.
47#  When this table is used to find the -logA0 value, the entry with distance
48#  nearest to the desired distance will be used. If the desired distance
49#  exceeds the largest distance in this table, then the -logA0 value for
50#  the last table entry will be returned.
51
52logA0 Richter.tab
53
54
55# staLoc: station location source
56#    Choices: File <loc-file> - get station locations from a hyp2000-format
57#                               file named loc-file
58#             EWDB - query the EW database for station locations; access info
59#                    given below.
60#             SAC - get station locations from the header of SAC files.
61#                   Can be either station lat and lon, or station-epicenter
62#                   distance in the SAC header.
63
64staLoc File hypo_sta_FWI.list
65
66
67# Regional Velocity model: must be specified as "@vel_model_file". Typically
68#    this will be the same file as used for binder_ew.
69
70#@uw_velocity.d
71 lay   0.0     3.5
72 lay   3.0     6.0
73 lay   15.0    7.00
74 lay   30.0    8.00
75
76
77
78# Speed of Sg wave; provides a good estimate of the Wood-Anderson peak arrival
79
80SgSpeed 3.98
81
82
83# Optional Commands
84#
85# eventSource: Tells localmag how and where to learn about a new event
86#    choices are: ARCH - hyp2000 archive message
87#                 SAC - SAC file header;
88#                 EWDB <eventID> - query EW database for eventID; usually
89#                            given as command-line option.
90#    default: ARCH
91 eventSource ARCH
92
93
94# traceSource: Where localmag will obtain trace data
95#    choices are: waveServer <server-list> - raw traces from wave_servers;
96#                              server-list is either a space separated list
97#                              of ip-address:port or
98#                           "File <server-file>"
99#                 SACFile - raw traces from SAC files
100#                 SACWAFile - synthetic Wood-Anderson traces from SAC files
101#                 EWDB - raw traces from EW database; access info given below
102#    default: waveServer with list of servers read from $EW_PARAMS/servers
103
104# traceSource waveServer File servers
105traceSource waveServer 195.83.190.214:16020 195.83.190.214:16021
106# traceSource SACFile
107
108
109# Add STA COMP NET
110# Del STA COMP NET
111# SCN selection is done by a selection list and a rejection list.
112# The station selection command `Add' specifies the names of
113# STA (station), COMP (component), and NET (network).
114# The wildcard `*' may be used for any or all of STA, COMP, NET.
115# COMP may be given as the first two letters of the component name,
116# to select all direction desgnators are accepted for that component.
117# If no Add commands are given, all SCNs will be selected.
118# The Del command is used to put SCNs on the rejection list:
119# for example: "Add * EL UW" followed by "Del LAB EL UW" to include
120# all ELE and ELN components from UW except LAB.ELE.UW and LAB.ELN.UW.
121# Localmag will NEVER use vertical components.
122# List as many Add and Del commands as desired, one to a line
123
124#Add FDF BH MQ 99
125#Add LAM HH MQ 99
126
127Add * * * *
128
129#Add IA2 EH MQ
130#Add FDF HH MQ
131#Add DEG EH GL
132#Add AMCL HH GL
133
134
135# respSource: Tells localmag where to get response information;
136#   may be ommitted if traceSource points to Wood-Anderson
137#    Choices: EWDB - query the EW databse for pole-zero-gain responses.
138#             SAC <pz-filename-format> - find response files in the
139#                            SAC directory given with SACsource.
140#                            filename-format is a string similar to printf
141#                            format: %S, %C, %N are replaced by station,
142#                            component and network names, respectively,
143#                            all in upper case. Similarly %s, %c, %n work
144#                            for lower-case station, component and network.
145#                            The digraph %% stands for %; all other
146#                            characters are taken literally.
147#                            The response file format is that used by SAC.
148#             File <dirname> <pz-filename-format> - find response files in
149#                            directory dirname with file names given by
150#                            pz-filename-format, as above. dirname can be
151#                            a full directory name, or relative to $EW_PARAMS.
152#
153#    default: none; you must specify one of the above choices.
154
155respSource File responses %S_%C_%N.pz
156
157
158# readAmpDirect: flag to tell localmag to read Wood-Anderson amplitudes
159#   directly from a `trace' source instead of from Wood-Anderson traces.
160#   If this flag is used, then traceSource must be one that includes
161#   amplitude data, such as SAC files, EW database.
162#
163# default: flag is not present, so localmag reads amplitudes from
164#   Wood-Anderson traces that it either synthesizes or reads from traceSource.
165
166
167# extraDelay seconds
168# number of seconds to wait after the total trace length has arrived at
169# most distant station before processing event; used only when localmag is
170# running as an Earthworm module.
171# default: extraDelay 0.0  # no extra delay added to estimated propagation time
172
173extraDelay 0.0
174
175
176# traceTimes start end
177# The start and end times for traces is set here.
178#   <start> is the number of seconds before estimated P arrival to start
179#           the trace.
180#   <end> is the number of seconds after estimated Sg arrival to end the trace.
181#   default: traceTimes 5.0 60.0 # starts trace 5 seconds before estimated P
182#           arrival and ends trace 60 seconds after estimated S arrival.
183
184traceTimes 20.0 60.0
185
186
187# searchStartPhase phase
188# The phase to use for computing the start of the peak serach window
189#    Choices: P - the first-arriving P phase from the layered velocity model
190#             S - the first-arriving S phase from the layered velocity model
191#    default: searchStartPhase S
192
193searchStartPhase S
194
195
196# searchTimes A B
197# The time window for searching for peak amplitudes is set here.
198#    <A> number of seconds before the searchStartPhase to start the
199#        search window.
200#    <B> is the  number of seconds of seconds after the constant-speed Sg
201#        arrival to end the search window
202# default: searchWindow 1.0 45.0 # Search window runs from 1 second
203#        before searchStartPhase arrival to 45 seconds after Sg arrival
204
205searchTimes 10.0 45.0
206
207
208# slideLength n
209# Set the width of of the sliding search window to n seconds.
210# default: slideLength 0.8 # sliding search window is 0.8 seconds wide
211
212slideLength 0.8
213
214
215# z2pThresh is the threshold by which the zero-to-peak maximum in the
216# search window must exceed twice the zero-to-peak maximum from the
217# pre-event portion of the trace. This test tries to ensure that the
218# zero-to-peak and peak-to-peak values are seismic and not just noise.
219# default: z2pThresh 3.0
220
221z2pThresh 2.5
222
223# meanCompMags: If present, this command causes localmag to compute a
224#    stations local magnitude by taking the mean of the local magnitudes
225#    for each of its horizontal components, Otherwise, localmag will take
226#    the average of the component amplitudes and use that to find the
227#    local magnitude for the station.
228
229
230# WoodAndersonCoefs <period> <damp> <gain>: optional command to specify the
231#   coefficients used for the Wood-Anderson instrument response. The standard
232#   parameters for the transfer function are:
233#   period: 0.8 seconds; damping 0.8 critical; gain: 2800
234#   However, testing by Uhrhammer & Collins (BSSA 1990, V80 p702-716) and
235#   others indicate better values are:
236#   period 0.8 seconds; damping 0.7 critical; gain 2080 (twenty-eighty)
237#
238# default: WoodAndersonCoefs 0.8 0.8 2800
239WoodAndersonCoefs 0.8 0.7 2080
240
241# saveTrace: whether and how to save synthetic Wood-Anderson traces
242#            If saveTrace command is absent, no traces will be saved.
243#   Choices: SAC <baseDir> <dirFormat> <filename-format> -
244#                  save W-A traces in SAC-format files.
245#                baseDir specifies a fixed directory name.
246#                dirFormat gives a formattted subdirectory name; the
247#                  format string is that used for the "date" command applied
248#                  to the event origin time, with the addition of `%i'
249#                  to indicate the event ID. Be careful with this; some
250#                  formats produce output not compatible with file names.
251#                filename-format gives the formatted file name using
252#                  % to introduce one of the format specifiers "sScCnN%"
253#                  `s' is the station name in lower case; `S' is upper case
254#                  Likewise for component and network names; `%' stands for
255#                  itself. All other characters are taken literally.
256#
257#   default: None (no Wood-Anderson traces are saved.)
258saveTrace SAC /home/ew/run_prod/SAC_WA/ %Y%m%d%H%M%i %S.%C.%N
259
260# outputFormat: how localmag reports its results; results are always logged
261#    Choices: LM - TYPE_MAGNITUDE message to earthworm transport
262#             File <filename> - write TYPE_MAGNITUDE message to the
263#                  file specified by filename. Standalone mode only.
264#             EWDB - send results to Earthworm database.
265#  default: LM if using earthworm transport; no report otherwise
266outputFormat File magnitude_MQ.output
267
268#
269# EWDBaccess user password service 
270#            How to access the Earthworm Database, if needed.
271#            Give the user name, password, and srvice needed for connection.
272# default: none
273
274
275# SACsource <SAC-directory> <filename-format>: where to find SAC files for
276#                            reading.
277#                            <SAC-directory> is a fixed directory name
278#                            <filename-format> is the format for SAC
279#                            file names.
280#                            This command or its equivalent on the command
281#                            line is required if traceSource or respSource
282#                            is SAC files.
283
284#SACsource /home/ew/run_prod/SAC_sources %S.%C
285
286
287# wsTimeout: wave_server timeout in milliseconds
288#    default: 5000 milliseconds
289
290# wsTimeout 10000
291
292
293# Earthworm Transport commands. Use these commands to make localmag
294#   run as an earthworm module to run continuously.
295#   Otherwise localmag runs as a standalone program and handles a
296#   single event per invocation.
297#
298# RingInName <ring>: specify the name of the earthworm transport ring from
299#  which to read TYPE_HYP2000ARC messages for event notification.
300
301# RingInName HYPO_RING
302
303# RingOutName <ring>: specify the name of the earthworm transport ring to
304#  which Magnitude, Heartbeat and Error messages are sent. This may be
305#  the same as RingInName if desired.
306
307# RingOutName HYPO_RING
308
309# MyModId <module-id>: specify the module ID for localmag
310# MyModId MOD_LOCALMAG_FWI
311
312# HeartBeatInterval int: How often localmag should beat its heart.
313#  Currently, localmag will not issue heartbeats while it is busy doing
314#  calculations for an event. Thus a heartbeat could be late by as much as the
315#  time it takes to do a full localmag event calculation. Be sure that
316#  statmgr will wait that long for the heartbeat.
317
318# HeartBeatInterval 30
319
320# getEventsFrom  INST_ID MOD_ID
321# Specify the installation ID and module ID names from which to get
322# hypoinverse archive messages to read event data. These names may be
323# selected from earthworm.d and earthworm_global.d Only required when
324# localmag is running as an Earthworm module. No default values.
325# Use as many of these commands as necessary.
326#
327# To support the new TYPE_LOC_GLOBAL message, without impacting previous
328# installations, if the message type is missing, it will be taken
329# to be HYP2000ARC.  To process the global messages, the type
330# must be included on the line.
331#
332
333#getEventsFrom INST_WILDCARD MOD_WILDCARD
334#getEventsFrom INST_WILDCARD MOD_WILDCARD TYPE_LOC_GLOBAL
335
336
337eventXML 0        # Output shakemap style event information to XML file in sac dir
338                  # which can be specified in the saveTrace optional command.
339                  # Note this can only work if you choose SAC file output at this time.
340                  # This feature contributed by INGV.
341
342# saveXMLdir /home/ew/run_prod/eventXML  # If set, will be used in lieu of the sac output dir
343                                 # for the shakemap event XML output file. If set, also
344                                 # turns on the saving of these files (i.e. eventXML
345                                 # flag is ignored)....
346
347LogFile 0         # 1 -> Keep log, 0 -> no log file
348                  # 2 -> log to module log but not to stderr/stdout
349                  # default: LogFile 1
350
351
352# Debug N
353# There are several different debug features, listed below.
354# You can give one Debug command for each feature you want to turn on,
355# or you can add together the values of desired features and give
356# one Debug command.
357# value   feature
358#     1   trace and search times and P and S arrival estimates
359#     2   SCN selection tests
360#     4   distance and LogA0 values
361#     8   SAC file selection (only if traceSource is SAC)
362#    16   ws_client debugging
363#    32   poles. zeros and gain values
364#    64   trial frequency response functions to STDOUT
365#   128   full frequency response function to STDOUT
366#   256   input and output trace date including in padded area
367Debug 4
368
369# SCN Parameters: normally this command will be given as "@scn_param_file"
370# to cause the separate file "scn_param_file" to be processed.
Note: See TracBrowser for help on using the repository browser.