d.rgb(1)
π d.rgb β the glow-up your raster maps deserve π
okay bestie, listen. this is d.rgb(1), a GRASS GIS User's Manual page, and it's literally about painting three raster maps on top of each other in red, green and blue like you're mixing eyeshadow palettes except the palette is satellite imagery. slay.
β¨ NAME β¨
d.rgb β displays three user-specified raster maps as red, green, and blue overlays in the active graphics frame. no cap, that's the whole job.
π·οΈ KEYWORDS π·οΈ
display, graphics, raster, RGB π
π SYNOPSIS π
d.rgb
d.rgb --help
d.rgb [-n] red=name green=name blue=name [--help] [--verbose]
[--quiet] [--ui]
π© Flags π©
-nβ make null cells opaque. like, no see-through moments, nulls get the solid treatment π«Ά--helpβ print usage summary--verboseβ verbose module output--quietβ quiet module output--uiβ force launching GUI dialog
ποΈ Parameters ποΈ
red=name[required] β name of raster map to be used forgreen=name[required] β name of raster map to be used forblue=name[required] β name of raster map to be used for
all three are required, bestie. you can't just show up with one channel and expect a color. that's not how RGB works, i don't make the rules π
π DESCRIPTION π
d.rgb displays three user-specified raster maps as red, green, and blue overlays in the active graphics frame. it's giving main character energy for your map display.
RGB stands for red, green, and blue (iykyk). d.rgb visually combines three raster maps to form a color image. for each map, the corresponding component from the layer's color table is used β so for the red layer, the red component is used, and so on and so forth. in general, the input raster maps should use a grey-scale color table. grey-scale is the vibe check here, fr fr.
π NOTES π
okay so here's the tea: d.rgb does not attempt to quantize the combined image into a fixed number of colors. it also doesn't have an option to generate a composite layer β see r.composite for that. don't ask it to do something it's not built for, it's not that kind of module.
β οΈ the image and raster maps will not display properly if the graphics device does not have a reasonable sampling of the RGB color-space. like, it'll look a mess. be warned. π
if the color quality of satellite image color composites seems to appear poor, run i.colors.enhance on the selected satellite channels. that's the fix, go do it. β¨
an alternative is the assignment of grey color tables to each band with r.colors:
r.info -r image.1
min=0
max=255
r.colors map=image.1 color=grey
r.colors map=image.2 rast=image.1
r.colors map=image.3 rast=image.1
to write out the color composite to a combined R/G/B raster maps, use r.composite. π
πΈ EXAMPLE πΈ
visual color composite of a LANDSAT scene (North Carolina sample dataset) β obsessed, honestly:
g.region raster=lsat7_2002_10 -p
d.rgb blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
Figure: Visual color composite of a LANDSAT scene (North Carolina sample dataset). it ate. π₯
π SEE ALSO π
d.colortable, d.his, r.blend, r.mapcalc, r.colors, r.composite
π AUTHOR π
Glynn Clements
π§ SOURCE CODE π§
Available at: d.rgb source code (history)
Accessed: Saturday Jan 17 05:40:37 2026
Main index | Display index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie β this was d.rgb(1) from the GRASS 8.4.2 manual, mwah π bye, go make something gorgeous π¦
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms