| calcSDI | R Documentation | 
Calculates Shoreline Development Index value across water levels for a given waterbody.
calcSDI(DEM, units = "m", by = 1, stop = NULL)
| 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 | 
data frame of perimeter lengths and SDI values for given depths
Tristan Blechinger, Department of Zoology & Physiology, University of Wyoming
#load raster
DEM <- terra::rast(system.file("extdata", "example_raster.tif", package = 'rLakeHabitat'))
#run function
calcSDI(DEM, units = 'm')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.