Learn R Programming

RSEIS (version 4.2-4)

rseis2segy: 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)

Value

Side effects in file system

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.

Author

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

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.

See Also

write1segy, write1sac, read1sac, read1segy, sac2rseis, segy2rseis

Examples

Run this code


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)


Run the code above in your browser using DataLab