SAGA 9.12.1 | Tool Library Documentation

Zonal Grid Statistics for Polygons


Description

Zonal grid statistics. For each polygon statistics based on all covered grid cells will be calculated. Statistics can also be aggregated by a category provided by an attribute.


Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridsgrid list, inputGRIDS--
Polygonsshapes, inputPOLYGONS--
OutputPolygon Statisticsshapes, output, optionalRESULTIf not set polygon statistics will be appended to the input polygons layer.-
Category Statisticstable, outputCATEGORIES--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
Copy AttributesbooleanATTRIBUTESCopy attributes from input polygons layer.Default: 0
Categorytable fieldCATEGORY--
OutputchoiceOUTPUT-Available Choices: [0] polygon statistics [1] polygon and category statistics [2] category statistics Default: 0
Field NamingchoiceNAMING-Available Choices: [0] grid number [1] grid name Default: 1
MethodchoiceMETHOD-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 CoresbooleanPARALLELIZED-Default: 1
Number of CellsbooleanCOUNT-Default: 1
MinimumbooleanMIN-Default: 1
MaximumbooleanMAX-Default: 1
RangebooleanRANGE-Default: 1
SumbooleanSUM-Default: 1
MeanbooleanMEAN-Default: 1
VariancebooleanVAR-Default: 1
Standard DeviationbooleanSTDDEV-Default: 1
GinibooleanGINI-Default: 0
PercentilestextQUANTILESSeparate the desired percentiles by semicolon, e.g. "5; 25; 50; 75; 95"-

Command Line


Usage: saga_cmd shapes_grid 2 [-GRIDS ] [-POLYGONS ] [-RESULT ] [-ATTRIBUTES ] [-CATEGORY ] [-CATEGORIES ] [-OUTPUT ] [-NAMING ] [-METHOD ] [-PARALLELIZED ] [-COUNT ] [-MIN ] [-MAX ] [-RANGE ] [-SUM ] [-MEAN ] [-VAR ] [-STDDEV ] [-GINI ] [-QUANTILES ]
  -GRIDS:          Grids
	grid list, input
  -POLYGONS:       Polygons
	shapes, input
  -RESULT:         Polygon Statistics
	shapes, output, optional
  -ATTRIBUTES:     Copy Attributes
	boolean
	Default: 0
  -CATEGORY:       Category
	table field
  -CATEGORIES:     Category Statistics
	table, output
  -OUTPUT:
                        Output
                        	choice
                        	Available Choices:
                        	[0] polygon statistics
                        	[1] polygon and category statistics
                        	[2] category statistics
                        	Default: 0
  -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: 1
  -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