NAME

miniseed2db - create wfdisc table from miniseed files

SYNOPSIS

miniseed2db [-T tolerance] [-v] miniseed|dir [msd2|dir2 ...]
                db

DESCRIPTION

miniseed2db reads input seed or miniseed files and creates wfdisc records which reference those files in the output database db. If an argument is a directory, then all files below that directory are examined.

To create wfdisc records, miniseed2db must usually piece together multiple miniseed data blocks for each single wfdisc record. It normally requires that the time tag on each miniseed block match the time computed using the wfdisc record time, nsamp and sample rate to within 1/2 a sample time period. However, this can be relaxed or tightened with the -T option.

OPTIONS

EXAMPLE


% ./miniseed2db Data/C20070310000000_0126.* db
Data/C20070310000000_0126.ACE      5.546 Mbytes
Data/C20070310000000_0126.EDH   1726.075 Mbytes
Data/C20070310000000_0126.EL1   1031.856 Mbytes
Data/C20070310000000_0126.EL2   1083.798 Mbytes
miniseed2db: Can't map file Data/C20070310000000_0126.ELZ
        Cannot allocate memory
miniseed2db: Can't mmap Data/C20070310000000_0126.ELZ
Data/C20070310000000_0126.LCE      9.560 Mbytes
Data/C20070310000000_0126.LCQ      9.556 Mbytes
Data/C20070310000000_0126.LDH     15.503 Mbytes
Data/C20070310000000_0126.LL1      9.605 Mbytes
Data/C20070310000000_0126.LL2      9.597 Mbytes
Data/C20070310000000_0126.LLZ     11.039 Mbytes
Data/C20070310000000_0126.LOG      8.118 Mbytes
Data/C20070310000000_0126.OCF      4.751 Mbytes
Data/C20070310000000_0126.VCO      0.991 Mbytes
Data/C20070310000000_0126.VEA      0.991 Mbytes
Data/C20070310000000_0126.VEC      1.061 Mbytes
Data/C20070310000000_0126.VEP      0.991 Mbytes
Data/C20070310000000_0126.VFP      0.999 Mbytes
Data/C20070310000000_0126.VKI      0.991 Mbytes
2704 new wfdisc records
% ls -l Data/*ELZ
-rwxr--r--  1 jac users 1679413248 Sep  3 09:50 Data/C20070310000000_0126.ELZ*

SEE ALSO

msdd(1)

BUGS AND CAVEATS

miniseed2db depends on memory mapping the miniseed files (as does the trace library ultimately). If these files are too large, the memory mapping may fail, and the output wfdisc file will be incomplete.

miniseed2db counts the number of wfdisc records created by checking the number of wfdisc records at the start and the end; however, if some other process is writing to the wfdisc table, this number will be wrong.

AUTHOR

Daniel Quinlan

Table of Contents
Antelope Release 4.11 SunOS 5.10 2010-01-13
Boulder Real Time Technologies, Inc For more information, contact support@brtt.com