getSNCL {IRISSeismic} | R Documentation |
Retrieve seismic data from IRIS DMC
Description
The getSNCL() method is a convenience wrapper for the getSNCL() method
and returns a Stream
object in which individual Traces
have been sorted by start time.
Usage
getSNCL(obj, sncl, starttime, endtime, ...)
Arguments
obj |
|
sncl |
character string with the SNCL code |
starttime |
POSIXct class specifying the starttime (GMT) |
endtime |
POSIXct class specifying the endtime (GMT) |
... |
optional arguments
|
Details
The SNCL argument should be ordered network-station-location channel, e.g. IU.ANMO.00.LHZ
.
This argument is split into component parts which are then used in a call to the
getSNCL() method.
Value
A new Stream
object is returned.
Author(s)
Jonathan Callahan jonathan@mazamascience.com
References
The IRIS DMC dataselect web service:
https://service.iris.edu/fdsnws/dataselect/1/
See Also
getDataselect
,
IrisClient-class
Examples
## Not run:
# Open a connection to IRIS DMC webservices
iris <- new("IrisClient")
# Use getSNCL to request data for II.JTS.00.BHZ
starttime <- as.POSIXct("2001-02-28",tz="GMT")
endtime <- as.POSIXct("2001-03-01",tz="GMT")
st <- getSNCL(iris, "II.JTS.00.BHZ",starttime, endtime, quality="M",
repository="primary",inclusiveEnd=FALSE,ignoreEpoch=TRUE)
# Display structure of trace(s)
str(st)
# Plot trace
plot(st)
## End(Not run)