Skip to content

Commit 75cf90d

Browse files
committed
fix docs
1 parent b655ab2 commit 75cf90d

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

modules/data.atmosphere/R/metutils.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ get.vpd <- function(rh, temp) {
7474

7575
#' Saturation vapor pressure (t2es)
7676
#'
77-
#' @md
7877
#' Compute saturation vapor pressure from temperature using one of the
7978
#' following methods:
8079
#' - (Default) Clausius–Clapeyron (FAO-56 style) — Recommended for most applications.
@@ -102,13 +101,14 @@ get.vpd <- function(rh, temp) {
102101
#' Goff, J. A., & Gratch, S. (1946). Low-pressure properties of water from −160 to 212F. Trans. ASHVE, 52, 95–122.
103102
#'
104103
#' WMO (2014) Guide to Instruments and Methods of Observation (WMO-No. 8), ch. 4.
104+
#' @md
105105
#' @author David LeBauer
106106
#' @export
107107
sat_vapor_pressure <- function(
108108
temp,
109109
temp_units = "degC",
110110
out_units = "kPa",
111-
method = "ClausiusClapeyron") {
111+
method = c("ClausiusClapeyron", "Magnus", "GoffGratch")) {
112112
method <- match.arg(method)
113113
# normalize common alias
114114
if (tolower(out_units) == "mb") out_units <- "hPa"

modules/data.atmosphere/man/sat_vapor_pressure.Rd

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)