SAGA-GIS Tool Library Documentation (v9.1.2)

Tool Unique Value Statistics for Grids

This tool analyzes for each cell position the uniquely appearing values of the input grids. Output is the number of unique values, the most frequent value (the majority), and the least frequent value (minority).

Parameters

 NameTypeIdentifierDescriptionConstraints
InputValuesGrid list, inputGRIDS--
OutputMajority (*)Grid, output, optionalMAJORITY--
Majority Count (*)Grid, output, optionalMAJORITY_COUNT--
Minority (*)Grid, output, optionalMINORITY--
Minority Count (*)Grid, output, optionalMINORITY_COUNT--
Number of Unique Values (*)Grid, output, optionalNUNIQUES--
OptionsGrid SystemGrid systemPARAMETERS_GRID_SYSTEM--
UnambiguousBooleanUNAMBIGUOUSSet no-data if more than one value reaches the same majority count.Default: 0
(*) optional

Command-line

Usage: saga_cmd statistics_grid 20 [-GRIDS <str>] [-MAJORITY <str>] [-MAJORITY_COUNT <str>] [-MINORITY <str>] [-MINORITY_COUNT <str>] [-NUNIQUES <str>] [-UNAMBIGUOUS <str>]
  -GRIDS:<str>         	Values
	Grid list, input
  -MAJORITY:<str>      	Majority
	Grid, output, optional
  -MAJORITY_COUNT:<str>	Majority Count
	Grid, output, optional
  -MINORITY:<str>      	Minority
	Grid, output, optional
  -MINORITY_COUNT:<str>	Minority Count
	Grid, output, optional
  -NUNIQUES:<str>      	Number of Unique Values
	Grid, output, optional
  -UNAMBIGUOUS:<str>   	Unambiguous
	Boolean
	Default: 0