Skip to content

Instantly share code, notes, and snippets.

@jordanwesthoff
Created March 11, 2015 13:22
Show Gist options
  • Save jordanwesthoff/cba27e2e62ca976169f4 to your computer and use it in GitHub Desktop.
Save jordanwesthoff/cba27e2e62ca976169f4 to your computer and use it in GitHub Desktop.
NOAA RealFeel Temperature Python Script
```
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