# NOT RUN {
# }
# NOT RUN {
library(RSEIS)
data(GH)
data(wu_coso.vel)
vel = wu_coso.vel
gpf = GH$pickfile
w1 = which(gpf$STAS$phase=="P" | gpf$STAS$phase=="S" )
N = length(w1)
Ldat = list(
name = gpf$STAS$name[w1],
sec = gpf$STAS$sec[w1],
phase = gpf$STAS$phase[w1],
lat=gpf$STAS$lat[w1],
lon = gpf$STAS$lon[w1],
z = gpf$STAS$z[w1],
err= gpf$STAS$err[w1],
yr = rep(gpf$LOC$yr , times=N),
jd = rep(gpf$LOC$jd, times=N),
mo = rep(gpf$LOC$mo, times=N),
dom = rep(gpf$LOC$dom, times=N),
hr =rep( gpf$LOC$hr, times=N),
mi = rep(gpf$LOC$mi, times=N) )
EQ = GH$pickfile$LOC
EQ$t = EQ$sec
kuality = eqwrapup(Ldat, EQ, vel, distwt = 20, verbose = TRUE )
names(kuality)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab