Learn R Programming

tealeaves (version 1.0.6)

tleaves: tleaves: find leaf temperatures for multiple parameter sets

Description

tleaves: find leaf temperatures for multiple parameter sets

tleaf: find leaf temperatures for a single parameter set

Usage

tleaves(
  leaf_par,
  enviro_par,
  constants,
  progress = TRUE,
  quiet = FALSE,
  set_units = TRUE,
  parallel = FALSE
)

tleaf(leaf_par, enviro_par, constants, quiet = FALSE, set_units = TRUE)

Value

tleaves:


A tibble with the following units columns

Input:
abs_lAbsorbtivity of longwave radiation (unitless)
abs_sAbsorbtivity of shortwave radiation (unitless)
g_swStomatal conductance to H2O (\(\mu\)mol H2O / (m^2 s Pa))
g_uwCuticular conductance to H2O (\(\mu\)mol H2O / (m^2 s Pa))
leafsize Leaf characteristic dimension(m)
logit_srStomatal ratio (logit transformed; unitless)
PAtmospheric pressure (kPa)
RHRelative humidity (unitless)
S_lwincident long-wave radiation flux density (W / m^2)
S_swincident short-wave (solar) radiation flux density (W / m^2)
T_airAir temperature (K)
windWind speed (m / s)
Output:
T_leafEquilibrium leaf tempearture (K)
valueLeaf energy balance (W / m^2) at tleaf
convergenceConvergence code (0 = converged)
R_absTotal absorbed radiation (W / m^2; see .get_Rabs)
S_rThermal infrared radiation loss (W / m^2; see .get_Sr)
HSensible heat flux density (W / m^2; see .get_H)
LLatent heat flux density (W / m^2; see .get_L)
EEvapotranspiration (mol H2O/ (m^2 s))

tleaf:


A data.frame with the following numeric columns:

T_leafEquilibrium leaf temperature (K)
valueLeaf energy balance (W / m^2) at tleaf
convergenceConvergence code (0 = converged)
R_absTotal absorbed radiation (W / m^2; see .get_Rabs)
S_rLongwave re-radiation (W / m^2; see .get_Sr)
HSensible heat flux density (W / m^2; see .get_H)
LLatent heat flux density (W / m^2; see .get_L)
EEvapotranspiration (mol H2O/ (m^2 s))

Arguments

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.

progress

Logical. Should a progress bar be displayed?

quiet

Logical. Should messages be displayed?

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.

parallel

Logical. Should parallel processing be used via future_map?

Examples

Run this code
# tleaf for single parameter set:

leaf_par <- make_leafpar()
enviro_par <- make_enviropar()
constants <- make_constants()
tleaf(leaf_par, enviro_par, constants)

# tleaves for multiple parameter set:

enviro_par <- make_enviropar(
  replace = list(
    T_air = set_units(c(293.15, 298.15), K)
  )
)
tleaves(leaf_par, enviro_par, constants)

Run the code above in your browser using DataLab