time0Cor | R Documentation |
time0Cor
shift the traces vertically such that they start at
time zero (time zero of the data can be modified with the function).
New traces are interpolated.
## S4 method for signature 'GPR'
time0Cor(
x,
t0 = NULL,
method = c("pchip", "linear", "nearest", "spline", "cubic", "none"),
crop = TRUE,
keep = 0,
track = TRUE
)
x |
[ |
t0 |
[ |
method |
[ |
crop |
[ |
keep |
[ |
This function is a wrapper for the following commands
ts <- -t0 + keep
(or if t0
is NULL
,
ts <- -time0(x) + keep
)
x <- traceShift( x, ts, method = method, crop = crop)
time0(x) <- time0(x) + ts
Modified slots
data
: trace shifted. The number of rows of data may
be smaller if crop = TRUE
.
time0
: set to 0.
proc
: updated with function name and arguments.
[GPR class
] An object of the class GPR
firstBreak
to estimate the first wave break;
firstBreakToTime0
to convert the first wave break
into time zero.
time0
and setTime0
to set time-zero;
traceShift
to shift the traces
data(frenkeLine00)
tfb <- firstBreak(frenkeLine00)
t0 <- firstBreakToTime0(tfb, frenkeLine00, c0 = 0.299)
time0(frenkeLine00) <- t0
frenkeLine00_2 <- time0Cor(frenkeLine00, method = "pchip")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.