Learn R Programming

RSEIS (version 3.3-3)

rseis2sac: Dump RSEIS list to SAC format

Description

Write a set of SAC format files from an RSEIS list of time series.

Usage

rseis2sac(GH, sel = 1, win = c(0, 1), dir = ".", BIGLONG=FALSE)

Arguments

GH
RSEIS list
sel
integer, index to select traces in RSEIS-list
win
vector, start and end times to dump out (not active)
dir
character, path to destination directory
BIGLONG
whether to use LONG=short when dumping

Value

  • Side effects, creates files.

Details

Dumps out each trace individually as a SAC file in the destination directory. This is useful for sharing data with researchers who refuse to see the value of R. For the inverse operation (reading in SAC files from disk, use the RSEIS code, JSAC.seis.

References

see : http://www.iris.edu/software/sac/manual/file_format.html

See Also

write1sac, JSAC.seis

Examples

Run this code
data(GH)
rseis2sac(GH )

Run the code above in your browser using DataLab