UtilitiesDewPoint2Humidity Method

Calculate the relative humidity (%) given the ambient temperature (°Celsius) and dew point (°Celsius)

Definition

Namespace: ASCOM.Tools
Assembly: ASCOM.Tools (in ASCOM.Tools.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static double DewPoint2Humidity(
	double DewPoint,
	double AmbientTemperature
)

Parameters

DewPoint  Double
Dewpoint in (°Celsius)
AmbientTemperature  Double
Ambient temperature (°Celsius)

Return Value

Double
Humidity expressed in percent (0.0 .. 100.0)

Remarks

'Calculation uses the Vaisala formula for water vapour saturation pressure and is accurate to 0.083% over -20C - +50°C

http://www.vaisala.com/Vaisala%20Documents/Application%20notes/Humidity_Conversion_Formulas_B210973EN-F.pdf

Exceptions

InvalidOperationExceptionWhen dew point < absolute zero or > 100.0C>
InvalidOperationExceptionWhen ambient temperature < absolute zero or > 100.0C>

Version Information

.NET Standard

Supported in: 2.0

See Also