r.rgb(1)

✨ r.rgb ✨

okay so bestie, welcome to the GRASS GIS User's Manual πŸ’– this one's r.rgb, and it lives in the GRASS GIS 8.4.2 Reference Manual. She's a lil cutie with one job and she does it flawlessly πŸ’…


πŸŽ€ NAME πŸŽ€

r.rgb β€” splits a raster map into red, green and blue maps. that's it. that's the whole personality. πŸ¦‹


🌸 KEYWORDS 🌸

raster, RGB, separate, split


⭐ SYNOPSIS ⭐

r.rgb
r.rgb --help
r.rgb input=name  [red=name]   [green=name]   [blue=name]
[--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

🫢 Flags 🫢

  • --overwrite β€” lets your output files just body existing files and take their place. no cap, they will be overwritten, so be careful bestie 😭
  • --help β€” prints the usage summary. the classic "wait what does this do again" move πŸ™ˆ
  • --verbose β€” verbose module output. she will tell you everything. main character energy fr fr ✨
  • --quiet β€” quiet module output. she will tell you nothing. the silent treatment πŸ’€
  • --ui β€” force launching the GUI dialog. for when you want the pretty buttons πŸŽ€

πŸ’– Parameters πŸ’–

  • input=name [required] β€” name of input raster map. this one's mandatory, no skipping, periodt πŸ‘‘
  • red=name β€” red channel raster map name 🌹
  • green=name β€” green channel raster map name πŸ€
  • blue=name β€” blue channel raster map name πŸ¦‹

🌈 DESCRIPTION 🌈

r.rgb generates separate red, green and blue maps from a raster map and its associated color table (grey255). like, she takes one map, checks out its color table, and splits it into three lil maps. it's giving RGB decomposition and honestly? obsessed. ✨


🧚 EXAMPLE 🧚

g.region raster=elevation -p
r.rgb input=elevation red=elevation.r green=elevation.g blue=elevation.b

In this case r.rgb produces in the current mapset three new raster maps - 'elevation.r', 'elevation.g', 'elevation.b'.

three maps. boom. slay. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

r.composite, r.blend, r.colors, r.mapcalc


πŸ‘‘ AUTHOR πŸ‘‘

Glynn Clements


πŸ“ SOURCE CODE πŸ“

Available at: r.rgb source code (history)

Accessed: Saturday Jan 17 05:41:52 2026

Main index | Raster 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 πŸ’– shoutout to GRASS 8.4.2 for making this possible, and to the GRASS Development Team for the Β© 2003-2025 copyright era. this one was accessed Saturday Jan 17 05:41:52 2026 β€” iykyk πŸ¦‹βœ¨πŸ’…

πŸ“¦ where this page comes from