read_sac {eseis} | R Documentation |
Read sac files.
Description
This function reads sac files.
Usage
read_sac(
file,
append = TRUE,
signal = TRUE,
time = TRUE,
meta = TRUE,
header = TRUE,
eseis = TRUE,
get_instrumentdata = FALSE,
endianness = "little",
biglong = FALSE,
type = "waveform"
)
Arguments
file |
|
append |
|
signal |
|
time |
|
meta |
|
header |
|
eseis |
|
get_instrumentdata |
|
endianness |
|
biglong |
|
type |
|
Details
The function reads one or more sac-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.
The sac data format is
implemented as descibed on the IRIS website
(https://ds.iris.edu/files/sac-manual/manual/file_format.html).
Value
List
object, optionally of class eseis
.
Author(s)
Michael Dietze
Examples
## Not run:
## read one file
file1 <- "~/Data/sac/EXMP01.14.213.01.00.00.BHE.SAC"
sac1 <- read_sac(file = file1)
## read two (or more files) without meta and header parts
file2 <- c("~/Data/sac/EXMP01.14.213.01.00.00.BHE.SAC",
"~/Data/sac/EXMP01.14.213.02.00.00.BHE.SAC")
sac2 <- read_sac(file = file2,
meta = FALSE,
header = FALSE,
eseis = FALSE)
## End(Not run)