Description Usage Arguments Details Value Examples
Extracts (reliable) elevation data from raster "alt" dataset,
given positional coordinates (lon,lat
). Requires the raster
package to be installed. Essentially a wrapper for
getData
and extract
.
1 | elevation_correct(lon, lat, country)
|
lon, lat |
numeric vectors (of the same length) giving positional coordinates in units of (decimal) degrees. |
country |
character; the three letter ISO code for the country in which
the |
Note that raster data may need to be downloaded, and hence an internet connection will be required if these files do not already exist in the working directory.
Also note that elevation data are interpolated from the values of the four
nearest raster cells. See the method
argument in
extract
.
A numeric vector of the same length as lon,lat
of elevation
values (i.e. metres above sea level).
1 2 3 4 5 6 7 8 9 10 11 12 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.