Map functional diversity metrics based on spectral species

compute_Functional_metrics(
  Functional_File,
  Functional_Map_Path,
  Selected_Features,
  FDmetric = c("FRic", "FEve", "FDiv"),
  window_size,
  MinSun,
  nbCPU = 1,
  MaxRAM = 0.25
)

Arguments

Functional_File

character. Path and name of the image processed to be used to compute functional diversity

Functional_Map_Path

character. Path and name of the resulting functional diversity raster

Selected_Features

numeric. list of features from Functional_File to be included in the analysis

FDmetric

character. Functional diversity metric

window_size

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

MinSun

numeric. minimum proportion of sunlit pixels required to consider plot

nbCPU

numeric. Number of CPUs to use in parallel.

MaxRAM

numeric. MaxRAM maximum size of chunk in GB to limit RAM allocation when reading image file.

Value

list of mean and SD of alpha diversity metrics