powered by
Calculates Shoreline Development Index value across water levels for a given waterbody.
calcSDI(DEM, units = "m", by = 1, stop = NULL)
data frame of perimeter lengths and SDI values for given depths
SpatRaster object of a given waterbody, rasters can be transformed to SpatRaster via the rast() function in 'terra'
character describing units of raster coordinate system. Can be meters, kilometers, or hectares ("m", "km", "ha"), default = "m"
numeric increment per unit depth by which areas are calculated. Higher values will result in lower resolution. Default = 1
optional numeric value specifying depth at which to stop calculations, default = NULL
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')
Run the code above in your browser using DataLab