Methods to load maps of explanatory variables, which may be created from file, an existing Raster* object or a list of Raster* objects.
ExpVarRasterList(x, ...)# S4 method for missing
ExpVarRasterList(x, pattern = NULL, ...)
# S4 method for character
ExpVarRasterList(x, pattern = NULL, ...)
# S4 method for RasterStack
ExpVarRasterList(x, pattern = NULL, ...)
# S4 method for list
ExpVarRasterList(x, pattern = NULL, ...)
path (character) to directory containing observed land use maps, a Raster* object or a list of Raster* objects
additional arguments to raster::stack
regular expression (character). Only filenames (if x
is
a path) or Raster* objects (if x
is a list) matching the regular
expression will be returned. See
raster::raster
for more information about supported
filetypes
An ExpVarRasterList object.
Explanatory variables should follow a naming convention to identify them as static (one map provided for the study period) or dynamic (one map provided for each year of the study period). The name should consist of two (static) or three (dynamic) parts: firstly, the prefix should differentiate explanatory variables from other maps in the directory, list or RasterStack. This should be followed by a unique number to differentiate the explanatory variables (note that the order of variables in the ExpVarRasterList object is determined by this value) If the variable is dynamic this number should be followed by a second number representing the timestep to which the map applies. Dynamic variables should include a map for time 0 (corresponding to the initial observed map) and every subsequent timestep in the simulation. The different parts should be separated by a period or underscore.
Maps of different explanatory variables should have the same coordinate
reference system but do not have to have the same extent and resolution as
long as the minimum extent is that of the study region defined by an
ObsLulcRasterStack
object. However, maps for different timesteps of the same
dynamic variable should have the same extent and resolution because these are
stored as RasterStack objects.
raster::stack
# NOT RUN {
## Plum Island Ecosystems
ef <- ExpVarRasterList(x=pie, pattern="ef")
## Sibuyan
ef <- ExpVarRasterList(x=sibuyan$maps, pattern="ef")
# }
Run the code above in your browser using DataLab