.TH r.slope.aspect 1grass "" "GRASS 6.4.2" "Grass User's Manual" .SH NAME \fI\fBr.slope.aspect\fR\fR - Generates raster maps of slope, aspect, curvatures and partial derivatives from a elevation raster map. .br Aspect is calculated counterclockwise from east. .SH KEYWORDS raster, terrain .SH SYNOPSIS \fBr.slope.aspect\fR .br \fBr.slope.aspect help\fR .br \fBr.slope.aspect\fR [-\fBqa\fR] \fBelevation\fR=\fIname\fR [\fBslope\fR=\fIname\fR] [\fBaspect\fR=\fIname\fR] [\fBformat\fR=\fIstring\fR] [\fBprec\fR=\fIstring\fR] [\fBpcurv\fR=\fIname\fR] [\fBtcurv\fR=\fIname\fR] [\fBdx\fR=\fIname\fR] [\fBdy\fR=\fIname\fR] [\fBdxx\fR=\fIname\fR] [\fBdyy\fR=\fIname\fR] [\fBdxy\fR=\fIname\fR] [\fBzfactor\fR=\fIfloat\fR] [\fBmin_slp_allowed\fR=\fIfloat\fR] [--\fBoverwrite\fR] [--\fBverbose\fR] [--\fBquiet\fR] .SS Flags: .IP "\fB-q\fR" 4m .br Quiet .IP "\fB-a\fR" 4m .br Do not align the current region to the elevation layer .IP "\fB--overwrite\fR" 4m .br Allow output files to overwrite existing files .IP "\fB--verbose\fR" 4m .br Verbose module output .IP "\fB--quiet\fR" 4m .br Quiet module output .PP .SS Parameters: .IP "\fBelevation\fR=\fIname\fR" 4m .br Name of elevation raster map .IP "\fBslope\fR=\fIname\fR" 4m .br Name for output slope raster map .IP "\fBaspect\fR=\fIname\fR" 4m .br Name for output aspect raster map .IP "\fBformat\fR=\fIstring\fR" 4m .br Format for reporting the slope .br Options: \fIdegrees,percent\fR .br Default: \fIdegrees\fR .IP "\fBprec\fR=\fIstring\fR" 4m .br Type of output aspect and slope maps .br Options: \fIdefault,double,float,int\fR .br Default: \fIfloat\fR .IP "\fBpcurv\fR=\fIname\fR" 4m .br Name for output profile curvature raster map .IP "\fBtcurv\fR=\fIname\fR" 4m .br Name for output tangential curvature raster map .IP "\fBdx\fR=\fIname\fR" 4m .br Name for output first order partial derivative dx (E-W slope) raster map .IP "\fBdy\fR=\fIname\fR" 4m .br Name for output first order partial derivative dy (N-S slope) raster map .IP "\fBdxx\fR=\fIname\fR" 4m .br Name for output second order partial derivative dxx raster map .IP "\fBdyy\fR=\fIname\fR" 4m .br Name for output second order partial derivative dyy raster map .IP "\fBdxy\fR=\fIname\fR" 4m .br Name for output second order partial derivative dxy raster map .IP "\fBzfactor\fR=\fIfloat\fR" 4m .br Multiplicative factor to convert elevation units to meters .br Default: \fI1.0\fR .IP "\fBmin_slp_allowed\fR=\fIfloat\fR" 4m .br Minimum slope val. (in percent) for which aspect is computed .br Default: \fI0.0\fR .PP .SH DESCRIPTION \fBr.slope.aspect \fRgenerates raster maps of slope, aspect, curvatures and first and second order partial derivatives from a raster map of true elevation values. The user must specify the input \fIelevation\fR file name and at least one output file name. The user can also specify the \fIformat\fR for slope (degrees, percent; default=degrees), and the \fIzfactor\fR: multiplicative factor to convert elevation units to meters; (default 1.0). .PP The \fIelevation\fR input raster map specified by the user must contain true elevation values, \fBnot\fR rescaled or categorized data. If the elevation values are in feet or other units than meters (with a conversion factor \fImeters:\fR, defined in PROJ_UNITS), they must be converted to meters using the parameter \fIzfactor\fR. .PP The \fIaspect\fR output raster map indicates the direction that slopes are facing. The aspect categories represent the number degrees of east. Category and color table files are also generated for the aspect map layer. The aspect categories represent the number degrees of east and they increase counterclockwise: 90deg is North, 180 is West, 270 is South 360 is East. The aspect value 0 is used to indicate undefined aspect in flat areas with slope=0. .PP The \fIslope\fR output raster map contains slope values, stated in degrees of inclination from the horizontal if \fIformat\fR=degrees option (the default) is chosen, and in percent rise if \fIformat\fR=percent option is chosen. Category and color table files are generated. .PP Profile and tangential curvatures are the curvatures in the direction of steepest slope and in the direction of the contour tangent respectively. The curvatures are expressed as 1/metres, e.g. a curvature of 0.05 corresponds to a radius of curvature of 20m. Convex form values are positive and concave form values are negative. .PP .br | .PP Example DEM .br | .br | .PP Slope (degree) from example DEM .br | .PP Aspect (degree) from example DEM .br .br | .PP Tangential curvature (m\u-1\d) from example DEM .br | .PP Profile curvature (m\u-1\d) from example DEM .br | .PP For some applications, the user will wish to use a reclassified raster map of slope that groups slope values into ranges of slope. This can be done using \fIr.reclass\fR. An example of a useful reclassification is given below: \fC .DS category range category labels .br (in degrees) (in percent) .br .br 1 0- 1 0- 2% .br 2 2- 3 3- 5% .br 3 4- 5 6- 10% .br 4 6- 8 11- 15% .br 5 9- 11 16- 20% .br 6 12- 14 21- 25% .br 7 15- 90 26% and higher .br .br The following color table works well with the above .br reclassification. .br .br category red green blue .br .br 0 179 179 179 .br 1 0 102 0 .br 2 0 153 0 .br 3 128 153 0 .br 4 204 179 0 .br 5 128 51 51 .br 6 255 0 0 .br 7 0 0 0 .DE \fR .SH NOTES To ensure that the raster elevation map layer is not inappropriately resampled, the settings for the current region are modified slightly (for the execution of the program only): the resolution is set to match the resolution of the elevation map and the edges of the region (i.e. the north, south, east and west) are shifted, if necessary, to line up along edges of the nearest cells in the elevation map. If the user really wants the elevation map resampled to the current region resolution, the -a flag should be specified. .PP The current mask is ignored. .PP The algorithm used to determine slope and aspect uses a 3x3 neighborhood around each cell in the elevation file. Thus, it is not possible to determine slope and aspect for the cells adjacent to the edges in the elevation map layer. These cells are assigned a "zero slope" value (category 0) in both the slope and aspect raster map layers. .PP Horn's formula is used to find the first order derivatives in x and y directions. .PP Only when using integer elevation models, the aspect is biased in 0, 45, 90, 180, 225, 270, 315, and 360 directions; i.e., the distribution of aspect categories is very uneven, with peaks at 0, 45,..., 360 categories. When working with floating point elevation models, no such aspect bias occurs. .PP Because most cells with a very small slope end up having category 0, 45, ..., 360, it is sometimes possible to reduce the bias in these directions by filtering out the aspect in areas where the terrain is almost flat. A new option \fImin_slp_allowed\fR was added to specify the minimum slope for which aspect is computed. The aspect for all cells with slope < \fImin_slp_allowed\fR is set to \fBnull\fR. .SH REFERENCE .RS .IP Horn, B. K. P. (1981). \fIHill Shading and the Reflectance Map\fR, Proceedings of the IEEE, 69(1):14-47. .IP Mitasova, H. (1985). \fICartographic aspects of computer surface modeling. PhD thesis.\fR Slovak Technical University , Bratislava .IP Hofierka, J., Mitasova, H., Neteler, M., 2009. \fIGeomorphometry in GRASS GIS.\fR In: Hengl, T. and Reuter, H.I. (Eds), \fIGeomorphometry: Concepts, Software, Applications. \fR Developments in Soil Science, vol. 33, Elsevier, 387-410 pp, http://www.geomorphometry.org .RE .SH SEE ALSO \fIr.mapcalc\fR, \fIr.neighbors\fR, \fIr.reclass\fR, \fIr.rescale\fR .SH AUTHORS Michael Shapiro, U.S.Army Construction Engineering Research Laboratory .br Olga Waupotitsch, U.S.Army Construction Engineering Research Laboratory .PP \fILast changed: $Date: 2011-11-08 12:29:50 +0100 (Tue, 08 Nov 2011) $\fR .PP Full index .PP © 2003-2011 GRASS Development Team