NAME
update_data_availability - update data availability rates
SYNOPSIS
update_data_availability [-v] [-l] [-f] [-d startdate]
wfdb[.table] dbout
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
The program checks the
wfdisc table for gaps and saves daily data return rates in a database.
The program is by far not as smart as rtoutage, but somewhat faster. Alternatively, the input can be read from the wftar or wftape tables.
OPTIONS
-
-v
verbose flag
-
-d startdate
start date. By default, the program starts 2 days before now.
-
-l
include yesterday's values. By default, data from 2 days ago are inspected.
-
-f
force updating of already existing entries. This argument is useful, especially after previous runs with the -l option.
-
wfdb[.table]
Name of database table with waveforms (i.e. tables wfdisc, wftar or wftape). This argument is required. If no table is specified, the wfdisc table is used.
-
dbout
Name of the output database. This argument is required.
EXAMPLE
The program can be run from rtexec's crontab as in the example below every night at 5 am:
update_data_availability UTC 0 5 * * * update_data_availability -f -v $DB $DBINFO
force update of data availabilities from the table wftar using all available data
dbsubset rtdb.wftar "sta=~/STA/" | update_data_availability -f -v - dbinfo 1/1/1980
BUGS AND CAVEATS
The program makes no attempts to verify the entries in the input (wfdisc|wftar|wftape)
table.
SEE ALSO
antelope(1), rtoutage(1),
data_availability(1)
AUTHOR
Nikolaus Horn, 2003
ZAMG / Vienna, Nikolaus.Horn@zamg.ac.at
Antelope User Group Contributed Software