interpTrace: Interpolate (vertically) trace at regular interval or given...

interpTraceR Documentation

Interpolate (vertically) trace at regular interval or given position

Description

Interpolate every trace at regular interval or at given positions

Usage

## S4 method for signature 'GPR'
interpTrace(
  x,
  z,
  method = c("pchip", "linear", "nearest", "spline", "cubic"),
  crop = TRUE,
  track = TRUE
)

Arguments

x

[GPR class] An object of the class GPR

z

[numeric] Either an interval (e.g., time interval) to interpolate the traces at regular interval or a vector of m elements (m is equal to the number of traces) Amount of time (or depth, depending on the trace unit) to shift the traces. ts is eiter a single value (all the traces are shifted by the same amount ts) or a vector with m elements (m is equal to the number of traces).

method

[character(1)] Interpolation method to be applied (one of pchip linear, nearest, spline, cubic, none, see also interp1). "none" means that the trace is shifted by the amount of trace samples the closest to ts without interpolation.

crop

[logical(1)] If TRUE (default), remove the rows containing only zero's (no data).

Details

Modified slots

  • data: trace interpolated The number of rows of data may be smaller if crop = TRUE.

  • dz: new value depending on argument z.

  • depth: adapted to codez.

  • proc: updated with function name and arguments.

Value

[GPR class] An object of the class GPR.


emanuelhuber/RGPR documentation built on May 13, 2024, 9:31 p.m.