R/perform_PCA.R
perform_PCA.Rd
Performs PCA for all images and create PCA file with either all or a selection of PCs
perform_PCA(
input_raster_path,
output_dir,
input_rast_wl = NULL,
input_mask_path = NULL,
Continuum_Removal = TRUE,
TypePCA = "SPCA",
NbPCs_To_Keep = 30,
Excluded_WL = NULL,
nbPix_PCA = 1e+06,
nbIter = 20,
maxRows = 100,
filetype = "GTiff"
)
character. path for image to be processed
character. Path for output directory
numeric. spectral bands corresponding to input_raster_path
character. path for mask corresponding to the image
boolean. Set to TRUE if continuum removal should be applied
character. Type of PCA: choose either "PCA" or "SPCA"
numeric. number of components to ke saved in the PCA file. default = 30 if set to FALSE (or nb PC if <30)
numeric. Water Vapor Absorption domains (in nanometers, min and max WL). Can also be used to exclude spectific domains. dims = N x 2 (N = number of domains to be eliminated)
numeric. number of pixels to use to compute PCA
numeric. nb of iterations averaged to compute diversity indices
numeric. max number of rows in each block
character. gdal driver
list of paths corresponding to resulting PCA files