Creates a set of targets for a landscape class, which can be converted into JSON for flsgen.
flsgen_create_class_targets(
class_name,
NP = NULL,
AREA = NULL,
AREA_MN = NULL,
CA = NULL,
PLAND = NULL,
PD = NULL,
SPI = NULL,
LPI = NULL,
MESH = NULL,
SPLI = NULL,
NPRO = NULL,
SDEN = NULL,
COHE = NULL,
DIVI = NULL,
IS_SQUARE = FALSE,
ALL_DIFFERENT = FALSE
)
A class targets object which can be converted to JSON for flsgen
Name of the class
number of patches target (must be a vector of length 2)
patch area target (must be a vector of length 2)
mean patch area target (must be a vector of length 2)
total class area target (must be a vector of length 2)
proportion of landscape target (must be a vector of length 2)
patch density target (must be a vector of length 2)
smallest patch index target (must be a vector of length 2)
largest patch index target (must be a vector of length 2)
effective mesh size target (must be a vector of length 2)
splitting index target (must be a vector of length 2)
net product target (must be a vector of length 2)
splitting density target (must be a vector of length 2)
degree of coherence target (must be a vector of length 2)
degree of landscape division target (must be a vector of length 2)
if TRUE, the class is required to only produce square patches
if TRUE, the class is required to have differently sized patches
Note that NP and AREA targets can be set as NULL, if the class targets is used within the `generate_series` function to generate landscape series with varying NP and/or AREA. However, flsgen won't run is NP and AREA are not set elsewhere.
if (FALSE) {
cls_1 <- flsgen_create_class_targets("class 1", NP=c(1, 10), AREA=c(0, 1000))
}
Run the code above in your browser using DataLab