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
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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