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 mapcolor=name[required] β Name of raster to drape over relief raster map. Typically, this raster is elevation or other colorful rasteroutput=name[required] β Name of shaded raster mapbrighten=integerβ Percent to brighten- Options:
-99-99 - Default:
0
- Options:
bgcolor=nameβ Color to use instead of NULL values- Either a standard color name,
R:G:Btriplet, or"none"
- Either a standard color name,
π 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
-cflag 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
bgcoloroption 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
- fedora 44: grass 8.4.2-4.fc44 Β· 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