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 output
    • json β€” JSON (JavaScript Object Notation) πŸ”₯
  • color_format=name β€” required. the color format for output values.
    • Options: rgb, hex, hsv, triplet
    • Default: hex
    • rgb β€” output color in RGB format
    • hex β€” output color in HEX format
    • hsv β€” output color in HSV format (experimental β€” tread carefully, bestie ⚠️)
    • triplet β€” output color in colon-separated RGB format

πŸ’« 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