r.slope.aspect.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <h2>DESCRIPTION</h2>
  2. <b>r.slope.aspect </b>generates raster maps of slope, aspect, curvatures and
  3. first and second order partial derivatives from a raster map of true
  4. elevation values. The user must specify the input <i>elevation</i> file name
  5. and at least one output file name. The user can also specify the
  6. <i>format</i> for slope (degrees, percent; default=degrees), and the
  7. <i>zfactor</i>: multiplicative factor to convert elevation units to meters;
  8. (default 1.0).
  9. <p>
  10. The <i>elevation</i> input raster map specified by the user must contain true
  11. elevation values, <b>not</b> rescaled or categorized data. If the elevation
  12. values are in feet or other units than meters (with a conversion factor
  13. <i>meters:</i>, defined in PROJ_UNITS), they must be converted to meters using
  14. the parameter <i>zfactor</i>.
  15. <p>
  16. The <i>aspect</i> output raster map indicates the direction that slopes are
  17. facing. The aspect categories represent the number degrees of east. Category
  18. and color table files are also generated for the aspect map layer. The aspect
  19. categories represent the number degrees of east and they increase
  20. counterclockwise: 90deg is North, 180 is West, 270 is South 360 is East. The
  21. aspect value 0 is used to indicate undefined aspect in flat areas with slope=0.
  22. <p>
  23. The <i>slope</i> output raster map contains slope values, stated in degrees of
  24. inclination from the horizontal if <i>format</i>=degrees option (the default)
  25. is chosen, and in percent rise if <i>format</i>=percent option is chosen.
  26. Category and color table files are generated.
  27. <p>
  28. Profile and tangential curvatures are the curvatures in the direction of
  29. steepest slope and in the direction of the contour tangent respectively. The
  30. curvatures are expressed as 1/metres, e.g. a curvature of 0.05 corresponds to a
  31. radius of curvature of 20m.
  32. <p>
  33. <table width="100%" border="0">
  34. <tr valign="baseline">
  35. <td>
  36. <center>
  37. <img src="dem.png" border="1">
  38. <P>
  39. Example DEM
  40. <BR><BR>
  41. </center>
  42. </td>
  43. <td>
  44. </td>
  45. </tr>
  46. <tr valign="baseline">
  47. <td>
  48. <center>
  49. <img src="slope.png" border="1">
  50. <P>
  51. Slope (degree) from example DEM
  52. <BR><BR>
  53. </center>
  54. </td>
  55. <td>
  56. <center>
  57. <img src="aspect.png" border="1">
  58. <P>
  59. Aspect (degree) from example DEM
  60. <BR><BR>
  61. </center>
  62. </td>
  63. </tr>
  64. <tr valign="baseline">
  65. <td>
  66. <center>
  67. <img src="tcurv.png" border="1">
  68. <P>
  69. Tangential curvature (m<sup>-1</sup>) from example DEM
  70. <BR><BR>
  71. </center>
  72. </td>
  73. <td>
  74. <center>
  75. <img src="pcurv.png" border="1">
  76. <P>
  77. Profile curvature (m<sup>-1</sup>) from example DEM
  78. <BR><BR>
  79. </center>
  80. </td>
  81. <td>
  82. </td>
  83. </tr>
  84. </table>
  85. <p>
  86. For some applications, the user will wish to use a reclassified raster map
  87. of slope that groups slope values into ranges of slope. This can be done using
  88. <i><a href="r.reclass.html">r.reclass</a></i>. An example of a useful
  89. reclassification is given below:
  90. <div class="code"><pre> category range category labels
  91. (in degrees) (in percent)
  92. 1 0- 1 0- 2%
  93. 2 2- 3 3- 5%
  94. 3 4- 5 6- 10%
  95. 4 6- 8 11- 15%
  96. 5 9- 11 16- 20%
  97. 6 12- 14 21- 25%
  98. 7 15- 90 26% and higher
  99. The following color table works well with the above
  100. reclassification.
  101. category red green blue
  102. 0 179 179 179
  103. 1 0 102 0
  104. 2 0 153 0
  105. 3 128 153 0
  106. 4 204 179 0
  107. 5 128 51 51
  108. 6 255 0 0
  109. 7 0 0 0</pre></div>
  110. <h2>NOTES</h2>
  111. To ensure that the raster elevation map layer is not inappropriately resampled,
  112. the settings for the current region are modified slightly (for the execution
  113. of the program only): the resolution is set to match the resolution of
  114. the elevation map and the edges of the region (i.e. the north, south, east
  115. and west) are shifted, if necessary, to line up along edges of the nearest
  116. cells in the elevation map. If the user really wants the elevation map
  117. resampled to the current region resolution, the -a flag should be specified.
  118. <p>
  119. The current mask is ignored.
  120. <p>
  121. The algorithm used to determine slope and aspect uses a 3x3 neighborhood
  122. around each cell in the elevation file. Thus, it is not possible to determine
  123. slope and aspect for the cells adjacent to the edges in the elevation map
  124. layer. These cells are assigned a "zero slope" value (category 0) in both
  125. the slope and aspect raster map layers.
  126. <p>
  127. Horn's formula is used to find the derivatives in x and y directions.
  128. <p>
  129. Only when using integer elevation models, the aspect is biased in 0,
  130. 45, 90, 180, 225, 270, 315, and 360 directions; i.e., the distribution
  131. of aspect categories is very uneven, with peaks at 0, 45,..., 360 categories.
  132. When working with floating point elevation models, no such aspect bias occurs.
  133. <p>
  134. Because most cells with a very small slope end up having category 0,
  135. 45, ..., 360, it is sometimes possible to reduce the bias in these directions
  136. by filtering out the aspect in areas where the terrain is almost flat. A new
  137. option <i>min_slp_allowed</i> was added to specify the minimum slope for which
  138. aspect is computed. The aspect for all cells with slope &lt;
  139. <i>min_slp_allowed</i> is set to <b>null</b>.
  140. <h2>REFERENCE</h2>
  141. Horn, B. K. P. (1981). Hill Shading and the Reflectance Map, Proceedings
  142. of the IEEE, 69(1):14-47.
  143. <h2>SEE ALSO</h2>
  144. <em><a href="r.mapcalc.html">r.mapcalc</a></em>,
  145. <em><a href="r.neighbors.html">r.neighbors</a></em>,
  146. <em><a href="r.reclass.html">r.reclass</a></em>,
  147. <em><a href="r.rescale.html">r.rescale</a></em>
  148. <h2>AUTHORS</h2>
  149. Michael Shapiro, U.S.Army Construction Engineering Research Laboratory<BR>
  150. Olga Waupotitsch, U.S.Army Construction Engineering Research Laboratory
  151. <p>
  152. <i>Last changed: $Date$</i>