spwbpoints: Model simulations for spatially-distributed forest stands

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

Description

Functions spwbpoints and growthpoints allow calling local models spwb and growth, respectively, for a set of forest stands distributed in specific locations. No spatial processes are simulated.

Usage

1
2
3
4
spwbpoints(y, SpParams, meteo, control = defaultControl(),
       dates = NULL, summaryFunction = NULL, args=NULL)
growthpoints(y, SpParams, meteo, control = defaultControl(),
       dates = NULL, summaryFunction = NULL, args=NULL)

Arguments

y

An object of class SpatialPointsLandscape-class.

SpParams

A data frame with species parameters (see SpParamsMED).

meteo

Meteorology data (see details).

control

A list of control parameters (see defaultControl).

dates

A Date object with the days of the period to be modeled. If NULL, then the whole period of meteo is used.

summaryFunction

An appropriate function to calculate summaries (e.g., summary.spwb).

args

List with additional arguments for the summary function.

Details

Functions spwbpoints and growthpoints accept different formats for meteorological input (parameter meteo). If a data.frame is supplied (as in spwb or growth) then the same meteorology is used for all points (not recommended). To specify different meteorology for different points, the user can use an object of SpatialPointsMeteorology-class. Alternatively, the user can supply an object of class SpatialPointsDataFrame-class containing the meta data (columns dir and filename) of meteorological files that will be read from the disk.

Value

Functions spwbpoints and growthpoints return a list with the following elements:

Author(s)

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

See Also

spwb, growth, SpatialPointsLandscape-class

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# Load spatial points forest object
data("exampleSPL")

#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 simulation for the first two forest plots
# (you can run the code without subsetting 'exampleSPL')
res <- spwbpoints(exampleSPL, SpParamsMED, examplemeteo, control = control)

#Extract summaries for a given forest plot
summary(res$result$`80001`, freq="months",FUN=sum,
        output="PlantStress", bySpecies = TRUE)

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