NAME
sta_final_prep - reformats Baler 14 miniseed data into sta-chan files in CSS 3.0 database
SYNOPSIS
sta_final_prep [-v] [-V] [-n]
[-p pf] [-m mail_to]
sta [sta_1 sta_2 ...]
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
sta_final_prep is designed to take raw miniseed data and reorganize the miniseed blocketts
into station-channel-day files for BH and LH seismic data. All other SOH (state-of-health)
channels as well as VH and UH seismic data are written into station-channel-year files.
In either case, the content of the original miniseed blocketts is unaltered.
sta_final_prep creates an output directory
archivebase/sta. In this directory a
sta
database is created complete with gap, netperf, chanperf tables. Checks are made to make sure
that all net-sta-channel names exist in the dbmaster and that the deployment table times are
correct. All channels named
wfclean are removed.
The assumptions of the program are that:
-
the station data for station sta are kept in a directory balerdirbase/sta
-
the original BH and LH data are kept in a subdirectory bhdata_dir
-
the original VH, UH, and SOH data are kept in a subdirectory sohdata_dir
-
miniseed file names follow the regular expression "C.*.bms.*"
OPTIONS
-
-v
Verbose
-
-V
Extremely verbose. Used for debugging purposes only.
-
-n
Test mode. Does not execute trexcerpt commands.
-
-p parameter_file
Name of parameter file to use. $PFPATH is searched to find parameter file.
The default parameter file is sta_final_prep.
-
-m mail_to
Email address list to send results. Multiple email addresses should be comma delimited without
white space.
ENVIRONMENT
Needs to have sourced $ANTELOPE/setup.csh.
PARAMETER FILE
-
balerdirbase
Absolute path name for input directory containing station directories with raw baler miniseed data
-
balerprocbase
Absolute path name for directory containing processed station directories with raw baler miniseed data
-
archivebase
Absolute path name for output directory containing station directories with station database
-
bhdata_dir
Subdirectory name for BH and LH data
-
sohdata_dir
Subdirectory name for VH, UH, and SOH data
-
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
-
wfclean
Pattern search wf files, STA is generic for all stations
-
prob_mail
Email addresses to send notification of problems
EXAMPLE PARAMETER FILE
balerdirbase /Volumes/TA_Final_Data/station_aof_dumps # absolute path name for station miniseed base name
archivebase /Volumes/TA_Final_Data/station_final # absolute path name for station baler archive name
bhdata_dir BVLAOU # subdirectory name for BH and LH data
sohdata_dir VLAOU # subdirectory name for VH, UH, and SOH data
dbpath /anf/TA/dbs/dbmaster/{usarray}:/anf/TA/dbs/dbops/{usarray} # default dbpath
dbidserver anfanalyst.ucsd.edu:2499 # default dbidserver
dblocks nfs # default dblocks
wfclean chan=~/HH.|HL.|HG.|HN.|LL.*|LTW|VCE|VCQ|VFP|VTW/ # remove these wfdisc rows
prob_mail flvernon@ucsd.edu # email addresses to send notification of problems
RETURN VALUES
0 if successful, 1 if not.
SEE ALSO
miniseed2days(1)
miniseed2db(1)
rt_daily_return(1)
rtmail(1)
BUGS AND CAVEATS
AUTHOR
Frank Vernon
Antelope User Group Contributed Software