SAGA-GIS Tool Library Documentation (v8.1.0)

Tool Save Grid Statistics to Table

Calculates statistical properties (arithmetic mean, minimum, maximum, variance, standard deviation) for each of the given grids and saves it to a table.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsGrid list, inputGRIDS--
OutputStatistics for GridsTable, outputSTATS--
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
Number of Data CellsBooleanDATA_CELLS-Default: 0
Number of No-Data CellsBooleanNODATA_CELLS-Default: 0
CellsizeBooleanCELLSIZE-Default: 0
Arithmetic MeanBooleanMEAN-Default: 1
MinimumBooleanMIN-Default: 1
MaximumBooleanMAX-Default: 1
RangeBooleanRANGE-Default: 0
SumBooleanSUM-Default: 0
Sum of SquaresBooleanSUM2-Default: 0
VarianceBooleanVAR-Default: 1
Standard DeviationBooleanSTDDEV-Default: 1
Mean less Standard DeviationBooleanSTDDEVLO-Default: 0
Mean plus Standard DeviationBooleanSTDDEVHI-Default: 0
PercentilesTextPCTL_VALSeparate the desired percentiles by semicolonDefault: 5; 25; 50; 75; 95
From HistogramBooleanPCTL_HST-Default: 1
Sample SizeFloating pointSAMPLESMinimum sample size [percent] used to calculate statistics. Ignored, if set to zero.Minimum: 0.000000
Maximum: 100.000000
Default: 0.000000

Command-line

Usage: saga_cmd statistics_grid 13 [-GRIDS <str>] [-STATS <str>] [-DATA_CELLS <str>] [-NODATA_CELLS <str>] [-CELLSIZE <str>] [-MEAN <str>] [-MIN <str>] [-MAX <str>] [-RANGE <str>] [-SUM <str>] [-SUM2 <str>] [-VAR <str>] [-STDDEV <str>] [-STDDEVLO <str>] [-STDDEVHI <str>] [-PCTL_VAL <str>] [-PCTL_HST <str>] [-SAMPLES <double>]
  -GRIDS:<str>       	Grids
	Grid list, input
  -STATS:<str>       	Statistics for Grids
	Table, output
  -DATA_CELLS:<str>  	Number of Data Cells
	Boolean
	Default: 0
  -NODATA_CELLS:<str>	Number of No-Data Cells
	Boolean
	Default: 0
  -CELLSIZE:<str>    	Cellsize
	Boolean
	Default: 0
  -MEAN:<str>        	Arithmetic Mean
	Boolean
	Default: 1
  -MIN:<str>         	Minimum
	Boolean
	Default: 1
  -MAX:<str>         	Maximum
	Boolean
	Default: 1
  -RANGE:<str>       	Range
	Boolean
	Default: 0
  -SUM:<str>         	Sum
	Boolean
	Default: 0
  -SUM2:<str>        	Sum of Squares
	Boolean
	Default: 0
  -VAR:<str>         	Variance
	Boolean
	Default: 1
  -STDDEV:<str>      	Standard Deviation
	Boolean
	Default: 1
  -STDDEVLO:<str>    	Mean less Standard Deviation
	Boolean
	Default: 0
  -STDDEVHI:<str>    	Mean plus Standard Deviation
	Boolean
	Default: 0
  -PCTL_VAL:<str>    	Percentiles
	Text
	Default: 5; 25; 50; 75; 95
  -PCTL_HST:<str>    	From Histogram
	Boolean
	Default: 1
  -SAMPLES:<double>  	Sample Size
	Floating point
	Minimum: 0.000000
	Maximum: 100.000000
	Default: 0.000000