You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/data.atmosphere/NEWS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
*`ERA5_met_process()` can now process ensemble data efficiently in parallel using new option `n_cores`
4
4
* Dependency `ggplot2` is now suggested rather than required. It is used in two vignettes and for optional diagnostic plots from `debias_met_regression`.
5
-
5
+
* New function `sat_vapor_pressure()` added for computing saturation vapor pressure from temperature using various methods.
#' Compute saturation vapor pressure from temperature using one of the
78
+
#' following methods:
79
+
#' - (Default) Clausius–Clapeyron (FAO-56 style) — Recommended for most applications.
80
+
#' Commonly used approximation for terrestrial ecosystem models, consistent with Penman-Monteith
81
+
#' and FAO-56 (Allen et al, 1998).
82
+
#' - Magnus — More accurate in the range −40 to +50 C. Coefficients as in Alduchov & Eskridge (1996).
83
+
#' - Goff–Gratch - Highest accuracy; use when following WMO-style recommendations. Goff–Gratch 1946; WMO, 2014.
84
+
#'
85
+
#' Each method uses different units internally, users can specify units
86
+
#' for both inputs and outputs, with defaults "degC" and "kPa", respectively.
87
+
#'
88
+
#' @param temp numeric vector of temperatures
89
+
#' @param method one of "Magnus","ClausiusClapeyron" (default), or "GoffGratch".
90
+
#' See details for references.
91
+
#' @param temp_units input temperature units ("degC","K","degF"), default "degC"
92
+
#' @param out_units output pressure units ("kPa","hPa","Pa","mb"), default "kPa"
93
+
#' @return numeric vector in `out_units`
94
+
#' @aliases t2es
95
+
#'
96
+
#' @references
97
+
#' Alduchov, O. A., & Eskridge, R. E. (1996). Improved Magnus Form Approximation of Saturation Vapor Pressure. J. Appl. Meteor.*, 35(4), 601–609. <doi:10.1175/1520-0450(1996)035<0601:IMFAOS>2.0.CO;2>
98
+
#'
99
+
#' Allen, R. G., Pereira, L. S., Raes, D., & Smith, M. (1998). **Crop evapotranspiration – Guidelines for computing crop water requirements.** FAO Irrigation and Drainage Paper 56.
100
+
#'
101
+
#' Goff, J. A., & Gratch, S. (1946). Low-pressure properties of water from −160 to 212F. Trans. ASHVE, 52, 95–122.
102
+
#'
103
+
#' WMO (2014) Guide to Instruments and Methods of Observation (WMO-No. 8), ch. 4.
##' Campbell and Norman (1998). Introduction to Environmental Biophysics. pg 151 'the energy content of solar radiation in the PAR waveband is 2.35 x 10^5 J/mol'
202
264
##' See also the chapter radiation basics (10)
203
265
##' Here the input is the total solar radiation so to obtain in the PAR spectrum need to multiply by 0.486
204
-
##' This last value 0.486 is based on the approximation that PAR is 0.45-0.50 of the total radiation
266
+
##' This is based on the approximation that PAR is 0.45-0.50 of the total radiation
0 commit comments