budget: Calculate annual energy budget

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate annual energy budget

Usage

1
2
3
budget(biophys.inputs,
PFT.out,
metabolism.out)

Arguments

biophys.inputs

Object created from running biophys.prep

PFT.out

Hourly potential foraging times. Pass results from pft

metabolism.out

Hourly metabolic measures. Pass results from metabolism

Details

This function summarizes hourly measures to calculate average consumption, average metabolic rate, average potential foraging time, and total metabolic expenditure.

Value

A list that containing a raster stack that includes (1) annual energy budget; (2) total annual metabolic rate; (3) annual potential foraging time; (4) total annual consumption, as well as the annual values in vector format

Author(s)

Bill Peterman <Bill.Peterman@gmail.com>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# 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)
metabolism.out <- metabolism(biophys.inputs, temp.data)

annual.budget <- budget(biophys.inputs, PFT.out, metabolism.out)
plot(annual.budget$Raster.results)

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