Terraflux Terraflux
Download

Surface metrics

20 operators. Inputs marked required must be connected or given; the others have defaults.

surface.aacf#

The areal autocorrelation function of a surface, geodiv's aacf: 1 at zero lag in the centre; on the largest square without missing cells around the centre when there are some.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe autocorrelation at every lag

surface.bearing#

The bearing area (Abbott-Firestone) curve of a surface, geodiv's bearing_area: the share of the surface at or above each height.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
tabletablebearing, height

surface.curvature#

A curvature of a surface (spatialEco's curvature): planform, profile, total, McNab's or Bolstad's.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe curvature
SettingTypeWhat it is
typetextplanform (default), profile, total, mcnab, bolstad

surface.dissection#

Martonne's dissection (spatialEco's dissection): (z - min) / (max - min) in a window.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe dissection
SettingTypeWhat it is
sanythe window: odd cells, or [rows, columns] (5)

surface.fit_plane#

The trend of a surface: geodiv's least-squares polynomial of an order (0-6), or the best of order 0-3 (the residuals' smallest absolute mean); and the surface without it (remove_plane).

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
planemapthe trend fitted
residualsmapthe surface less its trend
SettingTypeWhat it is
orderany0 to 6, or "best" (default)

surface.geomorphons#

Landforms of a DEM by geomorphons (Jasiewicz & Stepinski 2013), GRASS's r.geomorphon (8.4) bit for bit with four of its errors corrected, through landschaft's C++: from each cell the terrain is looked at along 8 directions up to the search radius; the signs (higher, level, lower) name the landform (1 flat, 2 peak, 3 ridge, 4 shoulder, 5 spur, 6 slope, 7 hollow, 8 footslope, 9 valley, 10 pit) and one of 498 patterns. A projected DEM.

InputTypeWhat it is
demrequiredmapthe DEM (projected; read as float32, as GRASS reads it)
OutputTypeWhat it is
formsmapthe landform of each cell, 1 to 10
ternarymapthe ternary pattern (0 to 6560, 498 codes)
positivemapthe directions higher than the threshold, as 8 bits
negativemapthe directions lower than the threshold, as 8 bits
sharetableform, cells, share
intensitymapa measure of the geomorphon (with measures)
expositionmapa measure of the geomorphon (with measures)
rangemapa measure of the geomorphon (with measures)
variancemapa measure of the geomorphon (with measures)
elongationmapa measure of the geomorphon (with measures)
azimuthmapa measure of the geomorphon (with measures)
extendmapa measure of the geomorphon (with measures)
widthmapa measure of the geomorphon (with measures)
SettingTypeWhat it is
searchnumberthe outer search radius, in cells or map units (3)
skipnumberthe inner radius not looked at (0)
flatnumberthe flatness threshold, degrees (1)
distnumberthe flatness distance (0: none)
unitstextof search, skip and dist: cells (default) or map
comparisontexthow the angles decide a direction (anglev1)
extendedboolthe extended correction (-e): ridges, peaks, shoulders and footslopes looked at again within half the radius
measuresboolalso the measures (intensity, exposition...)

surface.gravity#

