detrend | R Documentation |
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.
detrend(dem, flowline, flowline_points, buffer_distance)
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.