Compute correction factor to convert gas volumes from room temperature saturated to BTPS, assuming that gas was sampled at barometric pressure of 760 mmHg.
get_btps_factor(temp)
(Numeric) Room Temperature in celsius when gas was collected.
A numeric factor to convert volume of gas to 37 celsius saturated with water vapor
# If temp in lookup table, simply use BTPS Correction factor from the table
get_btps_factor(20)
#> [1] 1.102
# If temp not in lookup table, use prediction by linear model.
get_btps_factor(20.5)
#> [1] 1.100528
# Input can be vectorised
get_btps_factor(c(20.5, NA, 21:22))
#> [1] 1.100528 NA 1.096000 1.091000