Learn R Programming

RSEIS (version 4.2-4)

WINGH: Window a GH structure and extract data

Description

Window a time slice of seismic data and extract from a GH structure.

Usage

WINGH(GH, sel = 1, WIN = c(0,1) )

Value

New GH structure.

Arguments

GH

RSEIS seismic list

sel

Select which traces to extract

WIN

Time window to extract (seconds from the beginning of the first trace.)

Author

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

Details

Preserves the data structure of the GH list. The purpose of this function is to extract a small subset of data from a larger data set (or longer time series) for subsequent processing.

See Also

swig

Examples

Run this code

if(interactive()){
data(GH)

swig(GH, sel=which(GH$COMPS=="V" ))


jh = WINGH(GH, sel = which(GH$COMPS=="V" ), WIN = c(3.821281, 12.861820) )

swig(jh)
## compare with:
swig(GH, sel=which(GH$COMPS=="V" ), WIN = c(3.821281, 12.861820))



}

Run the code above in your browser using DataLab