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
- 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