Terraflux Terraflux
Download

Fragmentation

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

fragmentation.clustering#

Foreground area clustering (FAC) in a moving window, as GuidosToolbox (SpatCon's rule 76): the share (%) of the edges in the window with data that join foreground to foreground; 101 background, 102 missing. The foreground is the classes given, or the map is coded 0 missing, 1 background, 2 foreground.

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
mapmapthe clustering (%), GTB's codes off the foreground
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)
windowintegerthe window's side in cells, odd (default 7)

fragmentation.contagion#

Contagion (Pff) in a moving window, as GuidosToolbox (SpatCon's rule 77): the share (%) of the foreground's edges in the window that join foreground to foreground; 101 background, 102 missing. The foreground is the classes given, or the map is coded 0 missing, 1 background, 2 foreground.

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
mapmapthe contagion (%), GTB's codes off the foreground
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)
windowintegerthe window's side in cells, odd (default 7)

fragmentation.entropy#

Spatial joint entropy of the whole map, as GuidosToolbox: how mixed the pairs of neighbouring cells are, in % of the most they could be (0 one class, 100 as mixed as can be). The foreground is the classes given, or the map is coded 0 missing, 1 background, 2 foreground.

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
indexnumberthe entropy (%)
pairstablethe code of each kind of pair of neighbours and its count
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)

fragmentation.entropy_map#

Spatial joint entropy in a moving window, as GuidosToolbox's batch: for each cell the entropy (%) of the pairs of neighbours in the window around it. The foreground is the classes given, or the map is coded 0 missing, 1 background, 2 foreground.

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
mapmapthe entropy (%) around each cell
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)
windowintegerthe window's side in cells, 3 or more (default 50)

fragmentation.fad#

Forest Area Density, as GuidosToolbox computes it: the share (%) of foreground in a square window around each foreground cell, and its classes: rare (<10%), patchy, transitional, dominant, interior (90-100%) and intact (100%). The foreground is the classes given, or the map is coded 0 missing, 1 background, 2 foreground, 3 and 4 special backgrounds (the second not fragmenting).

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
mapmapthe density (%), GTB's codes off the foreground
classesmapthe classes 1 (rare) to 6 (intact), GTB's codes elsewhere
statstablethe window, the % of the foreground in each class and the average density
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)
windowintegerthe window's side in cells, odd (default 7)

fragmentation.fad_multiscale#

Forest Area Density at several observation scales, as GuidosToolbox's FAD-MS: the density (%) in windows of 7, 13, 27, 81 and 243 cells (or those given) and their average, with its classes. The foreground is the classes given, or the map is coded 0 missing, 1 background, 2 foreground, 3 and 4 special backgrounds.

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
mapmapthe average density over the windows (%), GTB's codes elsewhere
classesmapthe average's classes 1 (rare) to 6 (intact)
scalesstackthe density at each window, by its side
statstableper window (0 for the average): the % of the foreground in each class, the average density and AVCON (the average over the area with data)
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)
windowsanythe windows' sides in cells, odd (default 7 13 27 81 243)

fragmentation.fos#

Fragmentation at a Fixed Observation Scale, as GuidosToolbox's FOS: for each foreground cell the connectivity (%) of the foreground in a square window, by FAD (the foreground's share), FED (its edges: GraySpatCon's clustering) or FAC (foreground-foreground pairs, binary maps only), reported in 5 or 6 classes. The map is binary (the foreground's classes given, or coded 0 missing, 1 background, 2 foreground, 3 and 4 special backgrounds) or a % cover (0-100, 255 missing, 103 and 104 special backgrounds) whose foreground is the cover from a threshold up.

InputTypeWhat it is
maprequiredmapthe map
OutputTypeWhat it is
mapmapthe connectivity (%), GTB's codes off the foreground
statstableper class (1 rare .. 6 intact): the % of the foreground
summarytableGTB's report: the average connectivity, AVCON, the foreground and its patches, ECA and coherence
reporttextGTB's report (fos.txt)
SettingTypeWhat it is
foregroundanythe foreground's classes (a class or a list)
windowintegerthe window's side in cells, odd (default 27)
methodtextFAD (default), FED or FAC
classesinteger5 or 6 (default: intact apart from interior)
connectivityintegerof the patches: 8 (default) or 4
grayscaleboola % cover (default: when its largest value passes 4)
gray_thresholdintegera % cover's foreground: from this up (default 30)
pixel_resolutionnumberthe report's cell size in metres (25)

fragmentation.gray_convolution#

A moving window over a % cover (0-100; above 100 or without a value missing), as GuidosToolbox's GraySpatCon: the mean, median, majority, min, max, range, standard deviation (stddev), Shannon's diversity or evenness, or diagonal contagion of the cover around each cell.

InputTypeWhat it is
maprequiredmapthe cover (%)
OutputTypeWhat it is
mapmapthe metric around each cell
SettingTypeWhat it is
metrictextmean, median, majority, min, max, range, stddev, shannon_diversity, shannon_evenness, diagonal_contagion (default mean)
windowintegerthe window's side in cells, odd (default 7)
mask_missingboolno value where the cover is missing (default true)

fragmentation.landscape_mosaic#

The landscape mosaic, as GuidosToolbox (SpatCon's rule 7): for each cell the mix of agriculture, natural land and developed land in a moving window, in 19 classes (dominant, pairs, mosaics, pure) or 103. The map is coded 0 missing, 1 agriculture, 2 natural, 3 developed, or the classes of each are given (the others missing).

InputTypeWhat it is
maprequiredmapthe land cover
OutputTypeWhat it is
mapmapthe mosaic's classes (0 missing)
statstableper class of 103: its cells, % of the cells with data and its class of 19
heatmaptableGTB's heatmap: per class of 103 its share (%, single precision) and class of 19
trianglemapthe heatmap on GTB's triangle (12 x 21 cells)
heatmap_csvtextGTB's heatmap.csv
SettingTypeWhat it is
agricultureanythe land cover's classes of it (a class or a list)
naturalanythe land cover's classes of it (a class or a list)
developedanythe land cover's classes of it (a class or a list)
windowintegerthe window's side in cells, odd (default 27)
classesinteger19 (default) or 103