/
get_opentopo.Rd
38 lines (34 loc) · 1.43 KB
/
get_opentopo.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_elev_raster.R
\name{get_opentopo}
\alias{get_opentopo}
\title{Get a digital elevation model from the Open Topography SRTM Version 3}
\source{
Attribution: Details here
}
\usage{
get_opentopo(locations, src, prj, expand = NULL, tmp_dir = tempdir(), ...)
}
\arguments{
\item{locations}{Either a \code{data.frame} of x (long) and y (lat), an
\code{sp}, an \code{sf}, or \code{raster} object as input.}
\item{prj}{A valid input to \code{\link{st_crs}} If a \code{sf}
object or a \code{terra} object is provided as the \code{locations},
the prj is optional and will be taken from \code{locations}. This
argument is required for a \code{data.frame} of locations.}
\item{expand}{A numeric value of a distance, in map units, used to expand the
bounding box that is used to fetch the SRTM data.}
\item{tmp_dir}{The location to store downloaded raster files. Defaults to a
temporary location. Alternatively, the user may supply an
existing path for these raster files. New folders are not
created by \code{get_elev_raster}.}
\item{...}{Extra configuration parameters to be passed to httr::GET. Common
usage is to adjust timeout. This is done as
\code{config=timeout(x)} where \code{x} is a numeric value in
seconds. Multiple configuration functions may be passed as a
vector.}
}
\description{
This function uses the Open Topography SRTM Version 3 files.
}
\keyword{internal}