depth | R Documentation |
Returns an linearly interpolated estimate of water depth for a given a set of coordinates, based on a reference bathymetry map.
depth(x, ...)
## Default S3 method:
depth(longitude, latitude, units = "m")
## S3 method for class 'list'
depth(x, ...)
longitude , latitude |
Numerical vector of longitudes in decimal degree format. |
units |
Depth units to be returned. May be in meters ( |
The sign of longitude
has no influence on the result.
Returns a numerical vector the same size as latitude
and longitude
containing
the water depth at the specified coordinates. Coordinates on land have negative values.
depth(default)
: Default depth
function.
depth(list)
: Depth function for a list obejct.
# Find the water depth at a single point:
depth(63.8, 47.05)
# Find water depth for multiple points:
lat <- c(48, 47, 46.5)
long <- c(-64, -61.5, -62)
depth(long, lat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.