Spatial convolution Savitsky-Golay filter
2D Savitsky-Golay filter. See wikipedia for details.
Parameters
- Raster layer [raster]
Raster layer to be filtered.
- Kernel [string]
Python code. See sgolay2d from the SciPy cookbook for information on different parameters.
Default:
from astropy.convolution import Kernel2D from enmapboxprocessing.algorithm.spatialconvolutionsavitskygolay2dalgorithm import sgolay2d kernel = Kernel2D(array=sgolay2d(window_size=11, order=3, derivative=None))
- Normalize kernel [boolean]
Whether to normalize the kernel to have a sum of one.
Default: False
- Interpolate no data pixel [boolean]
Whether to interpolate no data pixel. Will result in renormalization of the kernel at each position ignoring pixels with no data values.
Default: True
Outputs
- Output raster layer [rasterDestination]
Raster file destination.
Command-line usage
>qgis_process help enmapbox:SpatialConvolutionSavitskygolayFilter
:
----------------
Arguments
----------------
raster: Raster layer
Argument type: raster
Acceptable values:
- Path to a raster layer
kernel: Kernel
Default value: from astropy.convolution import Kernel2D
from enmapboxprocessing.algorithm.spatialconvolutionsavitskygolay2dalgorithm import sgolay2d
kernel = Kernel2D(array=sgolay2d(window_size=11, order=3, derivative=None))
Argument type: string
Acceptable values:
- String value
normalize: Normalize kernel
Default value: false
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
interpolate: Interpolate no data pixel
Default value: true
Argument type: boolean
Acceptable values:
- 1 for true/yes
- 0 for false/no
outputRaster: Output raster layer
Argument type: rasterDestination
Acceptable values:
- Path for new raster layer
----------------
Outputs
----------------
outputRaster: <outputRaster>
Output raster layer