| 1 |
<h2>DESCRIPTION</h2> |
| 2 |
|
| 3 |
<em>r.shade</em> will drape a color raster map over a shaded relief map. |
| 4 |
In place of shaded relief, any raster map can be used including aspect or slope. |
| 5 |
The color raster map is usually an elevation raster map with colorful color |
| 6 |
table (as opposed to gray scale color table). However, any raster map can be |
| 7 |
used including categorical raster maps. |
| 8 |
The result is a raster map created from elevation and the shade raster. |
| 9 |
|
| 10 |
<p> |
| 11 |
Comparing to creating shaded relief as semi-transparent overlay on |
| 12 |
the color raster map, this module gives result with more saturated colors. |
| 13 |
|
| 14 |
<p> |
| 15 |
The input for this module can be created for example using |
| 16 |
<em><a href="r.slope.aspect.html">r.slope.aspect</a></em> or |
| 17 |
<em><a href="r.relief.html">r.relief</a></em>. |
| 18 |
|
| 19 |
<p> |
| 20 |
NULL values are propagated by default, so if any of the two input rasters |
| 21 |
contains NULL cell NULL will be also in the output. If <b>-c</b> flag is |
| 22 |
used and cell in <b>color</b> raster is NULL, just <b>shade</b> |
| 23 |
color is used. If cell in <b>shade</b> raster is NULL, shading effect |
| 24 |
is not applied and original colors are used. If <b>bgcolor</b> option is |
| 25 |
used, NULL value in any input raster will be in the output replaced |
| 26 |
by the given color. |
| 27 |
|
| 28 |
<h2>NOTES</h2> |
| 29 |
|
| 30 |
Refer to the <em><a href="r.his.html">r.his</a></em> help page for more details; |
| 31 |
<em>r.shade</em> is a frontend to that module with addition of |
| 32 |
brightness support similar to one provided by |
| 33 |
<em><a href="d.shade.html">d.shade</a></em>. |
| 34 |
However, note that the brightness is not implemenented in the same way as for |
| 35 |
<em><a href="d.shade.html">d.shade</a></em> and the results might |
| 36 |
be different. |
| 37 |
<em>r.shade</em> is using method described in <em><a href="r.his.html">r.his</a></em> |
| 38 |
manual page. |
| 39 |
|
| 40 |
<h2>EXAMPLES</h2> |
| 41 |
|
| 42 |
In this example, the <code>aspect</code> map in the North Carolina sample |
| 43 |
dataset is used to hillshade the <code>elevation</code> map: |
| 44 |
|
| 45 |
<div class="code"><pre> |
| 46 |
g.region raster=aspect -p |
| 47 |
r.shade shade=aspect color=elevation output=elevation_aspect_shaded |
| 48 |
|
| 49 |
d.mon wx0 |
| 50 |
d.rast elevation_aspect_shaded |
| 51 |
</pre></div> |
| 52 |
|
| 53 |
In this next example, a shaded relief raster map is created |
| 54 |
and used to create a colorized hillshade |
| 55 |
raster map for later use: |
| 56 |
|
| 57 |
<div class="code"><pre> |
| 58 |
g.region raster=elevation |
| 59 |
r.relief input=elevation output=elevation_shaded_relief |
| 60 |
|
| 61 |
r.shade shade=elevation_shaded_relief color=elevation \ |
| 62 |
output=elevation_relief_shaded |
| 63 |
|
| 64 |
d.mon wx1 |
| 65 |
d.rast elevation_relief_shaded |
| 66 |
</pre></div> |
| 67 |
|
| 68 |
Interesting visualizations can be created using different color tables for |
| 69 |
elevation raster map, for example using <code>haxby</code> color table. |
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
<center> |
| 80 |
<img src="rshade.png" alt="Elevation with shaded relief (hillshade)"> |
| 81 |
<p> |
| 82 |
Figure: A detail of raster created by applying shading effect of shaded relief |
| 83 |
(hillshade) to elevation raster map from North Carolina dataset elevation map |
| 84 |
</center> |
| 85 |
|
| 86 |
<h2>SEE ALSO</h2> |
| 87 |
|
| 88 |
<em> |
| 89 |
<a href="r.his.html">r.his</a>, |
| 90 |
<a href="d.his.html">d.his</a>, |
| 91 |
<a href="d.shade.html">d.shade</a>, |
| 92 |
<a href="g.pnmcomp.html">g.pnmcomp</a>, |
| 93 |
<a href="r.slope.aspect.html">r.slope.aspect</a>, |
| 94 |
<a href="r.relief.html">r.relief</a> |
| 95 |
</em> |
| 96 |
|
| 97 |
<h2>AUTHORS</h2> |
| 98 |
|
| 99 |
Hamish Bowman<br> |
| 100 |
Vaclav Petras, <a href="https://geospatial.ncsu.edu/geoforall/">NCSU GeoForAll Lab</a><br> |
| 101 |
Inspired by <em><a href="d.shade.html">d.shade</a></em> and |
| 102 |
manual for <em><a href="r.his.html">r.his</a></em>. |