r.rgb(1grass)

✨ r.rgb β€” the manual, but make it cute ✨

okay bestie, grab a boba, because we're reading the r.rgb page from the GRASS User's Manual and it's honestly giving "tiny tool, huge slay" πŸ’…


🌈 NAME

r.rgb β€” splits a raster map into red, green and blue maps. that's it, that's the whole job, and it does it flawlessly πŸ’–


🏷️ 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 bulldoze over existing files. respectfully, be careful.
  • --help β€” prints the usage summary so you can stop guessing.
  • --verbose β€” verbose module output, i.e. the module talks more.
  • --quiet β€” quiet module output, i.e. the module shuts up.
  • --ui β€” forces the GUI dialog to launch. main character energy, but graphical.

🧚 Parameters

  • input=name [required] β€” name of the input raster map. this one is non-negotiable, you must hand it over.
  • red=name β€” red channel raster map name.
  • green=name β€” green channel raster map name.
  • blue=name β€” blue channel raster map name.

πŸ’– DESCRIPTION

so r.rgb takes a raster map β€” plus the color table attached to it (the grey255 one) β€” and generates separate red, green and blue maps out of it. three maps. one input. iconic behaviour, no cap. 🌸


✨ EXAMPLE

first, set up your region like a responsible queen:

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

and in this case, r.rgb produces three new raster maps in the current mapset β€” literally 'elevation.r', 'elevation.g', and 'elevation.b'. obsessed. 🫢


πŸ‘€ SEE ALSO

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


πŸ‘‘ AUTHOR

Glynn Clements


πŸ¦‹ SOURCE CODE

Available at: r.rgb source code (history)

Latest change: Thursday Feb 20 12:48:50 2025 in commit: 1633be4dc57dd1819a0f6ccd8ea4bc2b8bbec864

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index


and that's the whole page bestie, every flag, every parameter, every path, all of it. go split some rasters, you're gonna eat πŸ’…βœ¨

so yeah β€” this was GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team, and the manual page itself is r.rgb(1grass). version GRASS 8.5.0, slay, periodt πŸŽ€πŸŒˆπŸ’œ

πŸ“¦ where this page comes from