saga_DEM_derivatives: Derive geomorphometric parameters from digital elevation...

View source: R/AgroSoil_generic_functions.R

saga_DEM_derivativesR Documentation

Derive geomorphometric parameters from digital elevation model (DEM)

Description

Compute gridded process-based covariate(s) that are useful to explain the dynamics of a soil properties (in this case soil moisture) along a pedon or a soilscape. Here, we followed the scorpan concept of soil mapping (McBratney et al. 2003). They are computed at the pedon and catchment scale.

Usage

saga_DEM_derivatives(
  saga_cmd,
  DEM_Input,
  MASK = NULL,
  sel = c("SLP", "CPR", "TWI", "CRV", "VBF", "VDP", "OPN", "DVM", "MRN", "TPI"),
  RADIUS = c(9, 13),
  cpus = 5
)

Arguments

saga_cmd

SAGA-GIS path

DEM_Input

DEM raster file path save as ".tif" file

MASK

Masking layer file. Default value is NULL

sel

geomorphometric parameters to compute. Check SAGA-GIS documentation for further details

Examples

library(rgdal)

if(.Platform$OS.type == 'windows'){
   saga_cmd = shortPathName("C:/Program Files (x86)/SAGA-GIS/saga_cmd.exe")
}else{
   saga_cmd = "saga_cmd"
}

DEM_Input <- "filename of DEM/Raster file"
sel <- c("SLP","TWI")

saga_DEM_derivatives <- function(saga_cmd, DEM_Input, MASK=NULL, sel)


kanj241/agrosoil documentation built on March 25, 2022, 12:22 a.m.