Skip to contents

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.

Usage

read_ruggedterrain()

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:

  1. Locates the local GMTED2010 dataset file using get_pgfile

  2. Unzips the file to a local directory

  3. 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)
} # }