hvar {habtools}R Documentation

Calculate height variation in cells at different scales

Description

This is a helper function used for calculating fractal dimension using the height variation and standard deviation methods.

Usage

hvar(
  data,
  lvec = NULL,
  parallel = FALSE,
  ncores = (parallel::detectCores() - 1)
)

Arguments

data

Digital elevation model of class RasterLayer.

lvec

Scales to use for calculation.

parallel

Logical. Use parallel processing? Note: parallel must be installed.

ncores

Number of cores to use when parallel = TRUE.

Value

A data.frame containing height ranges of cells at different scales.

Examples


hvar(horseshoe, lvec = c(1, 2, 4, 8))

[Package habtools version 1.0.5 Index]