NAME
finalize_db - build descriptor file, clean db, and dbverify
SYNOPSIS
finalize_db [-d] [-n] [-t] [-p pf] db1 [ db2 db3 ... ]
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
finalize_db creates a descriptor file, cleans up the database, and runs dbverify.
The this program is used to build a consistent archive of monthly or yearly databases.
Cleanup functions in
finalize_db include:
-
dbcrunch
-
remove del arrivals
-
fix $db.arrival snr < 0
-
sort arrival and origin table by time
-
dbfix ids for orid, arid, evid, magid
-
dbfixchanids
-
set calib, calper, segtype
OPTIONS
-
-v
verbose
-
-d
only create descriptor file
-
-t
only tidy up db, do not make descriptor file
-
-p parameter_file
Name of parameter file to use. $PFPATH is searched to find parameter file.
The default parameter file is finalize_db.
ENVIRONMENT
needs to have sourced $ANTELOPE/setup.csh.
PARAMETER FILE
-
dbidserver
Name of idserver to be written into descriptor file for output database to use.
-
dbpath
dbpath to be written into descriptor file for output database to use.
-
dblocks
dblocking type for database
EXAMPLE PARAMETER FILE
dbpath ../dbmaster/{nw} # default dbpath
dbidserver localhost: # default dbidserver
dblocks local # default dblocks
RETURN VALUES
0 if successful, 1 if not.
SEE ALSO
dbcrunch(1)
dbfixids(1)
dbfixchanids(1)
dbsort(1)
dbverify(1)
BUGS AND CAVEATS
none
AUTHOR
Frank Vernon
Antelope User Group Contributed Software