SAGA-GIS Tool Library Documentation (v7.0.0)

Tool Build Statistics for Grids

This tool allows to collect successively cell-wise statistical information from grids by subsequent calls with the 'Reset' flag set to false. The collected information can be used as input for the 'Evaluate Statistics for Grids' tool. Together these tools have been designed to inspect a large number of grids that could not be loaded into memory simultaneously.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsGrid list (input)GRIDS--
OutputNumber of ValuesGrid (output)COUNT--
SumGrid (output)SUM--
Sum of SquaresGrid (output)SUM2--
MinimumGrid (output)MIN--
MaximumGrid (output)MAX--
HistogramGrids (output)HISTOGRAM--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
ResetBooleanRESET-Default: 1
Number of ClassesIntegerHCLASSES-Minimum: 0
Default: 20
MinimumFloating pointHMIN-Default: 0.000000
MinimumFloating pointHMAX-Default: 0.000000

Command-line

Usage: saga_cmd statistics_grid 17 [-GRIDS <str>] [-COUNT <str>] [-SUM <str>] [-SUM2 <str>] [-MIN <str>] [-MAX <str>] [-HISTOGRAM <str>] [-RESET <str>] [-HCLASSES <num>] [-HMIN <double>] [-HMAX <double>]
  -GRIDS:<str>    	Grids
	Grid list (input)
  -COUNT:<str>    	Number of Values
	Grid (output)
  -SUM:<str>      	Sum
	Grid (output)
  -SUM2:<str>     	Sum of Squares
	Grid (output)
  -MIN:<str>      	Minimum
	Grid (output)
  -MAX:<str>      	Maximum
	Grid (output)
  -HISTOGRAM:<str>	Histogram
	Grids (output)
  -RESET:<str>    	Reset
	Boolean
	Default: 1
  -HCLASSES:<num> 	Number of Classes
	Integer
	Minimum: 0
	Default: 20
  -HMIN:<double>  	Minimum
	Floating point
	Default: 0.000000
  -HMAX:<double>  	Minimum
	Floating point
	Default: 0.000000