calcSDI: Calculate Shoreline Development Index

View source: R/calcSDI.R

calcSDIR Documentation

Calculate Shoreline Development Index

Description

Calculates Shoreline Development Index value across water levels for a given waterbody.

Usage

calcSDI(DEM, units = "m", by = 1, stop = NULL)

Arguments

DEM

SpatRaster object of a given waterbody, rasters can be transformed to SpatRaster via the rast() function in 'terra'

units

character describing units of raster coordinate system. Can be meters, kilometers, or hectares ("m", "km", "ha"), default = "m"

by

numeric increment per unit depth by which areas are calculated. Higher values will result in lower resolution. Default = 1

stop

optional numeric value specifying depth at which to stop calculations, default = NULL

Value

data frame of perimeter lengths and SDI values for given depths

Author(s)

Tristan Blechinger, Department of Zoology & Physiology, University of Wyoming

Examples

#load raster
DEM <- terra::rast(system.file("extdata", "example_raster.tif", package = 'rLakeHabitat'))
#run function
calcSDI(DEM, units = 'm')

rLakeHabitat documentation built on April 16, 2025, 1:10 a.m.