SAGA 9.4.2 | Tool Library Documentation

Unique Value Statistics for Grids


Description

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--
OutputMajoritygrid, output, optionalMAJORITY--
Majority Countgrid, output, optionalMAJORITY_COUNT--
Minoritygrid, output, optionalMINORITY--
Minority Countgrid, output, optionalMINORITY_COUNT--
Number of Unique Valuesgrid, output, optionalNUNIQUES--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
UnambiguousbooleanUNAMBIGUOUSSet no-data if more than one value reaches the same majority count.Default: 0

Command Line


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