compute spectral species distribution from original spectral species map

compute_SSD(
  Image_Chunk,
  window_size,
  nbclusters,
  MinSun = 0.25,
  pcelim = 0.02,
  Index_Alpha = "Shannon",
  nbCPU = 1,
  nbPieces = 1,
  Mask_Chunk = FALSE,
  progressbar = FALSE
)

Arguments

Image_Chunk

numeric. 3D image chunk of spectral species

window_size

numeric. size of spatial units (in pixels) to compute diversity

nbclusters

number of clusters defined in k-Means

MinSun

minimum proportion of sunlit pixels required to consider plot

pcelim

minimum proportion for a spectral species to be included

Index_Alpha

list. list of alpha diversity indices to be computed from spectral species

nbCPU

numeric. Number of CPUs to use in parallel.

nbPieces

numeric. number of pieces in which original image is split

Mask_Chunk

numeric. 3D image chunk of mask (optional)

progressbar

boolean. should progress bar be displayed (set to TRUE only if no conflict of parallel process)

Value

list of alpha diversity metrics for each iteration