topoInterpolate {oce} | R Documentation |
Interpolate within a topography dataset
topoInterpolate(longitude, latitude, topo)
longitude |
longitude, or vector of longitudes (in the same sign
convention as used in |
latitude |
latitude, or vector of latitudes (in the same sign convention
as used in |
topo |
topography object, as e.g. loaded with |
Bilinear interpolation is used so that values will vary smoothly
within a longitude-latitude grid cell. Note that the sign convention for
longitude
and latitude
must match that in topo
.
A height (or vector of heights) giving the elevation of the earth above means sea level at the indicated location on the earth.
Dan Kelley
A topo
object may be read with read.topo
.
library(oce) data(topoWorld) # "The Gully", approx. 400m deep, connects Gulf of St Lawrence with North Atlantic topoInterpolate(45, -57, topoWorld)