Last active
February 8, 2019 06:15
-
-
Save TJC/48b533508924b1729d7b2615f17c04bd to your computer and use it in GitHub Desktop.
apparent temperature equation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// rh = relative humidity, in range from 0.0 to 1.0 | |
// t = temperature (celcius), typically in range from -10 to 50 | |
// v = wind speed (m/s) | |
def vp(rh: Double, t: Double) = rh * 6.105 * Math.exp( (17.27 * t) / (237.7 + t)) | |
def at(t: Double, rh: Double, v: Double) = t + (0.33 * vp(rh, t)) - (0.7 * v) - 4.00 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment