TopoInterp: Topography Interpolation

Description Usage Arguments Examples

View source: R/tephra3D.R

Description

Interpolates elevation at point (x, y) given Digital Elevation Model (DEM).

Usage

1
TopoInterp(x, y, TOPO = NULL, N = 10)

Arguments

x

Easting of point to interpolate [same units as TOPO$x, TOPO$y]

y

Northing of point to interpolate [same units as TOPO$x, TOPO$y]

TOPO

DEM: list containing vectors x and y and matrix z with dimensions (length(x), length(y))

N

Smoothing parameter, must be positive. Larger N means less smoothing.

Examples

1
2
3
data(VILL)
contour(VILL, xlim = c(-500, 500), ylim = c(-500, 500))
TopoInterp(0, 0, VILL) # interpolate elevation at point (0, 0)

Example output

Warning message:
In data(VILL) : data setVILLnot found
[1] 2829.609

rTephra documentation built on May 2, 2019, 1:30 p.m.

Related to TopoInterp in rTephra...