| landform | R Documentation |
Classifies a landscape into slope-position or landform classes on the basis
of the Topographic Position Index (TPI; see tpi) and slope,
following Weiss (2001) and Jenness (2006). Two classifications are
available: the six-class Slope Position Classification, based on one TPI
scale, and the ten-class Landform Classification, based on a small and a
large TPI scale.
landform(
x,
scale = 3,
sn = 3,
ln = 7,
class.type = c("slope.position", "landform.classification"),
descriptive = FALSE,
leg.pos = NULL,
leg.cex = 0.8,
units = c("cells", "map"),
shape = c("square", "circle", "annulus"),
inner = NULL,
centre = FALSE,
std = c("global", "local"),
tpi.thr = c(0.5, 1),
lf.thr = 1,
slope.thr = 5,
plot = TRUE,
shade = c("none", "slope", "hill"),
col = NULL
)
x |
A single-layer |
scale |
Neighbourhood size for the Slope Position Classification. With
|
sn, ln |
Small and large neighbourhood sizes for the Landform
Classification, in the same units as |
class.type |
Either |
descriptive |
Logical. If |
leg.pos |
Position of the legend of the map, as a keyword accepted by
|
leg.cex |
Magnification of the legend text. Default |
units |
Either |
shape |
Neighbourhood shape: |
inner |
Inner radius (or radii) of the annulus, in the same units as
|
centre |
Logical. Include the focal cell in the neighbourhood mean?
Default |
std |
TPI standardisation: |
tpi.thr |
Two increasing positive thresholds (in standard deviation
units) used by the Slope Position Classification. Default
|
lf.thr |
Threshold (in standard deviation units) separating low, mid
and high TPI in the Landform Classification. Default |
slope.thr |
Slope threshold, in degrees, separating flat from sloping
terrain. Default |
plot |
Logical. Draw the map of the classes? Default |
shade |
Relief shading drawn underneath the classes: |
col |
Optional vector of colours, one per class. By default the Slope Position Classification uses an ordinal blue-to-brown palette (valley to ridge) that remains readable with the common forms of colour blindness; the Landform Classification groups hues by landform family (drainages and valleys in blues, plains and slopes in yellows and greens, ridges and tops in oranges, reds and purple). With ten classes no palette is fully colour-blind safe; supply your own if needed. |
Slope Position Classification (Weiss 2001). With z the
standardised TPI, t_1 < t_2 the values of tpi.thr, and
s the slope in degrees:
| 1 Valley | z \le -t_2 |
| 2 Lower Slope | -t_2 < z \le -t_1 |
| 3 Flat Slope | -t_1 < z < t_1 and s \le slope.thr |
| 4 Middle Slope | -t_1 < z < t_1 and s > slope.thr |
| 5 Upper Slope | t_1 \le z \le t_2 |
| 6 Ridge | z > t_2
|
Landform Classification (Weiss 2001; Jenness 2006). With
SN and LN the standardised TPI at the small and large scales,
and t the value of lf.thr:
| 1 Canyons, Deeply Incised Streams | SN \le -t, LN \le -t |
| 2 Midslope Drainages, Shallow Valleys | SN \le -t, -t < LN < t |
| 3 Upland Drainages, Headwaters | SN \le -t, LN \ge t |
| 4 U-shaped Valleys | -t < SN < t, LN \le -t |
| 5 Plains | -t < SN < t, -t < LN < t, s \le slope.thr |
| 6 Open Slopes | -t < SN < t, -t < LN < t, s > slope.thr |
| 7 Upper Slopes, Mesas | -t < SN < t, LN \ge t |
| 8 Local Ridges, Hills in Valleys | SN \ge t, LN \le -t |
| 9 Midslope Ridges, Small Hills in Plains | SN \ge t, -t < LN < t |
| 10 Mountain Tops, High Ridges | SN \ge t, LN \ge t
|
Both sets of rules assign every cell to exactly one class.
Edges and NA cells. Slope cannot be computed for the outermost
cells of the raster and for cells adjacent to NA cells; these cells
are left unclassified (NA) for every class, so that the class
frequencies are not biased by edge effects.
Area. Class areas are computed with cellSize,
and are therefore correct also for longitude/latitude rasters; for
projected rasters they are ground areas, which may differ slightly from
the nominal cell area (resolution squared) because of the scale distortion
of the projection. If the
raster has no coordinate reference system, map units are assumed to be
metres.
Reproducing results of landform <= 0.2. Use
std = "local", centre = TRUE (with the default square window in
cells). Cells whose standardised TPI equalled exactly t_1 were left
unclassified by earlier versions and are now classified as Upper Slope; edge
cells are now consistently NA.
An object of class "landform": a list with elements
classesa categorical SpatRaster of the classes
(integer codes with class names as levels and a colour table);
per-class layers can be obtained with class_layers;
tpia SpatRaster with the raw (elevation units) and
standardised TPI layers used in the classification;
slopea SpatRaster of slope (degrees);
statsa data frame with, for every class, the number of
cells, the area (km^2), the percentage of the classified area,
and the mean elevation and slope;
demthe input elevation raster;
paramsa list of the settings used.
The object has print, summary and plot methods (see
plot.landform). The map (and, with descriptive = TRUE,
the bar plot of class areas) is drawn as a side effect when
plot = TRUE; the object is returned invisibly in that case.
Jenness, J. (2006). Topographic Position Index (tpi_jen.avx) extension for ArcView 3.x, v. 1.2. Jenness Enterprises.
Weiss, A. (2001). Topographic Position and Landforms Analysis. Poster presentation, ESRI User Conference, San Diego, CA.
See tpi for references on the TPI and its standardisation.
tpi, plot.landform,
class_layers, malta_dtm,
terrain
dem <- malta_dtm()
# Slope Position Classification, 9 x 9 cell window
sp <- landform(dem, scale = 9)
sp
summary(sp)
# Landform Classification, circular neighbourhoods of 120 m and 480 m
lf <- landform(dem, class.type = "landform.classification",
sn = 120, ln = 480, units = "map", shape = "circle")
# the standardisation used by landform <= 0.2, for comparison
sp_local <- landform(dem, scale = 9, std = "local", centre = TRUE)
# the same, over a slopeshade, with the bar plot of class areas
plot(lf, shade = "slope")
plot(lf, what = "area")
# one layer per class
layers <- class_layers(lf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.