spwbgrid: Soil-plant water balance and lateral water discharge

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Function spwbgrid conducts daily soil and plant water balance over a grid of cells while incorporating water runoff from upperslope cells into the current cell.

Usage

1
2
3
4
5
spwbgrid(y, SpParams, meteo, dates,
           summaryFreq = "years", trackSpecies = numeric(),
           control = defaultControl())
## S3 method for class 'spwbgrid'
plot(x, type = "Runon", summaryIndex = 1, spIndex = NULL, ...)

Arguments

y

An object of class SpatialGridLandscape-class.

SpParams

A data frame with species parameters (see SpParamsMED).

meteo

A SpatialGridMeteorology-class object, a data frame with two columns: 'dir' and 'filename, to indicate the path to the meteorological data, or a data frame with meteorological data (the same for all cells).

dates

A Date object describing the days of the period to be modeled.

summaryFreq

Frequency in which summary layers will be produced (e.g. "years", "months", ...) (see cut.Date).

trackSpecies

An integer vector containing the indices of species for which transpiration and drought stress is to be tracked.

control

A list of control parameters (see defaultControl).

x

An object of class spwbgrid.

type

Type of information to be drawn.

summaryIndex

The index of the summary to be ploted.

spIndex

The index of the species to be ploted (for some types).

...

Additional parameters to function spplot.

Details

Function spwbgrid requires daily meteorological data over a grid. The user may supply:

  1. an object of class SpatialGridMeteorology.

  2. a data frame with information regarding where to read meteorological data.

  3. a data frame with meteorological data common for all cells of the grid.

Value

A list of class 'spwbgrid' with the following elements:

Then, the following matrices are included (each with as many rows as cells and as many columns as summary points):

The same list contains two three-dimensional arrays (each with dimensions number of cells, number of summary layers and number of tracked species):

Author(s)

Miquel De Cáceres Ainsa, Centre Tecnologic Forestal de Catalunya.

See Also

spwb, spwbpoints, SpatialGridLandscape-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
# Load spatial grid landscape object
data("exampleSGL")

#Load meteorological data (the same will be used for all points)
data("examplemeteo")

#Load species parameters
data("SpParamsMED")

# Deactivate extra console output
control = defaultControl()
control$verbose = FALSE

# Run water balance simulation over the grid for five days
# (you can test longer periods)
res <- spwbgrid(exampleSGL, SpParamsMED, examplemeteo[1:5,],
                control = control, summaryFreq = "months")

miquelcaceres/medfateland documentation built on June 4, 2019, 1:55 p.m.