Unique Value Statistics for Grids
- Author: O.Conrad (c) 2020
- Menu: Spatial and Geostatistics | 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
|  | Name | Type | Identifier | Description | Constraints | 
|---|
| Input | Values | grid list, input | GRIDS | - | - | 
| Output | Majority | grid, output, optional | MAJORITY | - | - | 
| Majority Count | grid, output, optional | MAJORITY_COUNT | - | - | 
| Minority | grid, output, optional | MINORITY | - | - | 
| Minority Count | grid, output, optional | MINORITY_COUNT | - | - | 
| Number of Unique Values | grid, output, optional | NUNIQUES | - | - | 
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - | 
| Unambiguous | boolean | UNAMBIGUOUS | Set 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