convert_conductance: Convert conductance units

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Convert conductance units

Usage

1
convert_conductance(.g, Temp = NULL, P = NULL)

Arguments

.g

Conductance in class units. Units must convertible to one of "m/s", "umol/m^2/s/Pa", or "mol/m^2/s"

Temp

A temperature value of class units

P

A pressure value of class units that is convertible to kPa

Value

A list of three values of clas units with units "m/s", "umol/m^2/s/Pa", and "mol/m^2/s".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
g_sw <- set_units(10, "m/s")
convert_conductance(g_sw, 
                    Temp = set_units(298.15, "K"), 
                    P = set_units(101.3246, "kPa"))

g_sw <- set_units(4, "umol/m^2/s/Pa")
convert_conductance(g_sw, 
                    Temp = set_units(298.15, "K"), 
                    P = set_units(101.3246, "kPa"))

g_sw <- set_units(0.4, "mol/m^2/s")
convert_conductance(g_sw, 
                    Temp = set_units(298.15, "K"), 
                    P = set_units(101.3246, "kPa"))

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