SAGA-GIS Tool Library Documentation (v7.8.2)

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, outputCOUNT--
MinimumGrid, outputMIN--
MaximumGrid, outputMAX--
RangeGrid, outputRANGE--
SumGrid, outputSUM--
Sum of SquaresGrid, outputSUM2--
Arithmetic MeanGrid, outputMEAN--
VarianceGrid, outputVAR--
Standard DeviationGrid, outputSTDDEV--
HistogramGrids, outputHISTOGRAM--
Percentiles (*)Grid list, output, optionalQUANTILES--
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, output, optional
  -QUANTVALS:<str> 	Percentiles
	Text
	Default: 5; 25; 50; 75; 95