# The working copy of this file should live in the EW_PARAMS directory!!!

#                       earthworm.d

#              Earthworm administrative setup:
#              Installation-specific info on
#                    shared memory rings
#                    module ids
#                    message types

#   Please read all comments before making changes to this file.
#   The character string <-> numerical value mapping for certain
#   module id's and message types are sacred to earthworm.d
#   and must not be changed!!!

#--------------------------------------------------------------------------
#                      Shared Memory Ring Keys
#
# Define unique keys for shared memory regions (transport rings).
# All string/value mappings for shared memory keys may be locally altered.
#--------------------------------------------------------------------------
     
 Ring   WAVE_RING        1000    # public waveform data
 Ring   PICK_RING        1005    # public parametric data
 Ring   HYPO_RING        1015    # public hypocenters etc.
 Ring   BINDER_RING      1020    # private buffer for binder
 Ring   EQALARM_EW_RING  1025    # private buffer for eqalam_ew
 Ring   DRINK_RING       1030    # DST drink messages
 Ring   AD_RING          1035    # A/D waveform ring
 Ring   CUBIC_RING       1036    # private buffer for cubic_msg


#--------------------------------------------------------------------------
#                           Module IDs
#
#  Define all module name/module id pairs for this installation
#  Except for MOD_WILDCARD, all string/value mappings for module ids
#  may be locally altered. The character strings themselves may also
#  be changed to be more meaningful for your installation.
#
#  0-255 are the only valid module ids.
#--------------------------------------------------------------------------

 Module   MOD_WILDCARD        0   # Sacred wildcard value - DO NOT CHANGE!!!
 Module   MOD_ADSEND_A        1
 Module   MOD_ADSEND_B        2
 Module   MOD_ADSEND_C        3
 Module   MOD_PICKER_A        4
 Module   MOD_PICKER_B        5
 Module   MOD_PICK_EW         6
 Module   MOD_COAXTORING_A    7
 Module   MOD_COAXTORING_B    8
 Module   MOD_RINGTOCOAX      9
 Module   MOD_BINDER         10
 Module   MOD_DISKMGR        11
 Module   MOD_PKUNPACK       12
 Module   MOD_STATMGR        14
 Module   MOD_REPORT         15
 Module   MOD_PICK_CLIENT    16
 Module   MOD_PICK_SERVER    17
 Module   MOD_STARTSTOP      18
 Module   MOD_STATUS         19
 Module   MOD_NANOBOX        20
 Module   MOD_WAVESERVER     21
 Module   MOD_WAVECLIENT     22
 Module   MOD_PAGERFEEDER    23
 Module   MOD_EQPROC         24
 Module   MOD_TANKPLAYER     25
 Module   MOD_EQALARM_EW     26
 Module   MOD_EQPRELIM       27
 Module   MOD_IMPORT_GENERIC 28
 Module   MOD_EXPORT_GENERIC 29
 Module   MOD_REPORT_B       30
 Module   MOD_GETDST         31
 Module   MOD_LPTRIG_A       32
 Module   MOD_LPTRIG_B       33
 Module   MOD_TRG_ASSOC      34
 Module   MOD_AD_DEMUX_A     35
 Module   MOD_AD_DEMUX_B     36
 Module   MOD_VDL_EW         37
 Module   MOD_CUBIC_MSG      38
 Module   MOD_GAPLIST        39
 Module   MOD_GETTERW        40
 Module   MOD_WAVESERVERIV   41
 Module   MOD_NANO2TRACE     42
 Module   MOD_GETDST2        43
 Module   MOD_EXPORT_SCN     44
 Module   MOD_ARC2TRIG       45
 Module   MOD_DBREPORT       46
 Module   MOD_DBTRACE_SAVE   47
 Module   MOD_RCV_EW         48



#--------------------------------------------------------------------------
#                          Message Types
#
#  Define all message name/message-type pairs for this installation.
#  Valid numbers are:
#
#   0- 99 are reserved by "Earthworm Central" to label types of messages
#         which may be exchanged between installations. These string/value
#         mappings must be global to all Earthworm systems.
#
# 100-255 are controlled by each Earthworm installation. These values 
#         should be used to label messages which remain internal to 
#         an Earthworm system or installation. The character strings 
#         themselves should not be changed because the strings
#         are often hard-coded into the modules. However, the 
#         string/value mappings can be locally altered.     
#--------------------------------------------------------------------------

# Global (Sacred) Earthworm message-type mappings:
 Message  TYPE_WILDCARD        0  # Sacred wildcard value - DO NOT CHANGE!!!   
 Message  TYPE_ADBUF           1  # multiplexed waveforms from DOS adsend
 Message  TYPE_ERROR           2  # error message
 Message  TYPE_HEARTBEAT       3  # heartbeat message
 Message  TYPE_NANOBUF         5  # single-channel waveforms from nanometrics
 Message  TYPE_PICK2          12  # P-wave arrival time from picker & pick_ew
 Message  TYPE_CODA2          13  # coda info from picker & pick_ew
 Message  TYPE_HINVARC        17  # hypoinverse event archive msg from 
                                  #   eqproc/eqprelim
 Message  TYPE_H71SUM         18  # hypo71-format summary msg from
                                  #   eqproc/eqprelim
 Message  TYPE_TRACEBUF       20  # single-channel waveforms from NT adsend, 
                                  #   getdst2, nano2trace, rcv_ew, import_ida...
 Message  TYPE_LPTRIG         21  # single-channel long-period trigger from 
                                  #   lptrig & evanstrig
 Message  TYPE_CUBIC          22  # cubic-format summary msg from cubic_msg
 Message  TYPE_CARLSTATRIG    23  # single-channel trigger from carlstatrig
 Message  TYPE_TRIGLIST       24  # trigger-list msg (used by tracesave modules)
                                  #   from arc2trig, trg_assoc, carlsubtrig?
 Message  TYPE_TRACE_COMP_UA  26  # compressed waveforms from compress_UA

# Installation-specific message-type mappings:
 Message  TYPE_SPECTRA       100
 Message  TYPE_PICK          101
 Message  TYPE_CODA          102
 Message  TYPE_QUAKE         103
 Message  TYPE_LINK          104
 Message  TYPE_PAGE          105
 Message  TYPE_EVENT1        106
 Message  TYPE_KILL          107
 Message  TYPE_EVENT2        108
 Message  TYPE_DSTDRINK      109
 Message  TYPE_RESTART       110
 Message  TYPE_REQSTATUS     111
 Message  TYPE_STATUS        112