The function creates a raster with interpolated connectivity metric values from a metric already computed in the Graphab project.
graphab_interpol(
proj_name,
name,
reso,
linkset,
graph,
var,
dist,
prob = 0.05,
thr = NULL,
summed = FALSE,
proj_path = NULL,
alloc_ram = NULL
)
A character string indicating the Graphab project name.
The project name is also the name of the project directory in which the
file proj_name.xml is. It can be created with graphab_project
A character string indicating the name of the raster to be created after the interpolation.
An integer indicating the spatial resolution in meters of the raster resulting from the metric interpolation.
A character string indicating the name of the link set used for the interpolation. It should be the one used to create the used graph and the metric.
A character string indicating the name of the graph from which
the metric was computed and whose links are considered for a potential
multi-linkage with patches.
This graph has been created with Graphab or using graphab_graph
function and is associated with a link set.
A character string indicating the name of the already computed metric to be interpolated.
A numeric or integer value specifying the distance at which we
assume a probability equal to prob
during the interpolation.
It is used to set \(\alpha\) for computing probabilities associated
with distances between each pixel and the neighboring patch(es) such that
probability between patch i and pixel j is \(p_{ij}= e^{-\alpha d_{ij}}\).
A numeric or integer value specifying the probability
at distance dist
. By default, code=0.05
. It is used to set
\(\alpha\) (see param dist
above).
(default NULL) If NULL, the value of each pixel is computed from
the value of the metric at the nearest habitat patch, weighted by a
probability depending on distance. If an integer, the value of each pixel
depends on the values of the metric taken at several of the nearest habitat
patches, up to a distance (cost or Euclidean distance, depending on the type
of linkset) equal to thr
.
Logical (default = FALSE) only used if thr
is not NULL,
and specifying whether multiple values are summed up (TRUE) or averaged
after being weighted by probabilities.
(optional) A character string indicating the path to the
directory that contains the project directory. It should be used when the
project directory is not in the current working directory. Default is NULL.
When 'proj_path = NULL', the project directory is equal to getwd()
.
(optional, default = NULL) Integer or numeric value indicating RAM gigabytes allocated to the java process. Increasing this value can speed up the computations. Too large values may not be compatible with your machine settings.
P. Savary
See more information in Graphab 2.8 manual: https://sourcesup.renater.fr/www/graphab/download/manual-2.8-en.pdf Be careful, when capacity has been changed. The last changes are taken into account for subsequent calculations in a project.
if (FALSE) {
graphab_interpol(proj_name = "grphb_ex",
name = "F_interp",
reso = 20,
linkset = "lcp",
graph = "graph",
var = "F_d600_p0.5_beta1_graph",
dist = 600,
prob = 0.5)
}
Run the code above in your browser using DataLab