Earthworm Program: 
ew2mseed (version May-15-2003) Overview

(last revised May 15, 2003)

ew2mseed  is a non interactive automatic Earthworm WaveServerV client for archiving continuous nov-overlapping time-ordered waveforms in MiniSEED format.  Like any  Earthworm program, it has a configuration file ew2mseed.d allowing for extensive configuration. This is where we tell it, among other things, which waveservers to interrogate, where and in which format to store the trace output.
 

ew2mseed client provides the following capabilities:

Runtime operation

When started, ew2mseed searches the structure NET/STA/ in the directory  defined by the configuration parameter MseedDir  for the filenames in the format STN.NET.LOC.CHAN.YEAR.JDAY, where julian day is always represented by 3 digits. If the file for a specific SCNL does not exist, this file is created by ew2mseed. The date extension of this file (YEAR.JDAY) is set either to
(1a) the date defined by the beginning of the earthworm tank file (in case the parameter StartTime is omitted in ew2mseed.d or StartTime is older than the
beginning of the tank);
    or
(1b) If the StartTime is younger than the beginning of the  tank,  the filename date extension (YEAR and JDAY) is set to the date of StartTime.

Data collection starts in case (1a) from the beginning of the tank and in case (1b) from the time marked by StartTime parameter.

If at the invocation of ew2mseed, at least a single file containing MiniSEED records in the correct format do exist in the directory for the particular SCNL, ew2mseed compares three parameters ((1) most recent date and time in the most recent data file; (b) time of StartTime parameter; and (c) the beginning time in the Earthworm tank). The program uses the most recent time among (a), (b), and (c) as the starting time for data retrieval.

ew2mseed will
(2a) create a new file STN.NET.LOC.CHAN.YEAR1.JDAY1 for  data beginning at YEAR1 JDAY1  if such file does not exist;
or
(2b) will use the existing file if the file in the with YEAR1 and JDAY1 exist is for the this STN.NET.LOC.CHAN.

The considerations for  a complex design described above are the following:
(a) ew2mseed is intended to grab as much data points from the WaveServer  as possible in an automatic mode.
(b) It is assumes that if the data for the particular date are written into the file of it's directory structure, the data for  all previous days have are also processed if ew2mseed operates constantly.

The obvious flip side of such an approach is that as long as the file STN.NET.LOC.CHAN.YEAR1.JDAY1 exists in the directory structure with at least a single
valid MiniSEED block, there is no way to force ew2mseed to get data before YEAR1 JDAY1 and before time defined by the latest MiniSEED block.

The following is also true: removing the files from the specific directory for the particular SCNL followed by a  restart of ew2mseed would create a situation defined as
cases (1a) and (1b) above: ew2mseed might start extracting data which have already been received.
 

Unavailable SCNLs :

When ew2mseed is started, it attempts to receive a small portion of data for each SCNLs. If for some reason even a single snippet for a particular SCNL is not available, ew2mseed removes this SCNL from the processing ring and documents this channel in the regular LOG file and also writes SCNL parameters into the LOCK file. Therefore, a LOCK file for a particular ew2mseed process contains an information about the unavailable SCNLs during the lifetime of this ew2mseed process. If the LOCK file is not used, ew2mseed writes an information about unavailable SCNLs into the stderr channel.
 

Features and limitations of ew2mseed:

Using ew2mseed with multiple WaveServers:


EarthWorm Module Index | ew2mseed configuration



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