TopoInterp {rTephra} | R Documentation |
Topography Interpolation
Description
Interpolates elevation at point (x, y) given Digital Elevation Model (DEM).
Usage
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
data(VILL)
contour(VILL, xlim = c(-500, 500), ylim = c(-500, 500))
TopoInterp(0, 0, VILL) # interpolate elevation at point (0, 0)
[Package rTephra version 0.1 Index]