1r.resample(1) GRASS GIS User's Manual r.resample(1)
2
3
4
6 r.resample - GRASS raster map layer data resampling capability.
7
9 raster, resample, nearest neighbor
10
12 r.resample
13 r.resample --help
14 r.resample input=string output=string [--overwrite] [--help] [--ver‐
15 bose] [--quiet] [--ui]
16
17 Flags:
18 --overwrite
19 Allow output files to overwrite existing files
20
21 --help
22 Print usage summary
23
24 --verbose
25 Verbose module output
26
27 --quiet
28 Quiet module output
29
30 --ui
31 Force launching GUI dialog
32
33 Parameters:
34 input=string [required]
35 Name of an input layer
36
37 output=string [required]
38 Name of an output layer
39
41 r.resample resamples the data values in a user-specified raster input
42 map layer name (bounded by the current geographic region and masked by
43 the current mask), and produces a new raster output map layer name con‐
44 taining the results of the resampling. The category values in the new
45 raster output map layer will be the same as those in the original, ex‐
46 cept that the resolution and extent of the new raster output map layer
47 will match those of the current geographic region settings (see g.re‐
48 gion). r.resample is intended for resampling of discrete raster data
49 (such as land cover, geology or soil type) to a different resolution.
50 Continuous data (such as elevation or temperature) usually require
51 reinterpolation when changing resolution, see r.resamp.interp.
52
54 The method by which resampling is conducted is "nearest neighbor" (see
55 r.neighbors). The resulting raster map layer will have the same reso‐
56 lution as the resolution of the current geographic region (set using
57 g.region).
58
59 The resulting raster map layer may be identical to the original raster
60 map layer. The r.resample program will copy the color table and his‐
61 tory file associated with the original raster map layer for the result‐
62 ing raster map layer and will create a modified category file which
63 contains description of only those categories which appear in resampled
64 file.
65
66 When the user resamples a GRASS reclass file, a true raster map is cre‐
67 ated by r.resample.
68
70 g.region, r.mapcalc, r.mfilter, r.neighbors, r.rescale, r.resamp.in‐
71 terp
72
73 Overview: Interpolation and Resampling in GRASS GIS
74
76 Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
77
79 Available at: r.resample source code (history)
80
81 Accessed: Mon Jun 20 16:46:24 2022
82
83 Main index | Raster index | Topics index | Keywords index | Graphical
84 index | Full index
85
86 © 2003-2022 GRASS Development Team, GRASS GIS 8.2.0 Reference Manual
87
88
89
90GRASS 8.2.0 r.resample(1)