miniseed2db [-T tolerance] [-v] miniseed|dir [msd2|dir2 ...] db
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.
% ./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*
dbsteimu(1)
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.