setupDB {RSEIS} | R Documentation |
Set up a data base storing the location and times for a set of seismic data.
setupDB(DB, token = TRUE, split = "\\.")
DB |
|
token |
logical, use tokens in the file names of the fn's to extract station and component names for selection. default=TRUE |
split |
character string to split if using token, default is a period. |
If token is FALSE, then the station name and component are selected using substr, i.e. by column number.
DB with epoch time and station information appended,
t1 |
epoch start time |
t2 |
expoch end time = t1+nsamps*sample rate n seconds |
sta |
station |
comp |
component |
Program attaches station identification used for grepping.
Jonathan M. Lees<jonathan.lees@unc.edu>
EPOCHday, T12.pix, Mine.seis
## Not run: ### location of data base file datadir1 = '/home/lees/Site/Santiaguito/SG09' d1 = 'segyDB' #### scan in the data base file DB = scan(file=paste(sep="/", datadir1, d1), list(fn="", yr=0, jd=0, hr=0, mi=0, sec=0, dur=0)) #### interactively fix the DB list DB = setupDB(DB) ## End(Not run)