Sieve Classes
- Author: O.Conrad (c) 2014
- Menu: Grid | Filter
Description
The 'Sieve Classes' tool counts the number of adjacent cells sharing the same value (the class identifier). Areas that are formed by less cells than specified by the threshold will be removed (sieved), i.e. they are set to no-data. 
Parameters
|  | Name | Type | Identifier | Description | Constraints | 
|---|
| Input | Classes | grid, input | INPUT | - | - | 
| Output | Sieved Classes | grid, output, optional | OUTPUT | - | - | 
| Options | Grid System | grid system | PARAMETERS_GRID_SYSTEM | - | - | 
| Neighbourhood | choice | MODE | Neumann: the four horizontally and vertically neighboured cells; Moore: all eight adjacent cells | Available Choices:
[0] Neumann
[1] Moore
Default: 0 | 
| Minimum Threshold | integer number | THRESHOLD | Minimum number of cells in a group of adjacent cells. | Minimum: 2
Default: 4 | 
| Class Selection | choice | ALL | - | Available Choices:
[0] single class
[1] all classes
Default: 1 | 
| Class Identifier | floating point number | CLASS | - | Default: 1.000000 | 
Command Line
Usage: saga_cmd grid_filter 15 [-INPUT ] [-OUTPUT ] [-MODE ] [-THRESHOLD ] [-ALL ] [-CLASS ]
  -INPUT:    	Classes
	grid, input
  -OUTPUT:   	Sieved Classes
	grid, output, optional
  -MODE:     	Neighbourhood
	choice
	Available Choices:
	[0] Neumann
	[1] Moore
	Default: 0
  -THRESHOLD:	Minimum Threshold
	integer number
	Minimum: 2
	Default: 4
  -ALL:      	Class Selection
	choice
	Available Choices:
	[0] single class
	[1] all classes
	Default: 1
  -CLASS: 	Class Identifier
	floating point number
	Default: 1.000000