wetbulb

Calculates the wetbulb temperature given pressure, dewpoint, and temperature

You are now following this Submission

wetbulb calculates the wetbulb temperature given pressure in hPa, dewpoint in degrees C, and temperature in degrees C.
Uses the psychrometric formula from the American Meteorological Society glossary. Vapor pressure calculations use the improved August-Roche-Magnus approximation, that is, equation 21 from:
Alduchov, O.A. and R.E. Eskridge, 1996: Improved Magnus Form Approximation of Saturation Vapor Pressure. J. Appl. Meteor., 35, 601-609, https://doi.org/10.1175/1520-0450(1996)035<0601:IMFAOS>2.0.CO;2
If you give this function dewpoint values greater than the dry bulb you'll get a warning and the theoretical result for this likely unrealistic scenario. I'm not sure you can make a wetbulb measurement in a supersaturated scenario, but the equations allow for it.
This function was derived by code originally written by Daniel Hueholt.

Cite As

millercommamatt (2026). wetbulb (https://au.mathworks.com/matlabcentral/fileexchange/94740-wetbulb), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.1

Now handles non-finite inputs and returns NaN.

1.1.0

Fixed spelling in documentation and changed formulation to improved August-Roche-Magnus

1.0.0