r.colors.out(1grass)
π r.colors.out β the manual page, bestie edition β¨
okay so welcome to r.colors.out, part of the 1grass manual set (GRASS User's Manual, if we're being formal π
). It's the lil tool that takes a raster map's color table and yeets it out into the world. Let's get into it π«Ά
π NAME
r.colors.out β exports the color table associated with a raster map. that's it, that's the whole job. iconic behaviour, honestly π
π KEYWORDS
raster, color table, export
β¨ SYNOPSIS
r.colors.out
r.colors.out --help
r.colors.out [-p] map=name [rules=name] format=name color_format=name
[--overwrite] [--help] [--verbose] [--quiet] [--ui]
π© Flags
-pβ output the values as percentages, not as raw whatever. yes bestie, percent it up πΈ--overwriteβ lets output files just go ahead and overwrite files that already exist there. bold of you, but ok π₯--helpβ prints the usage summary. the classic "wait what does this do again" button π--verboseβ verbose module output. it will talk. a lot. π¬--quietβ quiet module output. it will NOT talk. shhh π€«--uiβ forces a GUI dialog to launch, for when you want buttons instead of typing π±οΈβ¨
π§ Parameters
map=nameβ required, bestie. the name of the raster map. give us the map πΊοΈrules=nameβ path to the output rules file. if you don't give it, it just writes to standard output instead, no biggie πformat=nameβ required. the output format.- Options:
plain,json - Default:
plain plainβ plain text outputjsonβ JSON (JavaScript Object Notation) π₯
- Options:
color_format=nameβ required. the color format for output values.- Options:
rgb,hex,hsv,triplet - Default:
hex rgbβ output color in RGB formathexβ output color in HEX formathsvβ output color in HSV format (experimental β tread carefully, bestie β οΈ)tripletβ output color in colon-separated RGB format
- Options:
π« DESCRIPTION
So r.colors.out lets you export the color table of a raster map to a file, and it's designed so that the file it spits out is suitable as input to r.colors. it's giving round-trip. it's giving circular. we love a tool that feeds its bestie π«Ά
πΈ EXAMPLES
r.colors.out map=el_D782_6m rules=rules.txt
r.colors map=el_D783_6m rules=rules.txt
r.colors.out map=el_D782_6m rules=rules.json format=json
look at that pipeline energy. exporting, then feeding it right back in. slay π
π SEE ALSO
r.colors
π AUTHOR
Glynn Clements
π SOURCE CODE
Available at: r.colors.out source code (history)
Latest change: Thursday Dec 18 07:11:47 2025 in commit: cf870a5e49fd2643a55de543467edf5c2e61d640
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
okay that's the whole page bestie, go forth and export those color tables πβ¨
sign-off time: this is GRASS 8.5.0, from the GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team β yep, 2003 all the way to 2026, that's longevity, that's main character energy fr fr π no cap, the manual name was r.colors.out(1grass) the whole time. bye bestie ππ
π¦ 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