powered by
Interpolates elevation at point (x, y) given Digital Elevation Model (DEM).
TopoInterp(x, y, TOPO = NULL, N = 10)
Easting of point to interpolate [same units as TOPO$x, TOPO$y]
Northing of point to interpolate [same units as TOPO$x, TOPO$y]
DEM: list containing vectors x and y and matrix z with dimensions (length(x), length(y))
Smoothing parameter, must be positive. Larger N means less smoothing.
# NOT RUN { data(VILL) contour(VILL, xlim = c(-500, 500), ylim = c(-500, 500)) TopoInterp(0, 0, VILL) # interpolate elevation at point (0, 0) # }
Run the code above in your browser using DataLab