• Antelope Release 5.5 Linux 2.6.32-220.el6.x86_64 2015-04-21

 

NAME

recover_cdorb2db_wfdisc - create wfdisc table from s4 files written by cdorb2db

SYNOPSIS

recover_cdorb2db_wfdisc {-d dirs | -f files } [-v] newdb

SUPPORT


Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.

FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.

DESCRIPTION

recover_cdorb2db_wfdisc collects a listing of s4 files written by cdorb2db(1) and creates wfdisc records which reference those files in the output database newdb. If -d is used, then all files below that directory are examined. Files are expected to follow the cdorb2db naming convention which is: YYYY/JJJ/STA.CHAN.YYYY.JJJ.00.00.00=.

To create the wfdisc records, recover_cdorb2db_wfdisc assumes that waveform files contain a single day of data and were written out using the cdorb2db program. The samprate, time and endtime fields used in the output wfdisc rows are calculated based on the assumed daylong length of the waveform files.

It is left to the user to take the newly created wfdisc and merge it into any pre-existing wfdisc. No attempt is made to run dbfixids, so caution must be use if one chooses to combine the output newdb.wfdisc with any pre-existing wfdisc.

If you are looking to convert s4 waveforms to miniseed, see the program db2msd(1).

OPTIONS

EXAMPLE


% recover_cdorb2db_wfdisc -f '2011/050/A[MN]*' recovered_wf
~/rtsystems/usarray/bin/recover_cdorb2db_wfdisc -f '2011/050/A[MN]*' recovered_wf

2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Starting program at:  3/04/2011   1:03:15.000
2011-063 01:03:15 recover_cdorb2db_wfdisc *complain*: Selected file does not end with '=' as expected.  Appending...
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/AMTX.BHE.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/AMTX.BHN.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/AMTX.BHZ.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/AMTX.LHE.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/AMTX.LHN.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/AMTX.LHZ.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/ANMO.BH1_10.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/ANMO.BH2_10.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/ANMO.BHZ_10.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/ANMO.LH1_10.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/ANMO.LH2_10.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Recovering: 2011/050/ANMO.LHZ_10.2011.050.00.00.00=
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*:      12 new wfdisc records
2011-063 01:03:15 recover_cdorb2db_wfdisc *notify*: Finished.
% ls -l recovered_wf*
-rw-rw-r--   1 rt       antelope      43 Mar  4 01:03 recovered_wf.lastid
-rw-rw-r--   1 rt       antelope    3408 Mar  4 01:03 recovered_wf.wfdisc

SEE ALSO

cdorb2db(1)
miniseed2db(1)
db2msd(1)

BUGS AND CAVEATS

Output files are assumed to be from cdorb2db and are assumed to be written out as one-day-long files.

The output database must have no pre-existing records.

No values are filled in for chanid, calib, calper, instype, or segtype. These values might be filled in if/when the output wfdisc is carefully added to a real-time database that has rtdbclean(1) run nightly.

AUTHOR

Jennifer Eakins
jeakins@ucsd.edu
ANF
University of California, San Diego

Antelope User Group Contributed Software
Printer icon