download_elevation_data {WES}R Documentation

Download DEM from AWS Terrain Tiles

Description

This function takes the coordinates of sampling sites (longitude and latitude) and downloads a Digital Elevation Model (DEM) for the surrounding area. The DEM has an approximate spatial resolution of 100 meters. These data are derived from the Shuttle Radar Topography Mission (SRTM) DEM, which is accessible through the Amazon Web Services (AWS) API and the elevatr R package.

Usage

download_elevation_data(lon, lat, path_output)

Arguments

lon

A numeric vector giving the longitude of the sampling sites in Decimal Degrees.Can accept a vector of multiple ISO codes.

lat

A numeric vector giving the latitude of the sampling sites in Decimal Degrees.

path_output

A character string giving the file path of an output directory to save downloaded data.

Value

Character string giving path to downloaded data.

Examples



download_elevation_data(lon = template_WES_data$lon,
                        lat = template_WES_data$lat,
                        path_output = tempdir())



[Package WES version 1.0.0 Index]