The fun
(e.g. median()
or sd()
) of the elevations (captured at a spatial resolution of 800 by 800 m) within
the buffer distance of each s2 geohash.
Usage
get_elevation_summary(x, fun = stats::median, buffer = 800)
install_elevation_data()
Arguments
- x
a vector of s2 cell identifers (
s2_cell
object)- fun
function to summarize extracted data
- buffer
distance from s2 cell (in meters) to summarize data
Value
for get_elevation_summary()
, a numeric vector of elevation summaries, the same length as x
for install_elevation_data()
, a character string path to elevation raster
Examples
get_elevation_summary(s2::as_s2_cell(c("8841b399ced97c47", "8841b38578834123")))
#> [1] 231.0 222.5