Created
March 11, 2015 13:22
-
-
Save jordanwesthoff/cba27e2e62ca976169f4 to your computer and use it in GitHub Desktop.
NOAA RealFeel Temperature Python Script
This file contains 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
``` | |
Basic script to parse the current time and then use the official NOAA algorithm to return the current RealFeel temperature. | |
Jordan Westhoff, RIT 2015 | |
``` | |
import os | |
import sys | |
import time | |
T = input('Enter the current temperature (F): ') | |
V = input('Enter the current wind velocity (MpH): ') | |
date_time = (time.strftime("%H:%M:%S")) | |
wind_chill = 35.74 + (0.621 * T) - (35.75 * (V**(0.16))) + (.4275 * T * ( V**(0.16))) | |
print "The current time is: %s." % date_time | |
print "The current NOAA RealFeel Temperature is %s degrees fahrenheit." % wind_chill |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment