View source: R/optimization_rock.R
optimization_rock | R Documentation |
Optimization of rock fragment content
optimization_rock(
sf,
SpParams,
meteo = NULL,
local_control = defaultControl(),
dates = NULL,
parallelize = FALSE,
num_cores = detectCores() - 1,
chunk_size = NULL,
PLCquantile = 0.9,
qPLC_target = 12,
qPLC_tol = 0.5,
sew_min = 30,
max_rocks = 99,
progress = TRUE
)
sf |
An object of class |
SpParams |
A data frame with species parameters (see |
meteo |
Input meteorological data (see section details in |
local_control |
A list of control parameters (see |
dates |
A |
parallelize |
Boolean flag to try parallelization (will use all clusters minus one). |
num_cores |
Integer with the number of cores to be used for parallel computation. |
chunk_size |
Integer indicating the size of chuncks to be sent to different processes (by default, the number of spatial elements divided by the number of cores). |
PLCquantile |
Maximum PLC quantile to be calculated across years. |
qPLC_target |
Target PLC to be achieved (by default 12%). |
qPLC_tol |
Tolerance of PLC difference to target accepted when finding solution. |
sew_min |
Minimum soil extractable water (mm) for rock exploration. |
max_rocks |
Maximum content in coarse fragments allowed for any soil layer. |
progress |
Boolean flag to display progress information of simulations. |
An object of class sf
with a modified soil
column and an additional column
optimization_message
with text information about the optimization.
Miquel De Cáceres Ainsa, CREAF
utils_rockOptimization
data("example_ifn")
data("examplemeteo")
data("SpParamsMED")
example_subset <- example_ifn[31:32, ]
optimization_rock(example_subset, SpParamsMED, examplemeteo)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.