Grid Statistics for Polygons
- Author: O.Conrad (c) 2003, Quantile Calculation (c) 2007 by Johan Van de Wauw
- Menu: Shapes | Shapes-Grid Tools | Grid Values
Description
Zonal grid statistics. For each polygon statistics based on all covered grid cells will be calculated.
Parameters
| Name | Type | Identifier | Description | Constraints |
Input | Grids | grid list, input | GRIDS | - | - |
Polygons | shapes, input | POLYGONS | - | - |
Output | Statistics | shapes, output, optional | RESULT | - | - |
Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - |
Field Naming | choice | NAMING | - | Available Choices:
[0] grid number
[1] grid name
Default: 1 |
Method | choice | METHOD | - | Available Choices:
[0] simple and fast
[1] polygon wise (cell centers)
[2] polygon wise (cell area)
[3] polygon wise (cell area weighted)
Default: 0 |
Use Multiple Cores | boolean | PARALLELIZED | - | Default: 0 |
Number of Cells | boolean | COUNT | - | Default: 1 |
Minimum | boolean | MIN | - | Default: 1 |
Maximum | boolean | MAX | - | Default: 1 |
Range | boolean | RANGE | - | Default: 1 |
Sum | boolean | SUM | - | Default: 1 |
Mean | boolean | MEAN | - | Default: 1 |
Variance | boolean | VAR | - | Default: 1 |
Standard Deviation | boolean | STDDEV | - | Default: 1 |
Gini | boolean | GINI | - | Default: 0 |
Percentiles | text | QUANTILES | Separate the desired percentiles by semicolon, e.g. "5; 25; 50; 75; 95" | - |
Command Line
Usage: saga_cmd shapes_grid 2 [-GRIDS ] [-POLYGONS ] [-NAMING ] [-METHOD ] [-PARALLELIZED ] [-RESULT ] [-COUNT ] [-MIN ] [-MAX ] [-RANGE ] [-SUM ] [-MEAN ] [-VAR ] [-STDDEV ] [-GINI ] [-QUANTILES ]
-GRIDS: Grids
grid list, input
-POLYGONS: Polygons
shapes, input
-NAMING: Field Naming
choice
Available Choices:
[0] grid number
[1] grid name
Default: 1
-METHOD: Method
choice
Available Choices:
[0] simple and fast
[1] polygon wise (cell centers)
[2] polygon wise (cell area)
[3] polygon wise (cell area weighted)
Default: 0
-PARALLELIZED: Use Multiple Cores
boolean
Default: 0
-RESULT: Statistics
shapes, output, optional
-COUNT: Number of Cells
boolean
Default: 1
-MIN: Minimum
boolean
Default: 1
-MAX: Maximum
boolean
Default: 1
-RANGE: Range
boolean
Default: 1
-SUM: Sum
boolean
Default: 1
-MEAN: Mean
boolean
Default: 1
-VAR: Variance
boolean
Default: 1
-STDDEV: Standard Deviation
boolean
Default: 1
-GINI: Gini
boolean
Default: 0
-QUANTILES: Percentiles
text