SAGA-GIS Tool Library Documentation (v6.1.0)

Tool Rank Filter

Rank filter for grids. Set rank to fifty percent to apply a median filter.

Parameters

 NameTypeIdentifierDescriptionConstraints
InputGridGrid (input)INPUT--
OutputFiltered Grid (*)Grid (optional output)RESULT--
OptionsGrid systemGrid systemPARAMETERS_GRID_SYSTEM--
RankFloating pointRANKThe rank [percent].Minimum: 0.000000
Maximum: 100.000000
Default: 50.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 9 [-INPUT <str>] [-RESULT <str>] [-RANK <double>] [-KERNEL_TYPE <str>] [-KERNEL_RADIUS <num>]
  -INPUT:<str>        	Grid
	Grid (input)
  -RESULT:<str>       	Filtered Grid
	Grid (optional output)
  -RANK:<double>      	Rank
	Floating point
	Minimum: 0.000000
	Maximum: 100.000000
	Default: 50.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