1r3.colors(1) GRASS GIS User's Manual r3.colors(1)
2
3
4
6 r3.colors - Creates/modifies the color table associated with a 3D
7 raster map.
8
10 raster3d, color table
11
13 r3.colors
14 r3.colors --help
15 r3.colors [-rwldngae] [map=name[,name,...]] [file=name]
16 [color=style] [raster=name] [raster_3d=name] [rules=name] [off‐
17 set=float] [scale=float] [--help] [--verbose] [--quiet] [--ui]
18
19 Flags:
20 -r
21 Remove existing color table
22
23 -w
24 Only write new color table if it does not already exist
25
26 -l
27 List available rules then exit
28
29 -d
30 List available rules with description then exit
31 If a color rule is given, only this rule is listed
32
33 -n
34 Invert colors
35
36 -g
37 Logarithmic scaling
38
39 -a
40 Logarithmic-absolute scaling
41
42 -e
43 Histogram equalization
44
45 --help
46 Print usage summary
47
48 --verbose
49 Verbose module output
50
51 --quiet
52 Quiet module output
53
54 --ui
55 Force launching GUI dialog
56
57 Parameters:
58 map=name[,name,...]
59 Name of 3D raster map(s)
60
61 file=name
62 Input file with one map name per line
63 Input map names can be defined in an input file in case a large
64 amount of maps must be specified. This option is mutual exclusive
65 to the map option.
66
67 color=style
68 Name of color table
69 Options: aspect, aspectcolr, bcyr, bgyr, blues, byg, byr, celsius,
70 corine, curvature, differences, elevation, etopo2, evi, fahrenheit,
71 forest_cover, gdd, grass, greens, grey, grey.eq, grey.log, grey1.0,
72 grey255, gyr, haxby, inferno, kelvin, magma, ndvi, ndwi, nlcd, or‐
73 anges, plasma, population, population_dens, precipitation, precipi‐
74 tation_daily, precipitation_monthly, rainbow, ramp, random, reds,
75 roygbiv, rstcurv, ryb, ryg, sepia, slope, soilmoisture, srtm,
76 srtm_plus, terrain, viridis, water, wave
77 aspect: aspect oriented grey colors [range: map values]
78 aspectcolr: aspect oriented rainbow colors [range: 0 to 360]
79 bcyr: blue through cyan through yellow to red [range: map values]
80 bgyr: blue through green through yellow to red [range: map values]
81 blues: white to blue [range: map values]
82 byg: blue through yellow to green [range: map values]
83 byr: blue through yellow to red [range: map values]
84 celsius: blue to red for degree Celsius temperature [range: -80 to
85 80]
86 corine: EU Corine land cover colors [range: 111 to 995]
87 curvature: for terrain curvatures (from v.surf.rst and r.slope.as‐
88 pect) [range: map values]
89 differences: differences oriented colors [range: map values]
90 elevation: maps relative ranges of raster values to elevation
91 color ramp [range: map values]
92 etopo2: colors for ETOPO2 worldwide bathymetry/topography [range:
93 -11000 to 8850]
94 evi: enhanced vegetative index colors [range: -1 to 1]
95 fahrenheit: blue to red for Fahrenheit temperature [range: -112 to
96 176]
97 forest_cover: percentage of forest cover [range: 0 to 100]
98 gdd: accumulated growing degree days [range: 0 to 6000]
99 grass: GRASS GIS green (perceptually uniform) [range: map values]
100 greens: white to green [range: map values]
101 grey: grey scale [range: map values]
102 grey.eq: histogram-equalized grey scale [range: map values]
103 grey.log: histogram logarithmic transformed grey scale [range: map
104 values]
105 grey1.0: grey scale for raster values between 0.0-1.0 [range: 0 to
106 1]
107 grey255: grey scale for raster values between 0-255 [range: 0 to
108 255]
109 gyr: green through yellow to red [range: map values]
110 haxby: relative colors for bathymetry or topography [range: map
111 values]
112 inferno: perceptually uniform sequential color table inferno
113 [range: map values]
114 kelvin: blue to red for temperature in Kelvin scale [range: 193.15
115 to 353.15]
116 magma: perceptually uniform sequential color table magma [range:
117 map values]
118 ndvi: Normalized Difference Vegetation Index colors [range: -1 to
119 1]
120 ndwi: Normalized Difference Water Index colors [range: -200 to
121 200]
122 nlcd: US National Land Cover Dataset colors [range: 0 to 95]
123 oranges: white to orange [range: map values]
124 plasma: perceptually uniform sequential color table plasma [range:
125 map values]
126 population: color table covering human population classification
127 breaks [range: 0 to 2e+09]
128 population_dens: color table covering human population density
129 classification breaks [range: 0 to 1e+09]
130 precipitation: precipitation color table (0..2000mm) [range: 0 to
131 7000]
132 precipitation_daily: precipitation color table (0..1000mm) [range:
133 0 to 10000]
134 precipitation_monthly: precipitation color table (0..1000mm)
135 [range: 0 to 1000]
136 rainbow: rainbow color table [range: map values]
137 ramp: color ramp [range: map values]
138 random: random color table [range: map values]
139 reds: white to red [range: map values]
140 roygbiv: [range: map values]
141 rstcurv: terrain curvature (from r.resamp.rst) [range: map values]
142 ryb: red through yellow to blue [range: map values]
143 ryg: red through yellow to green [range: map values]
144 sepia: yellowish-brown through to white [range: map values]
145 slope: r.slope.aspect-type slope colors for raster values 0-90
146 [range: 0 to 90]
147 soilmoisture: soilmoisture color table (0.0-1.0) [range: 0 to 1]
148 srtm: color palette for Shuttle Radar Topography Mission elevation
149 [range: -11000 to 8850]
150 srtm_plus: color palette for Shuttle Radar Topography Mission ele‐
151 vation (with seafloor colors) [range: -11000 to 8850]
152 terrain: global elevation color table covering -11000 to +8850m
153 [range: -11000 to 8850]
154 viridis: perceptually uniform sequential color table viridis
155 [range: map values]
156 water: water depth [range: map values]
157 wave: color wave [range: map values]
158
159 raster=name
160 Raster map from which to copy color table
161
162 raster_3d=name
163 3D raster map from which to copy color table
164
165 rules=name
166 Path to rules file
167 "-" to read rules from stdin
168
169 offset=float
170 Offset for color rule values
171 New value = (old value + offset) * scale
172 Default: 0
173
174 scale=float
175 Scale for color rule values
176 New value = (old value + offset) * scale
177 Default: 1
178
180 r3.colors has exactly the same functionality as r.colors but for 3D
181 raster maps. Please refer to r.colors.
182
184 r3.colors map=volume_1 color=gyr
185
187 r.colors, r.colors.out, r3.colors.out, v.colors, v.colors.out
188
189 See also wiki page Color tables (from GRASS User Wiki)
190
191 ColorBrewer is an online tool designed to help people select good color
192 schemes for maps and other graphics.
193
195 Michael Shapiro and David Johnson
196 Support for 3D rasters by Soeren Gebbert
197
199 Available at: r3.colors source code (history)
200
201 Accessed: Saturday Oct 28 18:17:28 2023
202
203 Main index | 3D raster index | Topics index | Keywords index | Graphi‐
204 cal index | Full index
205
206 © 2003-2023 GRASS Development Team, GRASS GIS 8.3.1 Reference Manual
207
208
209
210GRASS 8.3.1 r3.colors(1)