dot-get_Pa.RdP_a: density of dry air (g / m^3)
.get_Pa(T_leaf, pars, unitless)Leaf temperature in Kelvin
Concatenated parameters (leaf_par, enviro_par, and constants)
Logical. Should function use parameters with units? The function is faster when FALSE, but input must be in correct units or else results will be incorrect without any warning.
Value in g / m\(^3\) of class units
$$P_\mathrm{a} = P / (R_\mathrm{air} (T_\mathrm{leaf} - T_\mathrm{air}) / 2)$$
| Symbol | R | Description | Units | Default |
| \(P\) | P | atmospheric pressure | kPa | 101.3246 |
| \(R_\mathrm{air}\) | R_air | specific gas constant for dry air | J / (kg K) | 287.058 |
| \(T_\mathrm{air}\) | T_air | air temperature | K | 298.15 |
| \(T_\mathrm{leaf}\) | T_leaf | leaf temperature | K | input |
library(tealeaves)
cs <- make_constants()
ep <- make_enviropar()
lp <- make_leafpar()
T_leaf <- set_units(298.15, K)
tealeaves:::.get_Pa(T_leaf, c(cs, ep, lp), FALSE)
#> 1183.887 [g/m^3]