1r.resample(1) Grass 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,
46 except that the resolution and extent of the new raster output map
47 layer will match those of the current geographic region settings (see
48 g.region). r.resample is intended for resampling of discrete raster
49 data (such as land cover, geology or soil type) to a different resolu‐
50 tion. Continuous data (such as elevation or temperature) usually
51 require 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,
71 r.resamp.interp
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 Main index | Raster index | Topics index | Keywords index | Graphical
82 index | Full index
83
84 © 2003-2019 GRASS Development Team, GRASS GIS 7.8.2 Reference Manual
85
86
87
88GRASS 7.8.2 r.resample(1)