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