SAGA-GIS Tool Library Documentation (v9.1.2)

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, inputGRIDS--
OutputNumber of Values (*)Grid, output, optionalCOUNT--
Sum (*)Grid, output, optionalSUM--
Sum of Squares (*)Grid, output, optionalSUM2--
Minimum (*)Grid, output, optionalMIN--
Maximum (*)Grid, output, optionalMAX--
Histogram (*)Grids, output, optionalHISTOGRAM--
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
Number of ClassesIntegerHCLASSES-Minimum: 2
Default: 20
MinimumFloating pointHMIN-Default: 0.000000
MaximumFloating pointHMAX-Default: 0.000000
ResetBoolean, GUIRESET-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, output, optional
  -SUM:<str>      	Sum
	Grid, output, optional
  -SUM2:<str>     	Sum of Squares
	Grid, output, optional
  -MIN:<str>      	Minimum
	Grid, output, optional
  -MAX:<str>      	Maximum
	Grid, output, optional
  -HISTOGRAM:<str>	Histogram
	Grids, output, optional
  -HCLASSES:<num> 	Number of Classes
	Integer
	Minimum: 2
	Default: 20
  -HMIN:<double>  	Minimum
	Floating point
	Default: 0.000000
  -HMAX:<double>  	Maximum
	Floating point
	Default: 0.000000