compute functional diversity metrics for an array, given a specific window size

compute_FD(
  Image_Chunk,
  window_size,
  MinSun,
  FDmetric = c("FRic", "FEve", "FDiv"),
  nbCPU
)

Arguments

Image_Chunk

numeric. 3D image chunk of spectral species

window_size

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

MinSun

numeric. minimum proportion of sunlit pixels required to consider plot

FDmetric

character. Functional diversity metric

nbCPU

numeric. nb of CPU to process data

Value

list of functional diversity metrics corresponding to image chunk