README
Alexander Ilich November 25, 2025
Please cite as
Ilich, A. R., Misiuk, B., Lecours, V., & Murawski, S. A. (2023). MultiscaleDTM: An open-source R package for multiscale geomorphometric analysis. Transactions in GIS, 27(4). https://doi.org/10.1111/tgis.13067
Purpose
This R package calculates multi-scale geomorphometric terrain attributes from regularly gridded digital terrain models (DTM; i.e. elevation or bathymetry rasters) via a specified window as described in Ilich et al. (2023).
Figure adapted from Wilson et al. (2007)
Install and Load Package
The package can be installed from CRAN using
install.packages("MultiscaleDTM") or the development version can be
installed from github using the code
remotes::install_github("ailich/MultiscaleDTM"). If you are using
Windows, you may need to install Rtools using the instructions found
here). To install from
github you must already have the remotes package installed, which can be
installed using install.packages("remotes")
This package relies on the terra package for handling of spatial
raster data.
Main Functions
Slope, Aspect and Curvature
SlpAsp- Calculates multi-scale slope and aspect using a modified version of the algorithm from Misiuk et al (2021) which extends classical formulations of slope restricted to a 3x3 window (Fleming and Hoffer, 1979; Horn et al., 1981; Ritter, 1987). This algorithm only considers a subset of cells within the focal window, specifically the four cells on the edge of the focal window directly up, down, left, and right of the focal cell for the “rook” method, an additional four corner cells for the “queen” method, or all edge cells for the “boundary” method.
-
DirSlp- Calculates multi-scale slope in a specified direction. -
Qfit- Calculates slope, aspect, curvature, and morphometric features by fitting a quadratic surface to the focal window using ordinary least squares using the equation shown below where a-f are regression parameters, Z is the elevation/depth, X is the east/west coordinates in the focal window relative to the focal cell, and Y is the north/south coordinates in the focal window relative to the focal cell (Evans, 1980; Wilson et al., 2007; Wood, 1996). The morphometric features algorithm has been modified to use more robust measures of curvature based on the suggestions of Minár et al. (2020).

