if (FALSE) {
# Open a connection to IRIS DMC webservices
iris <- new("IrisClient")
# Get the same signal, shifted by 3 seconds
starttime <- as.POSIXct("2013-11-12 07:09:45",tz="GMT")
endtime <- starttime + 600
st1 <- getSNCL(iris,"NM.SLM.00.BHZ",starttime,endtime)
st2 <- getSNCL(iris,"NM.SLM.00.BHZ",starttime+3,endtime+3)
# Cross-correlate
crossCorrelationMetric(st1,st2)
}
Run the code above in your browser using DataLab