##### get a time series
data(KH)
amp = KH$JSTR[[1]]
OLDdt = KH$dt[1]
#### downsample to:
newdt = 0.1
JK = FAKEDATA(amp, OLDdt=OLDdt, newdt = 0.1, yr = 2000,
JD = 4, mi = 12, sec = 0, Ntraces = 3,
seed=200, noise.est=c(1, 100) , verbose=TRUE )
op <- par(no.readonly = TRUE)
par(mfrow=c(length(JK), 1) )
for(i in 1:length(JK) )
{
DATTIM = paste(c(unlist(JK[[i]]$DATTIM), JK[[i]]$N), collapse=' ')
plotGH( JK[[i]] )
mtext(DATTIM, side=3, at=JK[[i]]$DATTIM$t2/2)
}
par(op)
Run the code above in your browser using DataLab