if (FALSE) {
# Open a connection to IRIS DMC webservices
iris <- new("IrisClient")
starttime <- as.POSIXct("2012-01-24", tz="GMT")
endtime <- as.POSIXct("2012-01-25", tz="GMT")
# Get the waveform
st <- getDataselect(iris,"AK","PIN","","BHZ",starttime,endtime)
# Save the gap analysis in a variable
gapInfo <- getGaps(st)
# See what information is availble
names(gapInfo)
# Look at a histogram of data dropouts
hist(gapInfo$nsamples, breaks=50,
main="Data Gaps in AK.PIN..BHZ Jan 24, 2012",
xlab="number of missing samples per gap")
}
Run the code above in your browser using DataLab