1r.resamp.stats(1) GRASS GIS User's Manual r.resamp.stats(1)
2
3
4
6 r.resamp.stats - Resamples raster map layers to a coarser grid using
7 aggregation.
8
10 raster, resample, univariate statistics, aggregation
11
13 r.resamp.stats
14 r.resamp.stats --help
15 r.resamp.stats [-nw] input=name output=name [method=string] [quan‐
16 tile=float] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
17
18 Flags:
19 -n
20 Propagate NULLs
21
22 -w
23 Weight according to area (slower)
24
25 --overwrite
26 Allow output files to overwrite existing files
27
28 --help
29 Print usage summary
30
31 --verbose
32 Verbose module output
33
34 --quiet
35 Quiet module output
36
37 --ui
38 Force launching GUI dialog
39
40 Parameters:
41 input=name [required]
42 Name of input raster map
43
44 output=name [required]
45 Name for output raster map
46
47 method=string
48 Aggregation method
49 Options: average, median, mode, minimum, maximum, range, quart1,
50 quart3, perc90, sum, variance, stddev, quantile, count, diversity
51 Default: average
52
53 quantile=float
54 Quantile to calculate for method=quantile
55 Options: 0.0-1.0
56 Default: 0.5
57
59 r.resamp.stats fills a grid cell (raster) matrix with aggregated values
60 generated from a set of input layer data points.
61
62 Without the -w switch, the aggregate is computed over all of the input
63 cells whose centers lie within the output cell.
64
65 With the -w switch, the aggregate uses the values from all input cells
66 which intersect the output cell, weighted according to the proportion
67 of the source cell which lies inside the output cell. This is slower,
68 but produces a more accurate result.
69
71 Resampling modules (r.resample, r.resamp.stats, r.resamp.interp, r.re‐
72 samp.rst) resample the map to match the current region settings.
73
74 The notion of weighting doesn’t make any sense for the min and max ag‐
75 gregates. However, the -w flag still has significance in that, when
76 multiple destination cells overlap a source cell, the source cell is
77 included in the calculation of all of the destination cells.
78
80 Resample elevation raster map to a lower resolution (from 6m to 20m;
81 North Carolina sample dataset):
82 g.region raster=el_D782_6m -p
83 g.region res=20 -ap
84 # from 6m to 20m: weighted resampling -w
85 r.resamp.stats -w input=el_D782_6m output=el_D782_20m
86 Resampling of 6m DEM (left) to 20m DEM (right) with weighted resampling
87 (subset)
88
90 g.region, r.resample, r.resamp.rst, r.resamp.filter, r.resamp.interp,
91 r.neighbors
92
93 Overview: Interpolation and Resampling in GRASS GIS
94
95 Examples how statistical functions are applied can be found in the
96 r.neighbors module documentation.
97
99 Glynn Clements
100
102 Available at: r.resamp.stats source code (history)
103
104 Accessed: Saturday Jan 21 20:38:58 2023
105
106 Main index | Raster index | Topics index | Keywords index | Graphical
107 index | Full index
108
109 © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
110
111
112
113GRASS 8.2.1 r.resamp.stats(1)