rseis2segy: Convert RSEIS to SEGY/SAC format

View source: R/rseis2segy.R

rseis2segyR Documentation

Convert RSEIS to SEGY/SAC format

Description

Convert RSEIS to SEGY/SAC format

Usage

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

Arguments

GH

RSEIS format list

sel

select traces to convert

win

vector, t1 and t2 window each trace

path

path to directory where files are created

BIGLONG

logical, indicating whether long is 8 or 4 bytes.

Details

This is the converse of the segy2rseis routine.

Segy format files are in integer format. The time series ususally represents counts recorded in a data acquisition system. The header includes meta-data and other identifying information.

Value

Side effects in file system

Note

The Endian-ness of the output file will be the native endian-ness of the system.

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

write1segy, write1sac, read1sac, read1segy, sac2rseis, segy2rseis

Examples



data(KH)
apath = tempdir()

J = rseis2segy(KH, sel=1, path=apath, BIGLONG=FALSE )
L = list.files(path=J, full.names=TRUE)
Z = read1segy(L[1], Iendian = 1, HEADONLY = FALSE, BIGLONG = FALSE)



#    data(KH)
#    apath = tempdir()
J =  rseis2sac(KH, sel = 1, win = c(0, 1), path = apath, BIGLONG = FALSE)

L = list.files(path=J, full.names=TRUE)
Z = read1sac(L[1], Iendian = 1, HEADONLY = FALSE, BIGLONG = FALSE)



RSEIS documentation built on Sept. 13, 2024, 1:09 a.m.