Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

elevation

Elevation


Description

Get elevation data for any country in the world. The main data source is Shuttle Radar Topography Mission (SRTM) , specifically the hole-filled CGIAR-SRTM (90 m resolution) https://srtm.csi.cgiar.org/. These data are only available for latitudes between -60 and 60.

The 1 km (30 arc seconds) data were aggregated from SRTM 90 m resolution data and supplemented with the GTOP30 data for high latitudes (>60 degrees).

Usage

elevation_3s(lon, lat, path)
elevation_30s(country, path, mask=TRUE, subs="")
elevation_global(res, path)

Arguments

lon

numeric. Longitude

lat

numeric. Latitude

path

character. Path where to download the data to

country

character. Country name or code

mask

logical. set grid cells outside of the country boundaries to NA

subs

character

res

numeric. Valid resolutions are 10, 5, 2.5, and 0.5 (minutes of a degree)

Value

RasterLayer

Author(s)

Robert Hijmans, Aniruddha Ghosh, Alex Mandel

Examples

## Not run: 
elevation_30s(country="FRA", path=tempdir() )

## End(Not run)

geodata

Download Geographic Data

v0.2-3
GPL (>= 3)
Authors
Robert J. Hijmans [cre, aut], Aniruddha Ghosh [ctb], Alex Mandel [ctb]
Initial release
2021-05-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.