Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

energy_balance

Calculate leaf energy balance


Description

Calculate leaf energy balance

Usage

energy_balance(
  tleaf,
  leaf_par,
  enviro_par,
  constants,
  quiet = FALSE,
  components = FALSE,
  set_units = FALSE
)

Arguments

tleaf

Leaf temperature in Kelvin. If input is numeric, it will be automatically converted to units.

leaf_par

A list of leaf parameters. This can be generated using the make_leafpar function.

enviro_par

A list of environmental parameters. This can be generated using the make_enviropar function.

constants

A list of physical constants. This can be generated using the make_constants function.

quiet

Logical. Should a message appear about conversion from numeric to units? Useful for finding leaf temperature that balances heat transfer using uniroot.

components

Logical. Should leaf energy components be returned? Transpiration (in mol / (m^2 s)) also returned.

set_units

Logical. Should units be set? The function is faster when FALSE, but input must be in correct units or else results will be incorrect without any warning.

Value

A numeric value in W / m^2. Optionally, a named list of energy balance components in W / m^2 and transpiration in mol / (m^2 s).

Examples

library(tealeaves)

cs <- make_constants()
ep <- make_enviropar()
lp <- make_leafpar()
ep$T_sky <- ep$T_sky(ep)

T_leaf <- set_units(298.15, K)

energy_balance(T_leaf, lp, ep, cs, FALSE, TRUE, TRUE)

tealeaves

Solve for Leaf Temperature Using Energy Balance

v1.0.5
MIT + file LICENSE
Authors
Chris Muir [aut, cre] (<https://orcid.org/0000-0003-2555-3878>)
Initial release
2020-06-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.