Convert conductance units

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


g_sw <- set_units(10, "m/s")
convert_conductance(g_sw, 
                    Temp = set_units(298.15, "K"), 
                    P = set_units(101.3246, "kPa"))
#> $`m/s`
#> 10 [m/s]
#> 
#> $`umol/m^2/s/Pa`
#> 4033.956 [umol/Pa/m^2/s]
#> 
#> $`mol/m^2/s`
#> 408.739 [mol/m^2/s]
#> 

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"))
#> $`m/s`
#> 0.009915825 [m/s]
#> 
#> $`umol/m^2/s/Pa`
#> 4 [umol/Pa/m^2/s]
#> 
#> $`mol/m^2/s`
#> 0.4052984 [mol/m^2/s]
#> 

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"))
#> $`m/s`
#> 0.009786197 [m/s]
#> 
#> $`umol/m^2/s/Pa`
#> 3.947709 [umol/Pa/m^2/s]
#> 
#> $`mol/m^2/s`
#> 0.4 [mol/m^2/s]
#>