SAGA-GIS Tool Library Documentation (v7.2.0)

Tool Statistics for Grids from Files

Calculates statistical properties (arithmetic mean, minimum, maximum, variance, standard deviation) for each cell position for the values of the selected grids. This tool works file based to allow the processing of a large number of grids.

Parameters

 NameTypeIdentifierDescriptionConstraints
OutputNumber of ValuesGrid (output)COUNT--
MinimumGrid (output)MIN--
MaximumGrid (output)MAX--
RangeGrid (output)RANGE--
SumGrid (output)SUM--
Sum of SquaresGrid (output)SUM2--
Arithmetic MeanGrid (output)MEAN--
VarianceGrid (output)VAR--
Standard DeviationGrid (output)STDDEV--
HistogramGrids (output)HISTOGRAM--
Percentiles (*)Grid list (optional output)QUANTILES--
OptionsGrid SystemGrid systemGRID_SYSTEM--
Grid FilesFile pathFILES--
Number of ClassesIntegerHCLASSES-Minimum: 2
Default: 20
RangeChoiceHRANGEMinimum and maximum values used to define the histogram classes.Available Choices:
[0] overall
[1] cell
Default: 1
CumulativeBooleanCUMULATIVE-Default: 0
PercentilesTextQUANTVALSSeparate the desired percentiles by semicolonDefault: 5; 25; 50; 75; 95
(*) optional

Command-line

Usage: saga_cmd statistics_grid 16 [-COUNT <str>] [-MIN <str>] [-MAX <str>] [-RANGE <str>] [-SUM <str>] [-SUM2 <str>] [-MEAN <str>] [-VAR <str>] [-STDDEV <str>] [-HISTOGRAM <str>] [-FILES <str>] [-HCLASSES <num>] [-HRANGE <str>] [-CUMULATIVE <str>] [-QUANTILES <str>] [-QUANTVALS <str>]
  -COUNT:<str>     	Number of Values
	Grid (output)
  -MIN:<str>       	Minimum
	Grid (output)
  -MAX:<str>       	Maximum
	Grid (output)
  -RANGE:<str>     	Range
	Grid (output)
  -SUM:<str>       	Sum
	Grid (output)
  -SUM2:<str>      	Sum of Squares
	Grid (output)
  -MEAN:<str>      	Arithmetic Mean
	Grid (output)
  -VAR:<str>       	Variance
	Grid (output)
  -STDDEV:<str>    	Standard Deviation
	Grid (output)
  -HISTOGRAM:<str> 	Histogram
	Grids (output)
  -FILES:<str>     	Grid Files
	File path
  -HCLASSES:<num>  	Number of Classes
	Integer
	Minimum: 2
	Default: 20
  -HRANGE:<str>    	Range
	Choice
	Available Choices:
	[0] overall
	[1] cell
	Default: 1
  -CUMULATIVE:<str>	Cumulative
	Boolean
	Default: 0
  -QUANTILES:<str> 	Percentiles
	Grid list (optional output)
  -QUANTVALS:<str> 	Percentiles
	Text
	Default: 5; 25; 50; 75; 95