![]()
| ||||||
ICOADS Web information page (Wednesday, 18-May-2016 19:55:55 UTC): Software demo: {hum_calc} (DRAFT)This Fortran library, {hum_calc} reproduced in annotated form below, presently contains only two functions for the calculation of dew point temperature (DPT) from sea level pressure (SLP, if available), air temperature (AT), and wet bulb temperature. This library was named however in accordance with our future intention to add, or link to, additional standardized humidity-related calculations relevant to ICOADS. For example, the derived moisture variables included in the ICOADS monthly summaries—specific humidity (Q), relative humidity (R), and saturation specific humidity at sea surface temperature (Qs)—are calculated using the Fortran routines in PROFS_short (1981), which were selected from PROFS (1981), and called as described in Slutz et al. (1985), Supp. A, section 4.4 (see: icoads.noaa.gov/Release_1/suppA.html).
c Dew point temperature, given sea level pressure (SLP), air temperature (AT), c wet bulb temperature (WBT), and the designated missing value (FMISS) c c An integer implementation of this method has been applied during dupelim for c ICOADS processing since at least Release 2.0; original algorithm courtesy of c Dennis Joseph NCAR c c Excerpt from Release 2.0 dupelim e-docs: c "Compute a missing dew point temperature if WBT and AT are extant; if c SLP is missing 1015.0 is used as SLP. This rule is not applied if WBT c is greater than AT. Constants ACON and BCON are set for computation of c DPT relative to water: ACON=7.5 and BCON=237.3. The following Fortran c code is then used to attempt computation of DPT:" C----------------------------------------------------------------------- 4Jun14 FUNCTION DEWPT(SLP0,AT,WBT,FMISS) C dew point temperature given sea level pressure, air and web bulb temperatures PARAMETER(ACON=7.5,BCON=237.3) C DEWPT=FMISS IF(SLP0.EQ.FMISS)THEN SLP=1015. ELSE SLP=SLP0 ENDIF ESW=6.1078*10.**(WBT*ACON/(WBT+BCON)) E=ESW-(.00066*SLP)*(((.00115*WBT)+1)*(AT-WBT)) IF(E.LT.0.)RETURN CCON=ALOG10(E/6.1078) DEWPT=BCON*CCON/(ACON-CCON) END c Continuing excerpt from Release 2.0 e-docs: c "where the RETURN if vapor pressure (E) is less than zero leads to an c error diagnostic, and otherwise the resulting DPT is rounded to the c nearest 0.1°C. DPTI is left unchanged (DPTI may be missing or extant c depending on input source; DPTI information does not exist in FM 13)." c Notes: while the dew point temperature indicator (DPTI) is mentioned in those c comments, it is not part of this implementation. Also, no error diagnostic c is produced by this implementation in the event E<0, instead FMISS is returned. C----------------------------------------------------------------------- 6Jun14 function dewpoint(Tdry,Twet,Pressure) ! A Fortran implementation of: ! http://www.indigo2.de/download/dewpoint.pro ! which provides for the: ! 'calculation of dewpoint with the formulas from ! WMO-No.8, 7th edition, 2008, Part I, Annex 4.B ! "Formulae for the computation of measures of humidity"' ! This implementation has been validated successfully against the JCOMM ! testcases and benchmark DPT output values in: ! http://www.indigo2.de/download/dewpoint-idl.dat ! including when the result was -NaN. ! calculate f(p) f_p=1.0016+0.00000315*Pressure-0.074/Pressure ! calculate e'_w(t_w) e_w=6.112*exp(17.62*Twet/(243.12+Twet)) ! calculate e' e=f_p*e_w-0.000653*(1+0.000944*Twet)*Pressure*(Tdry-Twet) ! calculate dewpoint dewpoint=243.12*alog(e/(6.112*f_p))/(17.62-alog(e/(6.112*f_p))) end JCOMM TR 63 (2014) documents a set of 252 numerical testcases defined by SOT TT-IS and the JCOMM Expert Team on Marine Climatology (ETMC), plus benchmark DPT output values, which are replicated in http://www.indigo2.de/download/dewpoint-idl.dat. These involve fixing SLP at four selected values, as shown in Figs. 1-4, respectively, and then varying both AT and WBT. In some cases the calculation of DPT fails numerically (i.e. produces -NaN, "not a number" in floating point arithmetic), in which case no value is plotted.
[Documentation and Software][Links to additional]
U.S. National Oceanic and Atmospheric Administration hosts the icoads website privacy disclaimer Document maintained by icoads@noaa.gov Updated: May 18, 2016 19:55:55 UTC http://www.icoads.noaa.gov/hum_calc.html |