Skip to contents

Wraps geodata::elevation_30s() (global, 30 arc-second SRTM) and crops it to the AoI. Optionally derives slope and aspect via terra::terrain().

Usage

foundation_tile_source_srtm(
  aoi,
  derive = c("slope"),
  country = "BRA",
  path = tempdir()
)

Arguments

aoi

See foundation_tile_source_soilgrids().

derive

Character vector of additional topographic layers to compute. Any subset of c("slope","aspect","TPI","TRI","roughness").

country

Optional ISO3 code for country-scope download.

path

Cache directory.

Value

A terra::SpatRaster with layer elev plus any derived layers.