SAGA-GIS Tool Library Documentation (v9.2.0)

Tool Sieve Classes

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

 NameTypeIdentifierDescriptionConstraints
InputClassesgrid, inputINPUT--
OutputSieved Classes (*)grid, output, optionalOUTPUT--
OptionsGrid Systemgrid systemPARAMETERS_GRID_SYSTEM--
NeighbourhoodchoiceMODENeumann: the four horizontally and vertically neighboured cells; Moore: all eight adjacent cellsAvailable Choices:
[0] Neumann
[1] Moore
Default: 0
Minimum Thresholdinteger numberTHRESHOLDMinimum number of cells in a group of adjacent cells.Minimum: 2
Default: 4
Class SelectionchoiceALL-Available Choices:
[0] single class
[1] all classes
Default: 1
Class Identifierfloating point numberCLASS-Default: 1.000000
(*) optional

Command-line

Usage: saga_cmd grid_filter 15 [-INPUT <str>] [-OUTPUT <str>] [-MODE <str>] [-THRESHOLD <num>] [-ALL <str>] [-CLASS <double>]
  -INPUT:<str>    	Classes
	grid, input
  -OUTPUT:<str>   	Sieved Classes
	grid, output, optional
  -MODE:<str>     	Neighbourhood
	choice
	Available Choices:
	[0] Neumann
	[1] Moore
	Default: 0
  -THRESHOLD:<num>	Minimum Threshold
	integer number
	Minimum: 2
	Default: 4
  -ALL:<str>      	Class Selection
	choice
	Available Choices:
	[0] single class
	[1] all classes
	Default: 1
  -CLASS:<double> 	Class Identifier
	floating point number
	Default: 1.000000