The gapsMetric() function calculates metrics associated with gaps and overlaps in a seismic signal,
st consists of more than one
This function uses the output of the
getGaps method of
to calculate the following metrics:
number of gaps found in
legnth of maximum gap (sec) found in
number of overlaps found in
legnth of maximum overlap (sec) found in
percentage of total requested time for which a signal is available
requestedEndtime slots for the
Stream are used to determine
gaps before the start of the first or after the end of the last
Trace in the
A list of
SingleValueMetric objects is returned.
seismic package for documentation on
Stream objects and the
Jonathan Callahan email@example.com
## Not run: # Open a connection to IRIS DMC webservices iris <- new("IrisClient") # Get the waveform starttime <- as.POSIXct("2012-01-24", tz="GMT") endtime <- as.POSIXct("2012-01-25", tz="GMT") st <- getDataselect(iris,"AK","PIN","","BHZ",starttime,endtime) # Calculate the gaps metrics and show the results metricList <- gapsMetric(st) dummy <- lapply(metricList, show) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.