wetbulb

Calculates the wetbulb temperature given pressure, dewpoint, and temperature
39 Downloads
Updated 25 Jun 2021

View License

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 (2024). wetbulb (https://www.mathworks.com/matlabcentral/fileexchange/94740-wetbulb), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
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