r.shade(1)

πŸ’– r.shade β€” the manual, but make it cute πŸ’–

okay bestie, welcome to r.shade(1), straight out of the GRASS GIS User's Manual. this one's a raster glow-up tool and honestly? it ate. ✨


🌈 NAME 🌈

r.shade β€” drapes a color raster over an shaded relief or aspect map. yes, "an shaded." we don't gatekeep grammar here, we gatekeep shading. πŸ’…


πŸŽ€ KEYWORDS πŸŽ€

raster, elevation, relief, hillshade, visualization


✨ SYNOPSIS ✨

r.shade
r.shade --help
r.shade [-c] shade=name color=name output=name  [brighten=integer]
[bgcolor=name]   [--overwrite]  [--help]  [--verbose]  [--quiet]  [--ui]

πŸ¦‹ Flags πŸ¦‹

  • -c β€” Use colors from color tables for NULL values
  • --overwrite β€” Allow output files to overwrite existing files
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output
  • --quiet β€” Quiet module output
  • --ui β€” Force launching GUI dialog

🌸 Parameters 🌸

  • shade=name [required] β€” Name of shaded relief or aspect raster map
  • color=name [required] β€” Name of raster to drape over relief raster map. Typically, this raster is elevation or other colorful raster
  • output=name [required] β€” Name of shaded raster map
  • brighten=integer β€” Percent to brighten
    • Options: -99-99
    • Default: 0
  • bgcolor=name β€” Color to use instead of NULL values
    • Either a standard color name, R:G:B triplet, or "none"

πŸ’… DESCRIPTION πŸ’…

so, the way that r.shade works is: it drapes a color raster map over a shaded relief map. iconic behavior. 🫢

but bestie, it's flexible β€” in place of shaded relief, any raster map can be used, including aspect or slope. the color raster map is usually an elevation raster map with a colorful color table (as opposed to gray scale color table). however, any raster map can be used, including categorical raster maps. the result is a raster map created from elevation and the shade raster. lowkey magic. ✨

comparing to creating shaded relief as a semi-transparent overlay on the color raster map, this module gives result with more saturated colors. saturated? slay. 🌈

the input for this module can be created for example using r.slope.aspect or r.relief.

now for the NULL tea β˜• β€” NULL values are propagated by default, so if any of the two input rasters contains NULL cell, NULL will be also in the output.

  • if the -c flag is used and cell in color raster is NULL, just shade color is used.
  • if cell in shade raster is NULL, shading effect is not applied and original colors are used.
  • if bgcolor option is used, NULL value in any input raster will be in the output replaced by the given color.

πŸ‘‘ NOTES πŸ‘‘

refer to the r.his help page for more details; r.shade is a frontend to that module with addition of brightness support similar to one provided by d.shade.

but heads up bestie 🚨 β€” note that the brightness is not implemenented in the same way as for d.shade and the results might be different. (yes, that typo is in the original, we're keeping it, it's canon now πŸ’€)

r.shade is using method described in r.his manual page.


πŸ”₯ EXAMPLES πŸ”₯

in this example, the aspect map in the North Carolina sample dataset is used to hillshade the elevation map:

g.region raster=aspect -p
r.shade shade=aspect color=elevation output=elevation_aspect_shaded
d.mon wx0
d.rast elevation_aspect_shaded

in this next example, a shaded relief raster map is created and used to create a colorized hillshade raster map for later use:

g.region raster=elevation
r.relief input=elevation output=elevation_shaded_relief
r.shade shade=elevation_shaded_relief color=elevation \
    output=elevation_relief_shaded
d.mon wx1
d.rast elevation_relief_shaded

interesting visualizations can be created using different color tables for elevation raster map, for example using haxby color table. (haxby color table stans rise up 🧚)

Figure: A detail of raster created by applying shading effect of shaded relief (hillshade) to elevation raster map from North Carolina dataset elevation map


🌟 SEE ALSO 🌟

r.his, d.his, d.shade, g.pnmcomp, r.slope.aspect, r.relief


πŸ’œ AUTHORS πŸ’œ

  • Hamish Bowman
  • Vaclav Petras, NCSU GeoForAll Lab

Inspired by d.shade and manual for r.his.


πŸ“ SOURCE CODE πŸ“

Available at: r.shade source code (history)

Accessed: Saturday Jan 17 05:41:52 2026

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


and that's the whole page, bestie!! πŸŽ€ this was brought to you by GRASS 8.4.2 (yeah, the GRASS GIS 8.4.2 Reference Manual, no cap), accessed on Saturday Jan 17 05:41:52 2026, and Β© 2003-2025 GRASS Development Team. go drape some rasters, you're gonna eat πŸ’–βœ¨

πŸ“¦ where this page comes from