ele_correction: Obtain elevation values from external source for stream...

View source: R/ele_correction.R

ele_correctionR Documentation

Obtain elevation values from external source for stream dataframe

Description

Uses SRTM data for obtaining elevation for each reading. Also supports external DEM in raster format. If number of readings exceeds 200 points downloads a raster, else downloads each point at a time. If local raster available, extract elevations directly

Usage

ele_correction(data, z = 13, raster = NULL, replace = TRUE)

Arguments

data

dataframe or tibble containing a GPS stream

z

zoom of Digital Elevation Model, between 6 and 14

raster

raster object with DEM values

replace

binary variable. Default value = TRUE. Defines whether to create a new column or replace the raw elevation

Value

GPS stream dataframe with new variable 'ele_DEM'


raimun2/GPStream documentation built on Feb. 20, 2024, 11:54 a.m.