r.shade.html 3.6 KB

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