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.colorsr.univarv.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
- 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