| initialize_landscape {medfateland} | R Documentation |
Initialization of model inputs for spatially-distributed forest stands
Description
Initializes state for local models spwb or growth.
Usage
initialize_landscape(
x,
SpParams,
local_control,
model = "spwb",
simplify = FALSE,
replace = FALSE,
progress = TRUE
)
Arguments
x |
An object of class
|
SpParams |
A data frame with species parameters (see |
local_control |
A list of control parameters (see |
model |
A string to indicate the model, either |
simplify |
Boolean flag to simplify forest to the tree and shrub cohorts with largest leaf area index. The leaf area index of the whole tree (respectively, shrub) layer will be attributed to the selected cohort.
See function |
replace |
Boolean flag to replace existing initialized states |
progress |
Boolean flag to display progress information. |
Details
Initialization is dealt automatically when calling simulation functions spwb_spatial, growth_spatial,
spwb_spatial_day or growth_spatial_day. However, function initialize_landscape allows separating initialization from model simulations.
Option simplify has been implemented to allow simplification of forests to tree/shrub dominant cohorts during watershed simulations
where focus is on runoff (e.g. calibration of watershed parameters or burnin periods). Elements identified as result_cell will not be simplified.
Value
Replaces or adds column 'state' whose elements are spwbInput or growthInput objects
and returns the modified object of class 'sf'.
Author(s)
Miquel De Cáceres Ainsa, CREAF
See Also
spwb_spatial, spwb_spatial_day,
update_landscape
Examples
# Load example landscape data
data("example_ifn")
# Load example meteo data frame from package meteoland
data("examplemeteo")
# Load default medfate parameters
data("SpParamsMED")
# Define local control parameters using function in medfate
local_control <- defaultControl()
# If necessary, change defaults
# Initialize state for 'spwb' simulations
example_ifn_init <- initialize_landscape(example_ifn, SpParamsMED,
local_control = local_control,
model = "spwb")