Skip to contents

This is an update of cov_dtm.R replacing the processing with 02a from BEC_DevExchange_Work_

Usage

create_covariates(dtm, SAGApath = "", output = "./cv-rasters", layers = "all")

Arguments

dtm

is a dtm SpatRaster object (i.e. loaded via terra::rast)

SAGApath

Is the location of SAGA on your system. On linux systems with SAGA GIS installed Use SAGApath = ""

output

Location of where rasters will be saved.

layers

The covariates that will be generated. A full list of covariates is listed at: ADD

Details

Takes a dtm and via SAGA GIS generates the covariates embeded in this function. This script has been tested with SAGA 7.3 on Windows and Ubuntu 18. Depending on your system the path to saga_cmd may need to be specified.

Examples