get_opentopo function

Get a digital elevation model from the Open Topography SRTM Version 3

Get a digital elevation model from the Open Topography SRTM Version 3

This function uses the Open Topography SRTM Version 3 files.

Source

Attribution: Details here

get_opentopo(locations, src, prj, expand = NULL, ...)

Arguments

  • locations: Either a data.frame of x (long) and y (lat), an sp, an sf, or raster object as input.

  • prj: A valid input to st_crs If a sf

    object or a terra object is provided as the locations, the prj is optional and will be taken from locations. This argument is required for a data.frame of locations.

  • expand: A numeric value of a distance, in map units, used to expand the bounding box that is used to fetch the SRTM data.

  • ...: Extra configuration parameters to be passed to httr::GET. Common usage is to adjust timeout. This is done as config=timeout(x) where x is a numeric value in seconds. Multiple configuration functions may be passed as a vector.

  • Maintainer: Jeffrey Hollister
  • License: MIT + file LICENSE
  • Last published: 2023-09-12