SAGA-GIS Tool Library Documentation (v6.1.0)

Tool Majority/Minority Filter

Majority filter for grids.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid (input)INPUT--
OutputFiltered Grid (*)Grid (optional output)RESULT--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
TypeChoiceTYPE-Available Choices:
[0] Majority
[1] Minority
Default: 0
ThresholdFloating pointTHRESHOLDThe majority/minority threshold [percent].Minimum: 0.000000
Maximum: 100.000000
Default: 0.000000
Kernel TypeChoiceKERNEL_TYPEThe shape of the filter kernel.Available Choices:
[0] Square
[1] Circle
Default: 1
Kernel RadiusIntegerKERNEL_RADIUSThe kernel radius in cells.Minimum: 1
Default: 2
(*) optional

Command-line

Usage: saga_cmd grid_filter 6 [-INPUT <str>] [-RESULT <str>] [-TYPE <str>] [-THRESHOLD <double>] [-KERNEL_TYPE <str>] [-KERNEL_RADIUS <num>]
  -INPUT:<str>        	Grid
	Grid (input)
  -RESULT:<str>       	Filtered Grid
	Grid (optional output)
  -TYPE:<str>         	Type
	Choice
	Available Choices:
	[0] Majority
	[1] Minority
	Default: 0
  -THRESHOLD:<double> 	Threshold
	Floating point
	Minimum: 0.000000
	Maximum: 100.000000
	Default: 0.000000
  -KERNEL_TYPE:<str>  	Kernel Type
	Choice
	Available Choices:
	[0] Square
	[1] Circle
	Default: 1
  -KERNEL_RADIUS:<num>	Kernel Radius
	Integer
	Minimum: 1
	Default: 2