dot-get_Pa: P_a: density of dry air (g / m^3)

Description Usage Arguments Details Value Examples

Description

P_a: density of dry air (g / m^3)

Usage

1
.get_Pa(T_leaf, pars, unitless)

Arguments

T_leaf

Leaf temperature in Kelvin

pars

Concatenated parameters (leaf_par, enviro_par, and constants)

unitless

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.

Details

P_a = P / (R_air (T_leaf - T_air) / 2)

Symbol R Description Units Default
P P atmospheric pressure kPa 101.3246
R_air R_air specific gas constant for dry air J / (kg K) 287.058
T_air T_air air temperature K 298.15
T_leaf T_leaf leaf temperature K input

Value

Value in g / m^3 of class units

Examples

1
2
3
4
5
6
7
8
9
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)

cdmuir/tealeaves documentation built on June 21, 2020, 2:32 a.m.