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).
- Author: O.Conrad (c) 2020
- Menu: Spatial and Geostatistics|Grids
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 |
(*) 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