multiple.periods: Wrapper function for 'op.temp.body' to loop over multiple...

Description Usage Arguments Details Value Author(s) Examples

Description

Wrapper function for 'op.temp.body' to loop over multiple rasters

Usage

1
2
3
4
5
6
7
8
9
multiple.periods(max.rast,
min.rast,
elev,
J,
hours,
mean = TRUE,
st.dev = TRUE,
out = "mean"
...)

Arguments

max.rast

A list providing the full path to all maximum temperature raster files. Should be of same length and order as 'min.rast'

min.rast

A list providing the full path to all minimum temperature raster files. Should be of same length and order as 'max.rast'

J

A list corresponding to the Julian day for each maximum/minimum period. Be sure that order dates matches order of file names in 'max.rast' and 'min.rast'

elev

Elevation raster object

hours

Vector of the hours each day to calculate operative body temperature

out

Results can be returned as the "mean", "sd", "all" (Default = 'mean')

...

Additional parameters to be passed to op.body.temp function.

Details

This is a helper function to calculate operative body temperatures using multiple minimum and maximum temperature surfaces (e.g., monthly averages). This function directly uses op.body.temp. Note that you should have the same numbe of minimum and maximum surfaces in each list, and they should share a common name.

Value

This function will loop over all maximum and minimum raster surfaces to calculate monthly averages. Specified output can be (1) "mean": mean of all months; (2) "sd": standard deviation of all months; (3) "all": mean, standard deviation, and each monthly average

Author(s)

Bill Peterman <Bill.Peterman@gmail.com>

Examples

1
# TO BE WRITTEN

wpeterman/biophys documentation built on May 4, 2019, 9:48 a.m.