process_dem: Perform initial computations on a Digital Elevation Model

View source: R/dem_processing.R

process_demR Documentation

Perform initial computations on a Digital Elevation Model

Description

Perform initial computations on a Digital Elevation Model This function relies on the following GRASS GIS modules : r.watershed, r.stream.distance (add-on to be installed)

Usage

process_dem(dem, th_px, gisbase, precip = NULL, to_net = FALSE)

Arguments

dem

Digital Elevation Model (SpatRaster)

th_px

Accumulation threshold in pixels to initiate a stream (integer)

gisbase

The directory path to GRASS binaries and libraries, containing bin and lib subdirectories among others

precip

precipitation raster (m/a) to be used for annual discharge computation

to_net

Flag to compute distance to network ('dtn') and elevation above network ('ean') (optional)

Value

A SpatRaster with the following layers: 'z' (DEM), 'acc' (flow accumulation), 'dir' (flow direction), 'dist' (distance along network), 'st_id' (stream id), 'sto' (Strahler orders of the stream segments), 'bs_id' (sub basin id) Optionally


VincentGodard/gtbox documentation built on Sept. 4, 2022, 3:46 a.m.