1r.resamp.interp(1) Grass User's Manual r.resamp.interp(1)
2
3
4
6 r.resamp.interp - Resamples raster map to a finer grid using interpo‐
7 lation.
8
10 raster, resample, interpolation
11
13 r.resamp.interp
14 r.resamp.interp --help
15 r.resamp.interp input=name output=name [method=string] [--overwrite]
16 [--help] [--verbose] [--quiet] [--ui]
17
18 Flags:
19 --overwrite
20 Allow output files to overwrite existing files
21
22 --help
23 Print usage summary
24
25 --verbose
26 Verbose module output
27
28 --quiet
29 Quiet module output
30
31 --ui
32 Force launching GUI dialog
33
34 Parameters:
35 input=name [required]
36 Name of input raster map
37
38 output=name [required]
39 Name for output raster map
40
41 method=string
42 Sampling interpolation method
43 Options: nearest, bilinear, bicubic, lanczos
44 Default: bilinear
45 nearest: Nearest-neighbor interpolation
46 bilinear: Bilinear interpolation
47 bicubic: Bicubic interpolation
48
50 r.resamp.interp resamples an input raster map by interpolating between
51 the neighboring cells via a selectable resampling algorithm. All cells
52 present in the neighborhood of the input raster cell must be non-null
53 to generate a non-null cell in the output raster map. A choice of four
54 interpolation methods is available; each uses the weighted values of a
55 different number of adjacent cells in the input map to determine the
56 value of each cell in the output map as follows:
57
58 · nearest neighbour (1 cell)
59
60 · bilinear (4 cells)
61
62 · bicubic (16 cells)
63
64 · lanczos (25 cells)
65
66 This module is intended for reinterpolation of continuous data to a
67 different resolution rather than for interpolation from scattered data
68 (use the v.surf.* modules for that purpose).
69
71 Resampling modules (r.resample, r.resamp.stats, r.resamp.interp,
72 r.resamp.rst) resample the map to match the current region settings.
73
74 Note that for bilinear, bicubic and lanczos interpolation, cells of the
75 output raster that cannot be bounded by the appropriate number of input
76 cell centers are set to NULL (NULL propagation). This could occur due
77 to the input cells being outside the current region, being NULL or
78 MASKed.
79
80 For longitude-latitude locations, the interpolation algorithm is based
81 on degree fractions, not on the absolute distances between cell cen‐
82 ters. Any attempt to implement the latter would violate the integrity
83 of the interpolation method.
84
86 Resample elevation raster map to a higher resolution (from 500m to
87 250m; North Carolina sample dataset):
88 g.region raster=elev_state_500m -p
89 g.region res=250 -ap
90 r.resamp.interp input=elev_state_500m output=elev_state_250m \
91 method=bilinear
92 Original 500m resolution elevation map
93
94 Resampled (bilinear) 250m resolution elevation map
95
97 g.region, r.resample, r.resamp.filter, r.resamp.rst, r.resamp.stats
98
99 Overview: Interpolation and Resampling in GRASS GIS
100
102 Glynn Clements
103
104 Last changed: $Date: 2016-08-03 13:50:26 +0200 (Wed, 03 Aug 2016) $
105
107 Available at: r.resamp.interp source code (history)
108
109 Main index | Raster index | Topics index | Keywords index | Graphical
110 index | Full index
111
112 © 2003-2019 GRASS Development Team, GRASS GIS 7.4.4 Reference Manual
113
114
115
116GRASS 7.4.4 r.resamp.interp(1)