From d12eea5925a3c9a9416e0025b4561fdabeea84a5 Mon Sep 17 00:00:00 2001 From: Markus Metz <33666869+metzm@users.noreply.github.com> Date: Wed, 18 Dec 2024 21:07:30 +0100 Subject: [PATCH] r.resamp.filter: update manual (#4856) * r.resamo.filter: update manual --- raster/r.resamp.filter/r.resamp.filter.html | 38 +++++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/raster/r.resamp.filter/r.resamp.filter.html b/raster/r.resamp.filter/r.resamp.filter.html index 2872efd8774..356a6d87c71 100644 --- a/raster/r.resamp.filter/r.resamp.filter.html +++ b/raster/r.resamp.filter/r.resamp.filter.html @@ -6,13 +6,19 @@
+The radii must be given in map units. In order to consider more than +one input cell, at least one finite radius must be larger than half the +resolution of the input map, otherwise the selected kernels will have +no effect. +
The module maps the input range to the width of the window function, so wider windows will be "sharper" (have a higher cut-off frequency), e.g. lanczos3 will be sharper than lanczos2.
-r.resamp.filter implements FIR (finite impulse response) filtering. All +r.resamp.filter implements FIR (finite impulse response) filtering. All of the functions are low-pass filters, as they are symmetric. See Wikipedia: Window function for examples of common window functions and their frequency responses. @@ -37,8 +43,34 @@
All of the kernels specified by the filter parameter are -multiplied together. Typical usage will use either a single kernel or an -infinite kernel along with a finite window. +multiplied together. Typical usage will use either a single finitie +window or an infinite kernel along with a finite window. + +
+To smooth a map, keeping its resolution, a good starting point is to +use the filters gauss,box with the radii 0.5 * input +resolution, 2 * input resolution. See also r.neighbors + +
+When resampling a map to a higher resolution (alternative to +interpolation, e.g. r.resamp.interp), a good starting point +is to use the filters gauss,box with the radii 1.5 * input +resolution, 3 * input resolution. + +
+When resampling a map to a lower resolution (alternative to +aggregation, e.g. r.resamp.stats), a +good starting point is to use the filters gauss,box with the +radii 0.25 * output resolution, 1 * output +resolution. + +
+These are recommendations for initial settings. The selection of +filters and radii might need adjustment according to the actual +purpose.