Read Global Multi-resolution Terrain Elevation Data (GMTED2010)
Source:R/data_ruggedterrain.R
read_ruggedterrain.Rd
Unzips and reads the GMTED2010 spatial metadata as an sf object. This function locates the local GMTED2010 dataset file, extracts it, and reads the spatial metadata shapefile for use in elevation calculations.
Value
An sf object containing the GMTED2010 spatial metadata with elevation information including minimum, maximum, and mean elevation values
Details
The function performs the following steps:
Locates the local GMTED2010 dataset file using
get_pgfile
Unzips the file to a local directory
Reads the spatial metadata shapefile from the extracted data
References
Danielson JJ, Gesch DB (2011). “Global Multi-resolution Terrain Elevation Data 2010 (GMTED2010).” Technical Report 2011-1073, Earth Resources Observation and Science (EROS) Center, Virginia.
See also
ruggedterrain_variable
for calculating elevation statistics,
get_pgfile
for the underlying data retrieval function
Examples
if (FALSE) { # \dontrun{
# Read the GMTED2010 elevation data
elevation_data <- read_ruggedterrain()
print(elevation_data)
} # }