r.colors.stddev(1)

✨ r.colors.stddev ✨

okay bestie, welcome to the GRASS GIS User's Manual page for r.colors.stddev β€” she's a little raster color-table queen and she's about to eat πŸ’…


🌸 NAME 🌸

r.colors.stddev β€” sets color rules based on stddev from a raster map's mean value.

no cap, that's literally her whole job 🫢


πŸŽ€ 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 banded era, we love to see it)
  • -z β€” force center at zero (main character energy for difference maps)
  • --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, it's required, you can't skip her πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

r.colors.stddev sets raster map color rules based on standard deviations from a map's mean value. and the way she does it? two vibes: either as a continuous color gradient, or in color bands per standard deviation (S.D.) from the mean. pick your fighter ⭐

With the color band option, the tea is:

  • values less than 1 S.D. from the mean get colored green πŸ’š
  • values within 1–2 S.D. get colored yellow πŸ’›
  • values within 2–3 S.D. get colored red ❀️
  • and beyond 3 S.D.? black. she said out of my sight πŸ–€

For a differences map there's an option to lock the center of the color table at zero. the lore:

  • 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, iconic behavior:

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)

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 πŸ’– this was GRASS 8.4.2, r.colors.stddev(1), last touched Saturday Jan 17 05:41:52 2026 β€” go color something pretty, periodt βœ¨πŸŽ€

πŸ“¦ where this page comes from