ezeio2:scriptref:dewpoint

Helper function to calculate dewpoint from temperature and relative humidity

Description

Float:Dewpoint( Float:temp, Float:RH )

Calculates dewpoint in degrees Celsius.

This functions uses the Magnus-Tetens formula.

Parameters

temp Temperature in degrees Celsius (-45 to +60 °C)
RH Relative humidity in percent (0-100)

Return value

Dew point in degrees Celsius.

Example usage

   new Float:temperature = 18.5
   new Float:relhum = 22.9;
   new Float:dp;
 
   dp = Dewpoint( temperature, relhum );
 
   // dp is now 8.87
  • ezeio2/scriptref/dewpoint.txt
  • Last modified: 2020-08-14 20:54
  • by andreh