buildEnv: Build an environmental space to run the model across

Description Usage Arguments Details Value See Also Examples

View source: R/BuildEnv_fun.R

Description

buildEnv builds the environmental parameters across which the dynamic model will be applied. This does not necessairly need to represent real-world condtions but can instead be used to explore all of parameter space.

Usage

1
2
buildEnv(temp, pct.rh, range.res.temp = 1, range.res.rh = 1, twinter,
  winter.res = 24)

Arguments

temp

a raster or a list of two numbers representing the minimum and maximum temperatures to run the model across.

pct.rh

a raster or a list of two numebers representing the minimum and maximum percent relative humidity to run the model across.

range.res.temp

a single numeber representing the resultion of temp.range.

range.res.rh

a single numeber representing the resultion of pct.rh.range.

twinter

the maximal length of winter to run the model across in either days or months.

winter.res

temporal resolution of the twinter vector. Default is hourly, although other options can be selected.

Details

This step can be a major determinate of how fast the model will run . If the temp.range and pct.rh.range and large or range.res is especially fine, this may present computational challenges downstream.

Value

returns an expanded dataframe containing all possiable combinations of temperature and humidity conditions across which the model will be run, as well as vector to act as the temporal vector to run the model across

See Also

hibernationModel

Other Model Engine: batDynamic, hibernationModel

Examples

1
2
3
4
5
6
7
##BuildEnv
m.env <- buildEnv(temp = c(1,100),
                  pct.rh = c(1,100),
                  range.res.temp = 1,
                  range.res.rh = 1,
                  twinter = 9,
                  winter.res = 24)

cReedHranac/batwintor documentation built on Jan. 27, 2020, 7:39 p.m.