Skip to contents

Reads USGS/SRTMGL1_003 (NASA Shuttle Radar Topography Mission Digital Elevation Model) from Google Earth Engine. This is a static dataset — no date argument is needed.

Usage

read_srtm(
  region,
  backend = c("rest", "rgee"),
  cache = TRUE,
  max_tries = 3L,
  initial_delay = 1
)

Arguments

region

An sf::sf, sf::st_sfc(), or terra::ext() object defining the spatial extent. Required.

backend

Character. "rest" (default) or "rgee".

cache

Logical. Use disk cache? Default TRUE.

max_tries

Integer. Retry attempts. Default 3L.

initial_delay

Numeric. Initial retry delay in seconds. Default 1.

Value

A terra::rast() SpatRaster. CRS: EPSG:4326. Values: elevation in metres above sea level.

Data availability

Static (single acquisition, February 2000). 30 m spatial resolution. Coverage: 60N to 56S.

References

Farr, T.G. et al. (2007). The Shuttle Radar Topography Mission. Reviews of Geophysics, 45(2). doi:10.1029/2005RG000183

Examples

if (FALSE) { # interactive()
elev <- read_srtm(region = terra::ext(138, 140, -36, -34))
terra::plot(elev)
}