Gravitational interaction potential of source cells, Dinamica EGO's CalcInteractionPotentialMap (landschaft's): every cell the sum over the sources of their mass over the distance to them raised to the exponent, P = sum m / d^beta (a source's own cell at one cell); a pressure of towns, markets or roads, a driver of land change.

InputTypeWhat it is
sourcesrequiredmapthe masses (no value or 0: not a source)
maskmapthe potential is missing where this is
OutputTypeWhat it is
mapmapthe potential
SettingTypeWhat it is
exponentnumberthe distance decay beta (2; 0: none)
unittextdistances in cells (default, Dinamica's) or map units
methodtextdirect (every pair, in a fixed order), fft (a convolution, about 1e-15 of the largest term off), or auto (default: direct up to 2000 sources or 1e8 pairs)

surface.hilltop#

Hilltops as permanent protection areas (APP de topo de morro, Lei 12.651/2012, art. 4, IX), landschaft's open implementation: every summit with its base (the saddle to higher terrain, the plain or water body it meets, or the lowest cell of its area), its height and slope; the hills at least min_height high and steeper than min_slope protected above base + fraction x height.

InputTypeWhat it is
demrequiredmapthe DEM (metres), projected or in longitude / latitude
plainmapplains and water bodies (non-zero): a hill's base where met
OutputTypeWhat it is
appmap1 in the upper part of the hills that qualify, 0 elsewhere
hillmapthe hill whose upper part holds each cell
hillstableper summit, highest first: hill, x, y, top, base, base_kind (0 saddle, 1 plain, 2 lowest), base_x, base_y, height, mean_slope, line_slope, area, area_ha, qualifies, threshold, app_cells
SettingTypeWhat it is
min_heightnumberthe least height of a hill, m (100)
min_slopenumberthe slope a hill must exceed, degrees (25)
slopetextmean (of the hill's cells, default) or line (summit to base)
fractionnumberwhere the APP starts, of the height (2/3)

surface.hli#

The heat load index (McCune & Keon's equations, spatialEco's hli) from the aspect and the slope; the latitude that of the map's centre unless given.

InputTypeWhat it is
aspectrequiredmapthe aspect
sloperequiredmapthe slope
OutputTypeWhat it is
mapmapthe HLI
SettingTypeWhat it is
latitudenumberdegrees (default: the map's centre's)
directboolthe direct radiation's folding (180° instead of 225°)
scaledboolexp of the index
unitstextdegrees (default) or radians
hemispheretextnorthern (default) or southern
force_hemisphereboolthe hemisphere as given (default true)
equationintegerMcCune & Keon's equation 1 (default), 2 or 3

surface.hsp#

The hierarchical slope position (spatialEco's hsp): the TPI summed over windows of growing scale.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe HSP
SettingTypeWhat it is
min_scalenumberthe first scale (3)
max_scalenumberthe last scale (27)
incnumberthe scales' step (4)
wintextrectangle (default) or circle
normalizeboolnormalised TPIs

surface.metrics#

Surface metrics of a continuous raster (an elevation, a canopy height, an NDVI...), ISO 25178 as the R package geodiv computes them, through landschaft's C++ (geodiv's bits): roughness and its distribution (amplitude), slopes and the area developed (hybrid), summits (features), the bearing area curve, the autocorrelation's lengths and directions and the fractal dimension (spatial). Usually of a surface with its trend removed. A table of one row.

InputTypeWhat it is
maprequiredmapthe surface (no value: missing)
OutputTypeWhat it is
tabletablea column per metric
SettingTypeWhat it is
metricsanynames (sa, sq, sku, sdr, sal...; default every one)

surface.peaks#

The peaks (or valleys) of a surface, geodiv's findpeaks: the cells higher (lower) than their 8 neighbours; a table of their centres, values, rows and columns.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
tabletablex, y, value, row, col
SettingTypeWhat it is
valleysboolthe valleys instead

surface.spherical_sd#

The spherical standard deviation of the surface's normals in a window (spatialEco's spherical.sd), or their variance.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe spherical standard deviation
SettingTypeWhat it is
danythe window: odd cells, or [rows, columns] (3)
varianceboolthe variance instead

surface.srr#

The surface relief ratio (spatialEco's srr): (mean - min) / (max - min) in a window.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe SRR
SettingTypeWhat it is
sanythe window: odd cells, or [rows, columns] (5)

surface.terrain#

Slope or aspect of a surface as terra::terrain (Horn's 8 or 4 neighbours), through landschaft's C++; no value on the edge cells.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe slope or aspect
SettingTypeWhat it is
vtextslope (default) or aspect
unittextdegrees (default) or radians
neighborsinteger8 (default) or 4

surface.tpi#

The topographic position index (spatialEco's tpi): each cell's value less the mean of a window around it (a rectangle of cells, or a circle of a radius in map units).

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe TPI
SettingTypeWhat it is
scalenumberthe window: odd cells, or a circle's radius (3)
wintextrectangle (default) or circle
normalizebooldivided by the window's standard deviation

surface.trasp#

The transformed aspect (spatialEco's trasp): (1 - cos(aspect - 30°)) / 2, from 0 (north-northeast) to 1.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe TRASP

surface.tri#

The terrain ruggedness index (spatialEco's tri) in an odd window of cells.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe TRI
SettingTypeWhat it is
sanythe window: odd cells, or [rows, columns] (3)

surface.vrm#

The vector ruggedness measure (spatialEco's vrm): 1 less the length of the summed unit normals of a window over its cells.

InputTypeWhat it is
maprequiredmapthe surface (an elevation...)
OutputTypeWhat it is
mapmapthe VRM
SettingTypeWhat it is
sanythe window: odd cells, or [rows, columns] (3)

surface.window#

Surface metrics in a moving window around every cell (landschaft's surface.window_metrics through its C++): the metrics of the window's surface at its centre, no value beyond the edges (and beyond window / 2 cells in a circle). A map per metric, in a stack.

InputTypeWhat it is
maprequiredmapthe surface
OutputTypeWhat it is
mapsstacka map per metric, by its name
SettingTypeWhat it is
metricsanynames (default every one)
windowintegerthe window's side in cells, odd, 3 or more (5)
shapetextsquare (default) or circle