create_covariates_plan: Intended for creating the sampling plan - numerous entries...

View source: R/create_covariates_plan.R

create_covariates_planR Documentation

Intended for creating the sampling plan – numerous entries have been commented out. ACTION: perhaps divide these into create_covariates_plan, and create_covariates_model

Description

Covariate raster generation from input dtm.

Usage

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

Arguments

dtm

is a dtm raster object

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:

Details

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

Takes a dtm and generates the covariates embeded in this function via SAGA GIS. 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

##
create_covariates(dtm,                          ## the dtm (loaded by raster() )
        SAGApath = "C:/SAGA/"         ## specify location of SAGA on your machine
        output   = "c:/dtm-derived" ) ## specify output folder

ColinChisholm/pemGeneratr documentation built on March 18, 2023, 1:45 a.m.