View source: R/upDownTimesMetric.R
upDownTimesMetric | R Documentation |
The upDownTimesMetric() function determines the times at which data collection starts and stops
within a seismic Stream
.
upDownTimesMetric(st, min_signal, min_gap)
st |
a |
min_signal |
minimum duration of a |
min_gap |
minimum gap in seconds (default= |
This function uses the output of the getUpDownTimes
method of Stream
objects.
A list with a single MultipleTimeValueMetric
object is returned.
See the seismic
package for documentation on Stream
objects and the getDataselect
method.
Jonathan Callahan jonathan@mazamascience.com
getUpDownTimes
## Not run:
# 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)
# Create the upDownTimesMetric, ignoring Traces < 3 minutes and gaps of < 5 minutes
metricList <- upDownTimesMetric(st, min_signal=180, min_gap=300)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.