Learn R Programming

medfate (version 0.2.2)

SpatialPointsForest: Creates Spatial Forest Classes

Description

Functions to create spatial forest classes from Spanish Forest Inventory (SFI) data (see details). Internally, these functions make calls to extractSFIforest.

Usage

SpatialPointsForest(SFItreeData, SFIshrubData, SFIherbData = NULL,
                    SpatialPointsIDs, elevation, slope, aspect, SpParams, 
                    SoilParamData = NULL, SFIcodes=NULL, control = defaultControl())
SpatialGridForest(landTopo, SFItreeData, SFIshrubData, SpatialPointsIDs, 
                SpParams, SoilParamData = NULL, lctInput, 
                forestLCTs, shrublandLCTs, grasslandLCTs, agricultureLCTs= numeric(0), 
                rockLCTs= numeric(0), staticLCTs= numeric(0),
                SFIcodes=NULL, FMcodes = NULL, control = defaultControl())

Arguments

landTopo

An object of class SpatialGridTopography.

SFItreeData

A data frame with measured tree data.

SFIshrubData

A data frame with measured shrub data.

SFIherbData

A data frame with percent cover and mean height of the herb layer.

SpatialPointsIDs

An object of class SpatialPoints-class containing the coordinates of the forest plots. Coordinates must include row names corresponding to plot IDs.

elevation

A numeric vector with elevation values (in m).

slope

A numeric vector with slope values (in degrees).

aspect

A numeric vector with aspect values (in degrees from North).

SpParams

A data frame with species parameters (see SpParamsMED).

SoilParamData

A data frame with soil parameters for each forest stand. The rows must match SpatialPointsIDs or SpatialGridIDs, depending on the function called. If NULL, then the parameters given by defaultSoilParams are used.

SFIcodes

A string vector (of length equal to the number of rows in SpParams of the SFI species codes that correspond to the model species codification. Each string may contain different coma-separated codes in order to merge SFI species into a single model species.

FMcodes

A string vector with the fuel model code corresponding to each forest plot. Names of this string vector should be plot IDs.

control

A list of control parameters (see defaultControl).

lctInput

A character vector with the land cover type input for initialization of unsurveyed cells.

forestLCTs, shrublandLCTs, grasslandLCTs

Integer vectors with the land cover types that are to be considered 'wildland' (i.e. forests, shrublands or grasslands). Initialization of forest and shrublands cells will make use of SFI plot data, but in shrublands only shrubs are used. Initialization of grasslands specifies an emptyforest.

agricultureLCTs, rockLCTs, staticLCTs

Integer vectors with the land cover types that are to be considered 'agriculture', 'rock' (i.e. outcrops) or 'static' (i.e. urban, water masses). Agricultural areas are like grasslands, but they can never be vegetated with wildland. Rock cells allow surface water flow over them, but do not contain vegetation nor soil and cannot be burned. Static cells do not burn and water entering them does not flow to any other cell.

Value

An object of class SpatialPointsForest-class or SpatialGridForest-class depending on the function.

See Also

forest, extractSFIforest