pft: Calculate Potential Foraging Time (PFT) based on evaporative...

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate Potential Foraging Time (PFT) based on evaporative water loss

Usage

1
2
pft(biophys.inputs,
temp.out)

Arguments

biophys.inputs

Object created from running biophys.prep

temp.out

Hourly operative body temperature and air temperature. Pass results from op.temp.body

Details

This function is a wrapper to call an internal function (evap.func)

Value

This function will return the hourly evaporative water loss

Author(s)

Bill Peterman <Bill.Peterman@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# Create example data
r.max <- raster(ncol=10, nrow=10)

# assign values to cells
r.max[] <- runif(ncell(r.max),10,20)
r.min <- r.max - 5
r.elev <- r.max * 10

# Make vector of hours
night.hours <- c(19:24,1:7)

biophys.input <- biophys.prep(r.max, r.min, r.elev, hour = night.hours, month = c("April"), Julian = c(106))
temp.out <- op.body.temp(biophys.input)

PFT.out <- pft(biophys.inputs, temp.out)

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