ew2mseed Configuration File

(last revised May, 2003)

1. EXAMPLE CONFIGURATION FILE

# Sample configuration file for ew2mseed
# Version 0.8
# I.Dricker  (i.dricker@isti.com)   15-May-2003
#New field: StartLatency (15-May-2003)
#New field: PriorityHighWater (02-Apr-2002)
#New Field: LoopsBeforeService (02-Apr-2002)
# New field: SocketReconnect (14-Mar-2001)
# Note that the parameters are case sensitive 

# This defines the root directory where ew2mseed writes MiniSEED files
MseedDir ../mseed
# Verbosity has five levels 
# 1 - minimal number of messages (default if verbosity omitted in configuration)
# 2 - more verbose
# 3 even more verbose
# 4 high level of verbosity
# 5 same as 4 plus addidng debug messages from ws_clienII.c WaveServer debug messages
Verbosity 1
# LogFile defines where to create log files
 #1 to log to disk; 
 #0 to turn off disk logging; 
 #2 to disable logging to stdout and stderr.
 

LogFile 2
# Optional : LockFile:
# If not specified, no locking mechanism is provided
# If a valid LockFile is defined, ew2mseed is prevented from
# running multiple copies over a single ew2mseed.d
 
LockFile ./ew2mseed.lock
# SCNLocSz - List SCNs, location IDs, logical MSEED record size
#       and compression algorithm to save in MiniSEED format.
#
# Note that record size must be a power of 2!!!
#
# NONE for the location code means that location code is non defined.
# It will be replaced by two spaces in the binary MiniSEED header.
# Compression algorithm: STEIM1 or STEIM2
#

#SCNLocSz BOSA BHZ GT cc  4096  STEIM1
SCNLocSz  BMN BHZ LB NONE  512 STEIM2
SCNLocSz  BLA BHZ US bb  2048 STEIM1
SCNLocSz FLET EHZ LD NONE  1024 STEIM2
#SCNLocSz CHIP EHZ LD aa  4096 STEIM2
#SCNLocSz ARNY EHZ LD bb  4096 STEIM1
#SCNLocSz PAL  EHE LD aa 4096 STEIM1
#
# OPTIONAL - specify StartTime. We are not interested in data before 
# this point. If this is not specified, ew2mseed will attempt to get all data 
# available in the tank. 
# 
# The format is mandatory and is yyyymnddhhmmss.00
# where
#        yyyy [4 chars] - year
#        mn [2 chars] - month
#        dd [2 chars] - day of month
#        hh [2 chars] - hour of day
#        mm [2 chars] - minutes
#        ss [2 chars] - secs
#        00 [2 chars] - usecs
# THERE MUST be 17 symbols totally !
#
StartTime 20001119000000.00

 
# Setup for WaveServers we'll interrogate:
# list of IP addresses/names and ports of the  WaveServers we're to use
# Multiple servers are OK!
WaveServer 136.177.31.188 16022
WaveServer the.other.one.gov 16023
# We'll wait at most this long for the WaveServers 
# to respond to wsGertTraceBin() request.
TravelTimeout  20
# SocketReconnect defines how often (in seconds) 
# ew2mseed reconnects to the socket of WaveServerV. 
# the default value is 3600 s. It is safe to increase this number
# if the link to the WaveServer is reliable.
# NOTE: parameter introduced 03/14/2001
SocketReconnect  3000
# OPTIONAL - RecordsNumber is a  number of MiniSEED records we are attempting to extract
# in a single wsGetTraceBin() operation from the WaveServer. 
# Retrieval of more data from the server can result is faster throughput.
# Keep in mind that there is a relation
# between the number of records, the size of a records and the allocated
# memory buffer, so  RecordsNumber * Record Size * 4 is approximately equivalent 
# to the size of memory buffer in bytes.
# Make sure that you computer has enough memory to handle the request.
# Larger values of RecordsNumber also require an increase of TravelTimeout parameter.
# Default value for RecordsNumber is 1.
RecordsNumber 5
#The next two fields are used for configuring a catch-up algorithm introduced in versions
#after April 2, 2002 (see http://mail.terra-bytes.org/ew2mseed/ew2mseed_cmd.html for detail)
#The first parameter is the maximum priority which can be assigned to the late channel (5 is default)
#The second parameters is the number of full loops over all channels before we enter the function
#which reassigns priorities depending on the channels' latencies. This number depends on the
#product of number of channels in ew2mseed configuration and the parameter "RecordNumber".
#We recommned to set the LoopsBeforeService parameter so that the Priority assignment function
#was hit every 30-60 minutes.

PriorityHighWater 6
LoopsBeforeService 20

#StartLatency parameter in hours is used to superseed StartTime parameter.
#The starttime is computed as the current time minus StartLatency and the
#resultanant number is used to compute StartTime. Either StartTime or StartLatency
#must be present in the configuration file.  If both of them are present,
#the program will use the parameter which is below
#than the other one in the configuration file.
StartLatency 24

#
#       End of configuration


EarthWorm Module Index | ew2mseed overview



Contact:
Questions? Issues? Subscribe to the Earthworm Google Groups List.