• Antelope Release 5.5 Mac OS X 10.8.5 2015-04-21

 

NAME

db2sac, db2ah - conversion routine for css information

SYNOPSIS

db2sac [-i] [-sc sta-cha] [-ts start-time] [-te end-time]
          [-w wf_dir] [-gap {none | zero | interp}]
          [-counts]         input_db output_db

db2ah [-sc sta-cha] [-ts start-time] [-te end-time]
          [-w wf_dir] [-gap {none | zero | interp}]
          [-counts]         input_db output_db

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

db2sac and db2ah are conversion utilities which convert CSS format waveform files into SAC or AH format, and also create a new CSS wfdisc table incorporating these files. Note that this new CSS wfdisc table is consistent with all the other tables in original database, and programs which use a CSS database should continue to run.

The newly created AH files are architecture independent xdr ah files.

Each CSS database can create a number of SAC/AH files. These files are named using the following convention:


YYYYJJJHHMMSS.SS.STN.CHAN

Where the fields have the following meanings:

YYYY Year
JJJ Julian Day
HH Hour
MM Minute
SS.SSSS Seconds.Fractional-Seconds
STN Station
CHAN Channel

OPTIONS

EXAMPLE


% db2ah -sc CHM:HHZ -ts 1/20/92 -te 1/30/92 knet.1992.jan-apr ah
Translating...
Writing: 1992028045438.50.CHM.HHZ
Writing CHM, HHZ,  6200 samples, starting 1992 028 04:54:38:5000 UT
Translating...
Writing: 1992029060349.50.CHM.HHZ
Writing CHM, HHZ,  6200 samples, starting 1992 029 06:03:49:5000 UT
Translating...
Writing: 1992029075333.00.CHM.HHZ
Writing CHM, HHZ,  6600 samples, starting 1992 029 07:53:33:0000 UT
Translating...
Writing: 1992029080238.50.CHM.HHZ
Writing CHM, HHZ, 13450 samples, starting 1992 029 08:02:38:5000 UT
Translating...
Writing: 1992029081530.00.CHM.HHZ
Writing CHM, HHZ,  6400 samples, starting 1992 029 08:15:30:0000 UT
Translating...
Writing: 1992029082145.50.CHM.HHZ
Writing CHM, HHZ,  5300 samples, starting 1992 029 08:21:45:5000 UT
% ls ah*
ah.wfdisc

ah:
1992028045438.50.CHM.HHZ        1992029080238.50.CHM.HHZ
1992029060349.50.CHM.HHZ        1992029081530.00.CHM.HHZ
1992029075333.00.CHM.HHZ        1992029082145.50.CHM.HHZ

% db2sac  -sc "AAK:*" demo sac
Translating...
Writing AAK, BHZ,  2249 samples (BINARY), starting 1992 138 21:55:10:2500 UT
Translating...
Writing AAK, BHN,  2249 samples (BINARY), starting 1992 138 21:55:10:2500 UT
Translating...
Writing AAK, BHE,  2249 samples (BINARY), starting 1992 138 21:55:10:2500 UT

% ls sac*
sac.wfdisc

sac:
1992138215510.25.AAK.BHE   1992138215510.25.AAK.BHN   1992138215510.25.AAK.BHZ

SEE ALSO

sac2db(1)

BUGS AND CAVEATS

When specifying a time range, you must specify a beginning and ending time, not a date. For instance, the time range from 11/26/91 to 11/26/91 is actually the time from midnight 11/26 to midnight 11/26, a total period of zero seconds, not, as you might think, the entire day of November 26, 1991.

AUTHOR

Eric Winkelman
Daniel Quinlan


Antelope User Group Contributed Software
Printer icon