energy_balance.RdCalculate leaf energy balance
energy_balance(tleaf, leaf_par, enviro_par, constants, quiet = FALSE, components = FALSE, set_units = FALSE)
| tleaf | Leaf temperature in Kelvin. If input is numeric, it will be automatically converted to |
|---|---|
| leaf_par | A list of leaf parameters. This can be generated using the |
| enviro_par | A list of environmental parameters. This can be generated using the |
| constants | A list of physical constants. This can be generated using the |
| quiet | Logical. Should a message appear about conversion from |
| components | Logical. Should leaf energy components be returned? Transpiration (in mol / (m^2 s)) also returned. |
| set_units | Logical. Should |
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).
library(tealeaves) cs <- make_constants() ep <- make_enviropar() lp <- make_leafpar() T_leaf <- set_units(298.15, K) energy_balance(T_leaf, lp, ep, cs, FALSE, TRUE, TRUE)#> $energy_balance #> 245.6976 [W/m^2] #> #> $components #> $components$R_abs #> 1363.813 [W/m^2] #> #> $components$S_r #> 869.2087 [W/m^2] #> #> $components$H #> 0 [W/m^2] #> #> $components$L #> 248.9066 [W/m^2] #> #> $components$E #> 0.005658263 [mol/m^2/s] #> #>