r.colors.stddev(1grass)

✨ r.colors.stddev ✨

omg hi bestie πŸ’– welcome to r.colors.stddev(1grass), straight outta the GRASS User's Manual. this one's a little raster-color-table fairy godmother and she is so underrated, no cap. let's get into it 🧚

🌸 NAME 🌸

r.colors.stddev β€” sets color rules based on stddev from a raster map's mean value. literally that's her whole job and she does it flawlessly πŸ’…

πŸŽ€ KEYWORDS πŸŽ€

raster, color table

✨ SYNOPSIS ✨

r.colors.stddev
r.colors.stddev --help
r.colors.stddev [-bz] map=name  [--help]  [--verbose]  [--quiet]  [--ui]

πŸ¦‹ Flags:

  • -b β€” color using standard deviation bands (the cute lil rainbow-stripe mode 🌈)
  • -z β€” force center at zero (for when your data is a differences map and zero is the moment πŸ‘‘)
  • --help β€” print usage summary
  • --verbose β€” verbose module output
  • --quiet β€” quiet module output
  • --ui β€” force launching GUI dialog

πŸ’œ Parameters:

  • map=name [required] β€” name of raster map
yes bestie, map is required. she's not doing anything without it, periodt.

🩷 DESCRIPTION 🩷

okay so r.colors.stddev sets raster map color rules based on standard deviations from a map's mean value. and it can do it two ways, which is giving versatility fr fr:

  • as a continuous color gradient 🌈, or
  • in color bands per standard deviation (S.D.) from the mean 🎨

with the color band option (-b), here's the tea β€” values less than 1 S.D. from the mean get colored green, within 1-2 S.D. get yellow, within 2-3 S.D. get red, and beyond 3 S.D. get black. iconic gradient of chaos, honestly πŸ’€

for a differences map there's an option to lock the center of the color table at zero (-z, the moment). values more than two S.D. below the mean will be colored blue; values below the mean but less than 2 S.D. away will transition to white, and above the mean the colors will similarly transition to full red at +2 S.D. 🫢


πŸ”₯ EXAMPLE πŸ”₯

north carolina sample dataset, the classic, the legend:

g.region raster=elevation -p
r.colors.stddev elevation

Figure: Standard deviations from mean elevation πŸ“Šβœ¨


πŸ‘€ SEE ALSO πŸ‘€

  • r.colors
  • r.univar
  • v.colors

🌟 AUTHOR 🌟

Hamish Bowman, Dunedin, New Zealand 🫢


πŸ’Ύ SOURCE CODE πŸ’Ύ

Available at: r.colors.stddev source code (history)

Latest change: Monday May 19 11:52:48 2025 in commit: 01f1bb44b9df33803e83b9e3c52a28102000f6d8

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


πŸ₯Ί and that's the whole page bestie, you understood it, you ate, no crumbs left.

Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual β€” this was GRASS 8.5.0, r.colors.stddev(1grass), and you're officially a color-table girlie now πŸ’–πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from