read_mseed | R Documentation |
This function reads mseed files. If append = TRUE
, all
files will be appended to the first one in the order as they are provided.
In the append-case the function returns a either a list with the elements
signal
, time
, meta
and header
or a list of the
class eseis
(see documentation of
aux_initiateeseis()
). If append = FALSE
and more than one file
is provided, the function returns a list of the length of the input files,
each containing the above elements.
read_mseed(
file,
append = TRUE,
signal = TRUE,
time = TRUE,
meta = TRUE,
header = TRUE,
eseis = TRUE,
type = "waveform"
)
file |
|
append |
|
signal |
|
time |
|
meta |
|
header |
|
eseis |
|
type |
|
The mseed data format is read based on C code that was part of the now
CRAN-archived package IRISSeismic
v. 1.6.6
(https://cran.r-project.org/src/contrib/Archive/IRISSeismic/). The C code
and wrapper are a simplified version of the material from IRISSeismic
written by Jonathan Callahan. A future version of read_mseed
may
use a further simplified version, restricting the header information to
the pure information, required by eseis to build its meta information.
List
object, optionally of class eseis
Michael Dietze
## Not run:
## read mseed file with default options
x <- read_mseed(file = "input.miniseed")
## read mseed file, only signal trace, not as eseis object
x <- read_mseed(file = "input.miniseed",
time = FALSE,
meta = FALSE,
header = FALSE,
eseis = FALSE)
## read more than one mseed files and append traces
x <- read_mseed(file = c("input_1.miniseed", "input_2.miniseed"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.