source: trunk/src/reporting/gmewhtmlemail/gmewhtmlemail.d @ 8019

Revision 8019, 10.3 KB checked in by kevin, 3 months ago (diff)

Added Arias Intensity and ColorPGA option

  • Property svn:executable set to *
Line 
1# gmewhtmlemail configuration file
2
3# Earthworm stuff
4 MyModuleId     MOD_GMEWHTMLEMAIL          # Module ID
5 InRing         HYPO_RING
6 HeartbeatInt   30                   # Heartbeat interval in seconds
7 LogFile        1                    # If 0. don't write logfile; if 1. do
8                                     # if 2. write module log but not stderr/stdout
9 Debug          0
10 DebugEmail     0               # echo the email command used if set to 1
11
12# Get messages from
13 GetLogo  INST_WILDCARD  MOD_WILDCARD # TYPE_HYP2000ARC
14
15#DataCenter         between quotes (optional and is used in the table header)
16# DataCenter  "My data Center"
17
18
19#CenterPoint 45.0 -121.0  # OPTIONAL lat and lon for EmailRecipientWithMinMagAndDist
20
21# ShortHeader - OPTIONAL flag to compress the header table and leave less whitespace
22#
23
24#
25# DontShowMd - Optional feature to remove Md from the report.
26#
27# DontUseMd - Optional feature to not use Md  for email decisions for any EmailRecipientWithMinMag args
28#
29# UseML - OPTIONAL feature to turn on TYPE_MAGNITUDE (localmag) use
30# UseMW - OPTIONAL feature to turn on TYPE_MAGNITUDE and detect MW  magnitude messages
31#
32# MagWaitSeconds - OPTIONAL wait this long before releasing an
33#                  email that may not have an ML or MW, default 5 seconds
34 
35# Note that hyp2000arc messages can be very large if the number of stations
36# is high.
37 MaxMessageSize   16384
38
39# site_file - MANDATORY station file. This corresponds to the station file in
40#             hypoinverse-compatible format, as used by hyp2000. It is used to
41#             know which waveforms are to be search from the waveservers and
42#             also to plot the stations in the static google map.
43 site_file    memphis2.hinv
44                         
45# RAD_file - MANDATORY file defining the (R)egions, (A)reas and (D)ams the module
46#       will report on.  This supersedes the files that were identified w/ the now
47#       unrecognized commands dam_file and full_dam_file, holding new information
48#       in a new format.
49
50RAD_file        /path/to/file/USBR_sites_2016.csv
51
52# conversions_file - file gain factors used by EWAVE to convert from displaying
53#                                       max value in 'counts' to acceleration in units of cm/s/s
54conversions_file station_conversions.txt
55
56# OnlyAllowThresholdsFromNetwork - optional filter to only monitor the PGA values
57#               of a particular network
58OnlyAllowThresholdsFromNetwork RE
59
60# HTMLFile - MANDATORY base name for the html file of this event. The actual 
61#            filename will be <HTMLFile>_<event id>.html
62#            This configuration allows creating a folder with html files for the
63#            detected seismic events.
64 HTMLFile        temp/emailfile
65
66#SPfilter   
67SPfilter
68
69
70# a new option is to produce GMT data
71#GMTmap   
72
73
74# the next four (4) settings govern what GMT format to use
75#Two map projections for GMT map: Mercator or Albers. Note: Mercator is the default projection
76#Mercator       
77#Albers
78
79#Cities         used when GMTmap is enable
80#Cities /home/earthworm/run/params/cities.txt
81
82#StationNames  used when GMTmap is enable
83#StationNames
84
85#MapLegend     Used when GMTmap is enable
86#MapLegend /home/earthworm/run/params/ewhtmlemail.legend
87 
88
89
90# KML - output (option)
91#   SYNTAX for KML OPTION:
92#       KML dir preamble_file
93# dir is where kml file is written
94# preamble_file is where kml preamblefile is read in from, must be the one from the src distro
95
96 
97# EmailProgram - Optional email program. It is imperative that the email program
98#                is capable of handling html email. ewhtmlemail has been created
99#                specifically for sendmail. If this option is commented out, the
100#                module assumes that emails are not to be sent and will not
101#                include the mime header in the html file. In this sense, this
102#                module becomes an event-to-html converter.
103 EmailProgram    /usr/sbin/sendmail
104
105# UseBlat - Optional to say that the EmailProgram is blat type, which takes
106#      syntax "blat.exe file -to recipient"
107#   make sure EmailProgram has the absolute path to blat.exe if it is not
108#   in your path, but set the EmailProgram entry regardless
109
110# BlatOptions "-server localhost:1099 -profile gmailsmtp"  - Optional if you need to use stunnel or something for gmail smtp
111#           Note this is not even used if you do not have UseBlat configured in the .d file
112
113#UseUTC - Optional to set the time at UTC in the html email messages (localtime zone of PC is default)
114 
115# SubjectPrefix - Optional to set the prefix of the subject to customize the email. Defaults to EWalert if this is not set.
116
117# ShowDetail - Optional to show a lot more event information in detail, errh, errz, gap, rms etc....
118
119# List of email recipients
120 EmailRecipient test@mail.com
121
122# StaticMapType - optional, can be the maptype for the google static map.
123#               could be: terrain, satellite, or roadmap
124#               Default: hybrid (satellite+roads)
125 
126 
127# StyleFile - Optional style file for the generated html file. Some items have
128#             specific ids and classes that allows some customization through a
129#             css file. Please consult the example ewhtmlemail.css file for the
130#             ids and class names.
131 StyleFile       ewhtmlemail.css
132
133
134# PathToEventEmail - Directory to which event:email-address mappings are written
135#                    Files are written here with the filename corresponding to an NEIC eventID
136#                    Email addresses which this event has been disseminated to are stored 1 per line
137
138PathToEventEmail /tmp
139
140
141 #######################
142 # Waveserver Settings #
143 #######################
144 MAX_SAMPLES   100000    # Maximum number of samples to extract from any given
145                         #    station of the waveserver.
146                         #    Default: 60000
147
148 WSTimeout          5    # Waveserver timeout in seconds
149
150# List of waveservers aaa.bbb.ccc.ddd:portno
151 WaveServer 192.168.0.1:16022
152 WaveServer 192.168.0.2:16022
153 
154 
155 # TimeMargin - Optional parameter to set the time margin for downloading
156 #              waveforms from the waveservers in seconds.
157 #              Default: 10.0
158 TimeMargin     10.0
159 
160
161 # MaxDuration - is the maximum duration of the trace from origin_time - TimeMargin to endtime+ TimeMargin
162 # if trace is longer than this in length, then endtime is set to  origin_time - TimeMargin + MaxDuration
163 MaxDuration    60.0   # defaults to 144 seconds, new feature
164
165 # EWAVE: a RESTful plotting service, optional (instead of Google Trace API or GIF)
166 # Uncomment the following parameters to use it
167 EwaveAddr   127.0.0.1
168 EwavePort       5000
169
170#  UseGIF
171 
172 #TraceWidth   1200             # Sets width of traces (Default 600)
173 #TraceHeight   200             # Sets height of traces (Default 60)
174 # Note that changing width or height is limited to 300 000 points for google charts
175 # In addition, the css file should be changed accordingly to avoid resizing
176 
177
178# NoWaveformPlots    # this is an OPTIONAL setting to turn off the google static plots of waveforms; On if not set.
179                         
180
181# set one letter below: Note quality from hypoinverse is A,B,C,D where A is best, like in grade school!
182# MinQuality D          # optional configuration that sets the letter of the minimum hypo quality to send emails
183                        # this filter is ONLY for email sending. All .html and .kml (if selected) will be created
184                         
185
186MinPGA    3.0   # OPTIONAL configuration that sets value of the minimum PGA to send emails     
187                # Note that this overrides any other thresholds in the sending process!
188                # This filter is ONLY for email sending. All .html and .kml (if selected) will be created
189                # units of this option are in cm/s/s
190
191UseRegionName           # OPTION: use flynn-enghdal region names in the table at the top of the email
192
193
194# MaxStationDist: Maximum distance (in km) from the origin for a station to be included in the email
195#                   Default is 100km
196MaxStationDist  200
197
198# MaxFacilityDist: Maximum distance (in km) from the origin for a facility to be included in the email
199#                   Default is 100km
200MaxFacilityDist  400
201
202# db_path:  Absolute path to db file populated by ark2arc
203
204db_path     /home/earthworm/run/params/pdl2ew.db
205
206ShowMiles       # OPTION: display distances in miles as well as km
207
208IgnoreArcOlderThanSeconds   3500000     # OPTION
209
210# IgnoreOlderThanHours: Option to not send email for events older than this many hours old
211IgnoreOlderThanHours 2400
212
213# IgnorePGABelow: Ignore stations w/ PGA below this value (default is 0.01) - units cm/s/s
214# IgnorePGABelow 0.1
215
216
217# EmailDelay  60  # OPTION: seconds to wait until after ARC or trigger until email is sent; defaults to 30
218
219# PlotAllSCNLs: OPTION: if absent, only plot SCNL w/ maximum PGA for each SNL
220
221# This is the developer key needed to use MapQuest's map-generating service
222# If specified, MapQuest will be used instead of Google
223MapQuestKey     xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
224
225# ShowRegionAndArea: Option to show USBoR Facility Region & Area information
226ShowRegionAndArea
227
228# MapQuestKey: OPTION: Developer key to used MapQuest for generating maps (use Google if not present)
229MapQuestKey fJGsNA2wtXlsvZmdIAOlUGJRKpLgc7ue
230
231# ShowRegionAndArea: Option to show USBoR Facility Region & Area information
232ShowRegionAndArea
233
234# IgnoreOlderThanHours: Option to not send email for events older than this many hours old
235IgnoreOlderThanHours 24
236
237# EarthquakeDisclaimer: Optional path to a file to be appended to earthquake emails sent out
238EarthquakeDisclaimer    /path/to/earthquake/disclaimer/file
239
240# TriggerDisclaimer: Optional path to a file to be appended to trigger emails sent out
241TriggerDisclaimer       /path/to/earthquake/disclaimer/file
242
243# The full path to the Python executable used to execute utc2localtime.py
244PathToPython    /usr/bin/python
245
246# The path to utc2localtime.py
247PathToLocaltime ${EW_HOME}/earthworm/bin/utc2localtime.py
248
249# Name pretty much says it; arg is path to folder containing estimator
250ReportEstimatedPGAs      /path/to/GmpeGmm/folder
251
252# Path to Subscription info (generated by web app)
253SubscriptionPath    /path/to/subscriptions.txt
254
255# Options to control size of email generated
256# MaxFacilitiesOnMap   10     # default is 25
257# MaxFacilitiesInTable 100    # default is no limit
258
259# DontHiliteMax     # Option to night highlight maxima
260
261# list of PGA(%g) threshold values and colors (name or #FFFFFF) in decreasing order
262ColorPGA 25 red
263ColorPGA 10 orange
264ColorPGA 5 yellow
265ColorPGA 3 green
266ColorPGA 1 darkgreen
267ColorPGA 0.1 lightgreen
268ColorPGA 0.01 blue
Note: See TracBrowser for help on using the repository browser.