mergeTraces: Merge multiple traces into a single trace

Description Usage Arguments Details Value Author(s) Examples

Description

The mergeTraces method of Stream objects returns a new Stream where all Traces have been merged into a single Trace. Gaps between traces are replaced with values determined by the fillMethod parameter.

Usage

1
mergeTraces(x, fillMethod)

Arguments

x

Stream object

fillMethod

method to use when filling gaps between Traces (default="fillNA")

Details

Available values for fillMethod include:

Value

A new Stream object containing a single Trace is returned.

Author(s)

Jonathan Callahan jonathan@mazamascience.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# Open a connection to IRIS DMC webservices
iris <- new("IrisClient")

starttime <- as.POSIXct("2002-04-20", tz="GMT")
endtime <- as.POSIXct("2002-04-21", tz="GMT")
st4 <- getDataselect(iris,"US","OXF","","BHZ",starttime,endtime)
stm4 <- mergeTraces(st4)

# plot merged trace
plot(stm4@traces[[1]])
mtext(paste(length(st4@traces),"traces"), side=3, line=0.5, adj=0.05, cex=1.5)      

## End(Not run)

IRISSeismic documentation built on Oct. 7, 2021, 9:10 a.m.