This function generates the spatiotemporal dynamics based in the initial landscape, climate change and forest management
run_model(steps, initLand, managInt = c(0, 0, 0, 0), RCP = 0, stoch = TRUE, cores = 1, outputLand = NA, rangeLimitOccup = NULL, stateOccup = FALSE, saveOutput = FALSE, fileOutput = NULL, folderOutput = NULL)
steps | numeric, the total number of steps to run the model. Here 1 step is equivalent to 5 years. |
---|---|
initLand | output object from the |
managInt | vector, intensity of the four ordered management practices: plantation, harvest, thinning and enrichment plantation. Values must be bounded between |
RCP | Numeric, Representative Concentration Pathway. Five scenarios of RCP are available: |
stoch | logical, if |
cores | numeric, the number of cores to be used in a parallel computation. The parallel is computed with the |
outputLand | vector, an integer vector to define the time steps to be saved at the end of the simulation. This argument is useful when we only need to compare the first and last time step |
rangeLimitOccup | numeric between 0 and 1. If not |
stateOccup | logical, calculate the proportion of the four forest states for each row of the landscape for all time steps. This argument is useful when you need the information from each time step but cannot save all landscapes because of memory limitation. Returns a list with a data frame for each time step |
saveOutput | logical, if |
fileOutput, | character, if not |
folderOutput, | character, if not |
a list with the (i) landscape configuration for each step, (ii) scaled temperature gradient, (iii) steps, (iv) management intensity, (v) RCP scenario, (vi) landscape dimensions and (vii) range limit data frame
if (FALSE) { initLand = create_virtual_landscape(cellSize = 5) lands <- run_model(steps = 10, initLand, managInt = c(0.15, 0, 0, 0), RCP = 4.5, rangeLimitOccup = 0.75) }