SAGA-GIS Tool Library Documentation (v7.3.0)

Tool Build Statistics for Grids

This tool collects cell-wise basic statistical information from the given input grids. The collected statistics can be used as input for the 'Evaluate Statistics for Grids' tool. You can use this tool with the 'Reset' flag set to false (not available in command line mode) or the 'Add Statistics for Grids' tool to successively add statistical information from further grids by subsequent calls. These three tools (build, add, evaluate) have been designed to inspect a large number of grids that could otherwise not be evaluated simultaneously due to memory restrictions.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsGrid list (input)GRIDS--
OutputNumber of Values (*)Grid (optional output)COUNT--
Sum (*)Grid (optional output)SUM--
Sum of Squares (*)Grid (optional output)SUM2--
Minimum (*)Grid (optional output)MIN--
Maximum (*)Grid (optional output)MAX--
Histogram (*)Grids (optional output)HISTOGRAM--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
Number of ClassesIntegerHCLASSES-Minimum: 2
Default: 20
MinimumFloating pointHMIN-Default: 0.000000
MinimumFloating pointHMAX-Default: 0.000000
ResetBooleanRESET-Default: 1
(*) optional

Command-line

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