topoInterpolate: Interpolate Within a Topo Object

Description Usage Arguments Value Author(s) See Also Examples

Description

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.

Usage

1
topoInterpolate(longitude, latitude, topo)

Arguments

longitude

Vector of longitudes (in the same sign convention as used in topo).

latitude

Vector of latitudes (in the same sign convention as used in topo).

topo

A topo object, i.e. inheriting from topo-class.

Value

Vector of heights giving the elevation of the earth above means sea level at the indicated location on the earth.

Author(s)

Dan Kelley

See Also

Other things related to topo data: [[,topo-method, [[<-,topo-method, as.topo, download.topo, plot,topo-method, read.topo, subset,topo-method, summary,topo-method, topo-class, topoWorld

Examples

1
2
3
4
library(oce)
data(topoWorld)
# "The Gully", approx. 400m deep, connects Gulf of St Lawrence with North Atlantic
topoInterpolate(45, -57, topoWorld)


Search within the oce package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.