r.param.scale(1grass)

πŸ’– r.param.scale β€” the terrain-parameter extractor of your dreams πŸ’–

okay bestie, listen up, because this one is a whole vibe. This is r.param.scale from the GRASS User's Manual (yes, r.param.scale(1grass), she's official πŸ’…). What does she do? She extracts terrain parameters from a DEM, and she does it with a multi-scale approach β€” fitting quadratic parameters to any size window (via least squares). Iconic behaviour honestly.

✨ KEYWORDS ✨

raster, geomorphology, terrain, elevation, landform


🌸 SYNOPSIS 🌸

r.param.scale
r.param.scale --help
r.param.scale [-c] input=name output=name  [slope_tolerance=float]
[curvature_tolerance=float]   [size=integer]   [method=string]
[exponent=float]   [zscale=float]   [--overwrite]  [--help]  [--verbose]
[--quiet]  [--ui]

πŸŽ€ Flags

  • -c β€” Constrain model through central window cell
  • --overwrite β€” Allow output files to overwrite existing files
  • --help β€” Print usage summary
  • --verbose β€” Verbose module output
  • --quiet β€” Quiet module output
  • --ui β€” Force launching GUI dialog

πŸ¦‹ Parameters

  • input=name [required] β€” Name of input raster map
  • output=name [required] β€” Name for output raster map containing morphometric parameter
  • slope_tolerance=float β€” Slope tolerance that defines a ’flat’ surface (degrees). Default: 1.0
  • curvature_tolerance=float β€” Curvature tolerance that defines ’planar’ surface. Default: 0.0001
  • size=integer β€” Size of processing window (odd number only). Options: 3-499. Default: 3
  • method=string β€” Morphometric parameter in ’size’ window to calculate. Options: elev, slope, aspect, profc, planc, longc, crosc, minic, maxic, feature. Default: elev
  • exponent=float β€” Exponent for distance weighting (0.0-4.0). Default: 0.0
  • zscale=float β€” Vertical scaling factor. Default: 1.0

πŸ’… DESCRIPTION πŸ’…

So r.param.scale extracts terrain parameters from a digital elevation model. She uses a multi-scale approach by fitting a bivariate quadratic polynomial to a given window size using least squares. No cap. 🫢

The module calculates the following parameters β€” and heads up, the terminology is from Wood, 1996, with related terminology used in other GRASS modules listed in brackets:

  • elev β€” Generalised elevation value (for resampling purposes at different scale)
  • slope β€” Magnitude of maximum gradient (steepest slope angle)
  • aspect β€” Direction of maximum gradient (steepest slope direction = flow direction)
  • profc β€” profile curvature (curvature intersecting with the plane defined by Z axis and maximum gradient direction). Positive values describe convex profile curvature, negative values concave profile curvature.
  • planc β€” plan curvature (horizontal curvature, intersecting with the XY plane)
  • longc β€” longitudinal curvature (profile curvature intersecting with the plane defined by the surface normal and maximum gradient direction)
  • crosc β€” cross-sectional curvature (tangential curvature intersecting with the plane defined by the surface normal and a tangent to the contour β€” perpendicular to maximum gradient direction)
  • maxic β€” maximum curvature (can be in any direction)
  • minic β€” minimum curvature (in direction perpendicular to the direction of of maximum curvature)
  • feature β€” Morphometric features: peaks, ridges, passes, channels, pits and planes

πŸ‘‘ NOTES πŸ‘‘

In r.param.scale the direction of maximum gradient (considered downslope) is stored as (West is 0 degree, East is +/- 180 degree):

  • 0..+180 degree from West to North to East
  • 0..-180 degree from West to South to East
⚠️ Note that the aspect map is calculated differently from r.slope.aspect. Do not come for me, I'm just the messenger. πŸ’€

🌈 EXAMPLE 🌈

The next commands will create a geomorphological map of the Spearfish sample dataset region:

g.region raster=elevation.10m -p
r.param.scale in=elevation.10m output=morphology method=feature size=9

Figure: Geomorphological map of a subregion in the Spearfish (SD) area


😭 TODO 😭

  • Fix bug when constrain through central cell option selected. (yeah girl, we know 🫠)
  • Create color tables for all output files (presently only on features).

πŸ“š REFERENCES πŸ“š

  • Wood, J. (1996): The Geomorphological characterisation of Digital Elevation Models. Diss., Department of Geography, University of Leicester, U.K β€” online at: http://hdl.handle.net/2381/34503
  • Java Code in LandSerf that implements the same procedure

πŸ”₯ SEE ALSO πŸ”₯

r.geomorphon, r.slope.aspect


πŸ’– AUTHORS πŸ’–

Jo Wood - ASSIST’s home

Update to FP 3/2002: L. Potrich, M. Neteler, S. Menegon (ITC-irst)


⭐ SOURCE CODE ⭐

Available at: r.param.scale source code (history)

Latest change: Friday Apr 17 01:04:26 2026 in commit: 32a143358df26b2e518b03c7e0d79541e8d1e5b1

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

Β© 2003-2026 GRASS Development Team, GRASS 8.5.0 Reference Manual

and that's the whole page, bestie β€” r.param.scale(1grass) signing off from the GRASS 8.5.0 era, stay hydrated, go map some terrain πŸ’œβœ¨πŸ¦‹

πŸ“¦ where this page comes from