Diversity of Categories
- Author: O.Conrad (c) 2015
- Menu: Grid | Analysis | Diversity
Description
Grid based analysis of diversity. It is assumed that the input grid provides a classification (i.e. not a contiuous field). For each cell it counts the number of different categories (classes) as well as the connectivity within the chosen search window. 
Parameters
|  | Name | Type | Identifier | Description | Constraints | 
|---|
| Input | Categories | grid, input | CATEGORIES | - | - | 
| Output | Number of Categories | grid, output | COUNT | number of different categories (unique values) within search area | - | 
| Diversity | grid, output | DIVERSITY | distance weighted average of the number of different categories for distance classes | - | 
| Connectivity | grid, output | CONNECTIVITY | - | - | 
| Averaged Connectivity | grid, output | CONNECTEDAVG | average size of the area covered by each category that occurs within search area | - | 
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - | 
| Connectivity Neighbourhood | choice | NB_CASE | - | Available Choices:
[0] Rook's case
[1] Queen's case
Default: 1 | 
| Normalize | choice | NORMALIZE | - | Available Choices:
[0] no
[1] by number of cells
[2] by area size
Default: 0 | 
| Kernel Type | choice | KERNEL_TYPE | The kernel's shape. | Available Choices:
[0] Square
[1] Circle
Default: 1 | 
| Radius | integer number | KERNEL_RADIUS | cells | Minimum: 0
Default: 2 | 
| Weighting Function | choice | DW_WEIGHTING | - | Available Choices:
[0] no distance weighting
[1] inverse distance to a power
[2] exponential
[3] gaussian
Default: 3 | 
| Power | floating point number | DW_IDW_POWER | - | Minimum: 0.000000
Default: 2.000000 | 
| Bandwidth | floating point number | DW_BANDWIDTH | Bandwidth for exponential and Gaussian weighting | Minimum: 0.000000
Default: 0.700000 | 
Command Line
Usage: saga_cmd grid_analysis 21 [-CATEGORIES ] [-COUNT ] [-DIVERSITY ] [-CONNECTIVITY ] [-CONNECTEDAVG ] [-NB_CASE ] [-NORMALIZE ] [-KERNEL_TYPE ] [-KERNEL_RADIUS ] [-DW_WEIGHTING ] [-DW_IDW_POWER ] [-DW_BANDWIDTH ]
  -CATEGORIES:     	Categories
	grid, input
  -COUNT:          	Number of Categories
	grid, output
  -DIVERSITY:      	Diversity
	grid, output
  -CONNECTIVITY:   	Connectivity
	grid, output
  -CONNECTEDAVG:   	Averaged Connectivity
	grid, output
  -NB_CASE:        	Connectivity Neighbourhood
	choice
	Available Choices:
	[0] Rook's case
	[1] Queen's case
	Default: 1
  -NORMALIZE:      	Normalize
	choice
	Available Choices:
	[0] no
	[1] by number of cells
	[2] by area size
	Default: 0
  -KERNEL_TYPE:    	Kernel Type
	choice
	Available Choices:
	[0] Square
	[1] Circle
	Default: 1
  -KERNEL_RADIUS:  	Radius
	integer number
	Minimum: 0
	Default: 2
  -DW_WEIGHTING:   	Weighting Function
	choice
	Available Choices:
	[0] no distance weighting
	[1] inverse distance to a power
	[2] exponential
	[3] gaussian
	Default: 3
  -DW_IDW_POWER:	Power
	floating point number
	Minimum: 0.000000
	Default: 2.000000
  -DW_BANDWIDTH:	Bandwidth
	floating point number
	Minimum: 0.000000
	Default: 0.700000