Debian Codegraph @

scripts/d.shade/d.shade.html

raw
1 <h2>DESCRIPTION</h2>
2
3 <em>d.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
9 <p>
10 The advantage of this module is that it allows visualizing the shaded map
11 without a need to create a new raster which would combine both.
12 Comparing to creating shaded relief as semi-transparent overlay on
13 the color raster map, this module gives result with more saturated colors.
14
15 <p>
16 The input for this module can be created for example using
17 <a href="r.slope.aspect.html">r.slope.aspect</a> or
18 <a href="r.relief.html">r.relief</a><br>.
19
20 <h2>NOTES</h2>
21
22 Refer to the <em><a href="d.his.html">d.his</a></em> help page for more details;
23 <em>d.shade</em> is simply a frontend to that module.
24
25 <h2>EXAMPLES</h2>
26
27 In this example, the <code>aspect</code> map in the North Carolina sample
28 dataset is used to hillshade the <code>elevation</code> map:
29
30 <div class="code"><pre>
31 g.region raster=aspect -p
32 d.mon wx0
33 d.shade shade=aspect color=elevation
34 </pre></div>
35
36 <!--
37 image generated using the example above
38 display region: g.region -a n=227228 s=220895 w=631362 e=641170
39 d.out.file dshade.png
40 optipng -o5 dshade.png
41 -->
42 <center>
43 <img src="dshade.png" alt="Elevation with aspect shades">
44 <p>
45 Figure: A detail of raster created by applying shading effect of aspect
46 to elevation raster map from North Carolina dataset elevation map
47 <!--
48 TODO: perhaps add some explanation or thoughts about aspect versus shaded
49 relief such as: in this case the shades created using aspect are much sharper
50 comparing to what shaded relief would give and there are some extreme values
51 in some areas
52 -->
53 </center>
54
55 In this next example, a shaded relief raster map is created
56 and used to create a colorized hillshade:
57
58 <div class="code"><pre>
59 g.region raster=elevation
60 r.relief input=elevation output=elevation_shaded_relief
61
62 d.mon wx1
63 d.shade shade=elevation_shaded_relief color=elevation
64 </pre></div>
65
66 Interesting visualizations can be created using different color tables for
67 elevation raster map, for example using <code>haxby</code> color table.
68
69 <h2>SEE ALSO</h2>
70
71 <em>
72 <a href="d.his.html">d.his</a>,
73 <a href="g.pnmcomp.html">g.pnmcomp</a>,
74 <a href="r.shade.html">r.shade</a>,
75 <a href="r.slope.aspect.html">r.slope.aspect</a>,
76 <a href="r.relief.html">r.relief</a><br>
77 <a href="wxGUI.nviz.html">wxGUI 3D viewer (NVIZ)</a>
78 </em>
79
80 <h2>AUTHORS</h2>
81
82 Unknown; updated to GRASS 5.7 by Michael Barton