powered by
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 )
An object of class sf with a modified soil column and an additional column optimization_message with text information about the optimization.
sf
soil
optimization_message
An object of class sf (see spwb_spatial).
spwb_spatial
A data frame with species parameters (see SpParamsMED).
SpParamsMED
Input meteorological data (see section details in spwb_spatial).
A list of control parameters (see defaultControl).
defaultControl
A Date object describing the days of the period to be modeled.
Date
Boolean flag to try parallelization (will use all clusters minus one).
Integer with the number of cores to be used for parallel computation.
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).
Maximum PLC quantile to be calculated across years.
Target PLC to be achieved (by default 12%).
Tolerance of PLC difference to target accepted when finding solution.
Minimum soil extractable water (mm) for rock exploration.
Maximum content in coarse fragments allowed for any soil layer.
Boolean flag to display progress information of simulations.
Miquel De Cáceres Ainsa, CREAF
utils_rockOptimization
# \donttest{ data("example_ifn") data("examplemeteo") data("SpParamsMED") example_subset <- example_ifn[31:32, ] optimization_rock(example_subset, SpParamsMED, examplemeteo) # }
Run the code above in your browser using DataLab