SAGA-GIS Tool Library Documentation (v7.3.0)

Tool Principal Component Analysis

Principal Component Analysis (PCA) for grids. PCA implementation is based on F.Murtagh's code as provided by the StatLib web site.


References


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsGrid list (input)GRIDS--
Eigen Vectors (*)Table (optional input)EIGEN_INPUTUse Eigen vectors from this table instead of calculating these from the input grids.-
OutputPrincipal ComponentsGrid list (output)PCA--
Eigen Vectors (*)Table (optional output)EIGENStore calculated Eigen vectors to this table, e.g. for later use with forward or inverse PCA.-
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
MethodChoiceMETHOD-Available Choices:
[0] correlation matrix
[1] variance-covariance matrix
[2] sums-of-squares-and-cross-products matrix
Default: 1
Number of ComponentsIntegerCOMPONENTSnumber of first components in the output; set to zero to get allMinimum: 0
Default: 3
Overwrite Previous ResultsBooleanOVERWRITE-Default: 1
(*) optional

Command-line

Usage: saga_cmd statistics_grid 8 [-GRIDS <str>] [-PCA <str>] [-EIGEN_INPUT <str>] [-EIGEN <str>] [-METHOD <str>] [-COMPONENTS <num>] [-OVERWRITE <str>]
  -GRIDS:<str>      	Grids
	Grid list (input)
  -PCA:<str>        	Principal Components
	Grid list (output)
  -EIGEN_INPUT:<str>	Eigen Vectors
	Table (optional input)
  -EIGEN:<str>      	Eigen Vectors
	Table (optional output)
  -METHOD:<str>     	Method
	Choice
	Available Choices:
	[0] correlation matrix
	[1] variance-covariance matrix
	[2] sums-of-squares-and-cross-products matrix
	Default: 1
  -COMPONENTS:<num> 	Number of Components
	Integer
	Minimum: 0
	Default: 3
  -OVERWRITE:<str>  	Overwrite Previous Results
	Boolean
	Default: 1