r.shade(1grass)
π r.shade π
okay bestie, welcome to r.shade, straight outta the GRASS User's Manual β and no, this is not the "throw some shade" module (sadly). This one drapes a color raster over a shaded relief or aspect map. It's giving glow-up for your elevation data. β¨
β¨ NAME β¨
r.shade β drapes a color raster over an shaded relief or aspect map. π¨π«Ά
π KEYWORDS π
raster, elevation, relief, hillshade, visualization
π SYNOPSIS π
r.shade
r.shade --help
r.shade [-c] shade=name color=name output=name [brighten=integer]
[brighten=integer] [bgcolor=name] [--overwrite] [--help] [--verbose] [--quiet] [--ui]
wait no, let me not mess with that, here it is exactly:
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. lowkey a lifesaver when your data's got holes π³οΈ--overwriteβ allow output files to overwrite existing files (yes queen, replace it π )--helpβ print usage summary--verboseβ verbose module output (she's talkative π)--quietβ quiet module output (she's mysterious π¦)--uiβ force launching GUI dialog
π Parameters
shade=name[required] β name of shaded relief or aspect raster map. this is the texture, the rizz, the shadow π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 (your masterpiece β¨)brighten=integerβ percent to brighten. options:-99-99, default:0. negative values darken it btw, it's giving contrast control πbgcolor=nameβ color to use instead of NULL values. either a standard color name,R:G:Btriplet, or"none"π
π DESCRIPTION π
so like, r.shade will drape a color raster map over a shaded relief map. and honestly? in place of shaded relief, any raster map can be used, including aspect or slope. periodt.
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. no gatekeeping here, bestie. the result is a raster map created from elevation and the shade raster. π¨
comparing to creating shaded relief as semi-transparent overlay on the color raster map, this module gives result with more saturated colors. it ate. π₯
the input for this module can be created for example using r.slope.aspect or r.relief. iykyk.
β οΈ 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 the bgcolor option is used, a 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 literally a frontend to that module, with the addition of brightness support similar to the one provided by d.shade. π
π but note: the brightness is not implemented in the same way as ford.shade, and the results might be different.r.shadeis using the method described in ther.hismanual page. so bestie, don't @ me when your brightness looks different. π
π§ 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. πβ¨
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.shadeand manual forr.his.
π» SOURCE CODE π»
available at: r.shade source code (history)
latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a
Main index | Raster index | Topics index | Keywords index | Graphical index | Full index
and that's a wrap, bestie!! π this was GRASS 8.5.0 Reference Manual energy, and the source/version + date moment is Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual β slay, go drape some rasters πβ¨π¦
π¦ 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