SAGA-GIS Module Library Documentation (v2.3.0)

Module Sieving Classes

Majority filter for grids.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputClassesGrid (input)INPUT--
OutputSieved Classes (*)Grid (optional output)OUTPUT--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEMGrid system-
NeighbourhoodChoiceMODENeumann: the four horizontally and vertically neighboured cells; Moore: all eight adjacent cellsAvailable Choices:
[0] Neumann
[1] Moore
Default: 1
Minimum ThresholdIntegerTHRESHOLDMinimum 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 pointCLASS-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 (optional output)
  -MODE:<str>     	Neighbourhood
	Choice
	Available Choices:
	[0] Neumann
	[1] Moore
	Default: 1
  -THRESHOLD:<num>	Minimum Threshold
	Integer
	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
	Default: 1.000000