Method: WeatherData::Weather#vapour_pressure
- Defined in:
- lib/weather_data/weather.rb
#vapour_pressure ⇒ Object
52 53 54 55 56 57 |
# File 'lib/weather_data/weather.rb', line 52 def vapour_pressure if humidity t = temperature.to_celsius.degrees (humidity / 100.0) * 6.105 * Math.exp(17.27 * t / (237.7 + t)) end end |