R/Lib_MapSpectralSpecies.R
compute_spectral_species.Rd
this function reads PCA file and defines the spectral species for each pixel based on the set of cluster centroids defined for each iteration applies kmeans –> closest cluster corresponds to the "spectral species"
compute_spectral_species(
PCA_Path,
Input_Mask_File,
Spectral_Species_Path,
Location_RW,
PC_Select,
Kmeans_info,
nbCPU = 1,
progressbar = FALSE
)
character. path for the PCA image
character. Path for the mask
character. path for spectral species file to be written
numeric. where to read/write information in binary file
numeric. PCs selected from PCA
list. information about kmeans computed in previous step
numeric. number of CPUs available
boolean. should progress bar be displayed (set to TRUE only if no conflict of parallel process)
None