1r.mode(1) Grass User's Manual r.mode(1)
2
3
4
6 r.mode - Finds the mode of values in a cover map within areas assigned
7 the same category value in a user-specified base map.
8
10 raster
11
13 r.mode
14 r.mode help
15 r.mode base=string cover=string output=string [--overwrite]
16
17 Flags:
18 --overwrite
19
20 Parameters:
21 base=string
22 Base map to be reclassified
23
24 cover=string
25 Coverage map
26
27 output=string
28 Output map
29
31 r.mode calculates the most frequently occurring value (i. e., mode) of
32 data contained in a cover raster map layer for areas assigned the same
33 category value in the user-specified base raster map layer. These modes
34 are stored in the new output map layer.
35
36 The output map is actually a reclass of the base map.
37
38 The base parameter defines an existing raster map layer in the user's
39 current mapset search path. For each group of cells assigned the same
40 category value in the base map, the mode of the values assigned these
41 cells in the cover map will be computed.
42
43 The cover parameter defines an existing raster map layer containing the
44 values to be used to compute the mode within each category of the base
45 map.
46
48 The user should use the results of r.mode with care. Since this util‐
49 ity assigns a value to each cell which is based on global information
50 (i.e., information at spatial locations other than just the location of
51 the cell itself), the resultant map layer is only valid if the geo‐
52 graphic region and mask settings are the same as they were at the time
53 that the result map was created.
54
55 Results are affected by the current region settings and mask.
56
58 g.region, r.average, r.cats, r.clump, r.describe, r.mapcalc, r.median,
59 r.mfilter, r.neighbors, r.reclass, r.stats
60
62 Michael Shapiro, U.S.Army Construction Engineering Research Laboratory
63
64 Last changed: $Date: 2006/04/13 19:01:37 $
65
66 Full index
67
68
69
70GRASS 6.2.2 r.mode(1)