Methods for Calculating Gradient Surface Metrics

Methods for calculating gradient surface metrics for continuous analysis of landscape features.


geodiv

geodiv calculates gradient surface metrics in R. These metrics are applied to continuous spatial data (i.e., rasters or matrices) and represent spatial heterogeneity.

Installation

You can install the released version of geodiv from CRAN with:

install.packages("geodiv")

And the development version from GitHub with:

# install.packages("devtools")

# install from master branch
devtools::install_github("bioXgeo/geodiv")

# install from development branch
devtools::install_github("bioXgeo/geodiv",ref = "dev")

On Mac OS X, you may need to install the development tools here to get the package to install:

https://cran.r-project.org/bin/macosx/tools/

Example

This is a basic example which shows you how to calculate several metrics over an entire image. geodiv may also be applied with moving windows over an entire image using the ‘texture_image’ function. For a more complex example, see the vignette.

library(geodiv)

# import example raster
data(normforest)

# apply metrics
sa(normforest) # average surface roughness
#> [1] 0.0442945
svk(normforest) # reduced valley depth
#> [1] 0.5449867
ssc(normforest) # mean summit curvature
#> [1] -0.02192238

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("geodiv")

1.1.1 by Kyla Dahlin, 3 months ago


https://github.com/bioXgeo/geodiv


Report a bug at https://github.com/bioXgeo/geodiv/issues


Browse source code at https://github.com/cran/geodiv


Authors: Annie C. Smith [aut] , Phoebe Zarnetske [aut] , Kyla Dahlin [aut, cre] , Adam Wilson [aut] , Andrew Latimer [aut] , Kelly Kapsar [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports dplyr, pracma, spatial, e1071, parallel, sf, zoo, Rcpp, terra, rlang

Suggests testthat, R.rsp

Linking to Rcpp, RcppArmadillo


Imported by prior3D.

Suggested by multiScaleR.


See at CRAN