Function swbgrid
conducts daily soil water balance over a grid of cells while incorporating water runoff from upperslope cells into the current cell.
swbgrid(y, SpParams, meteo, dates,
summaryFreq = "years", trackSpecies = numeric(),
control = defaultControl())
# S3 method for swbgrid
plot(x, type = "Runon", summaryIndex = 1, spIndex = NULL, ...)
An object of class SpatialGridForest-class
.
A data frame with species parameters (see SpParamsMED
).
A SpatialGridMeteorology-class
object or a data frame with two columns: 'dir' and 'filename, to indicate the path to the meteorological data.
A Date
object describing the days of the period to be modeled.
Frequency in which summary layers will be produced (e.g. "years", "months", ...) (see cut.Date
).
An integer vector containing the indices of species for which transpiration and drought stress is to be tracked.
A list of control parameters (see defaultControl
).
An object of class swbgrid
.
Type of information to be drawn.
The index of the summary to be ploted.
The index of the species to be ploted (for some types).
Additional parameters to function spplot
.
A list of class 'swbgrid' with the following elements:
grid
: The GridTopology
object corresponding to the simulated area.
LandscapeBalance
: A data frame with as many rows as summary points and where columns are components of the water balance at the landscape level (i.e., precipitation, interception, soil evaporation, plant transpiration, ...).
Then, the following matrices are included (each with as many rows as cells and as many columns as summary points):
NetPrec
: Net precipitation, after accounting for interception (in mm).
Infiltration
: The amount of water infiltrating into the soil (in mm).
Runon
: The amount of water imported from other cells via surface runoff (in mm).
Runoff
: The amount of water exported via surface runoff (in mm).
DeepDrainage
: The amount of water exported via deep drainage (in mm).
Esoil
: Bare soil evaporation (in mm).
Eplant
: Plant transpiration (in mm).
The same list contains two three-dimensional arrays (each with dimensions number of cells, number of summary layers and number of tracked species):
Transpiration
: Total transpiration (in mm) of the tracked species for each summary period.
DI
: Drought intensity (from 0 to 1) of the tracked species for each summary period.
Function swbgrid
requires daily meteorological data over a grid. The user may supply an object of class SpatialGridMeteorology
(see package 'meteoland') or a data frame with information regarding where to read meteorological data.