interpPos: Interpolate trace positions from measurement (e.g., GPS).

interpPosR Documentation

Interpolate trace positions from measurement (e.g., GPS).

Description

Interpolate trace positions from measurement (e.g., GPS).

Usage

## S4 method for signature 'GPR'
interpPos(
  x,
  topo,
  plot = FALSE,
  r = NULL,
  tol = NULL,
  method = c("linear", "linear", "linear"),
  crs = NULL,
  ...
)

Arguments

x

An object of the class GPR.

topo

A m \times 4 numeric matrix, with m the number of recorded trace positions. The first 3 columns are the coordinates (x, y, z) and the last column the trace number (the column names can now be freely chosen).

plot

A length-one boolean vector. If TRUE some control/diagnostic plots are displayed.

r

A 'RasterLayer' object from the package 'raster' from which trace elevation z will be extracted based on the trace position (x, y) on the raster. The extracted trace elevation will overwrite the values from the third column of topo.

tol

Length-one numeric vector: if the horizontal distance between two consecutive trace positions is smaller than tol, then the traces in between as well as the second trace position are removed. If tol = NULL, tol is set equal to sqrt(.Machine$double.eps).

method

A length-three character vector defining the interpolation methods (same methods as in signal::interp1: "linear", "nearest", "pchip", "cubic", and "spline"). First element for the interpolation of the inter-trace distances, second element for the interpolation of the horizontal trace positions, and third element for the interpolation of the vertical trace positions.


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