detrend: Detrend DEM

View source: R/detrend.R

detrendR Documentation

Detrend DEM

Description

Converts a Digital Elevation Model (DEM) to a Relative Elevation Model (REM). An REM is a DEM normalized to the baseline elevation of the stream reach.

Usage

detrend(dem, flowline, flowline_points, buffer_distance)

Arguments

dem

terra SpatRast object; A DEM.

flowline

sf object; A flowline object.

flowline_points

sf object; A flowline_points feature.

buffer_distance

numeric; Distance the flowline feature class will be buffered to define the extent of the output REM. Units are defined by the coordinate system of the DEM.

Value

a list containing two terra SpatRaster objects: * rem - A raster Relative Elevation Model (REM) representing elevation above the baseline elevation of the reach. * trend - A raster trend surface representing the baseline elevation of the flowline_points for the reach.


FluvialGeomorph/fluvgeo documentation built on June 10, 2025, 12:03 p.m.