View source: R/AgroSoil_generic_functions.R
saga_DEM_derivatives | R Documentation |
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.
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 )
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 |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.