...
- Daylight Hours
- Load CD_Daylight.csv as dictionary
Average over climate divisions
Organize by week
Code Block title Daylight hours of illinois climate divisions by week {'1': {'HRS_DYLT_DIV1': '9.228', 'HRS_DYLT_DIV2': '9.228', 'HRS_DYLT_DIV3': '9.367', 'HRS_DYLT_DIV4': '9.367', 'HRS_DYLT_DIV5': '9.350', 'HRS_DYLT_DIV6': '9.467', 'HRS_DYLT_DIV7': '9.489', 'HRS_DYLT_DIV8': '9.600', 'HRS_DYLT_DIV9': '9.600', 'WEEK': '1', 'average': 9.410666666666664}, '10': {'HRS_DYLT_DIV1': '11.400', ...
wrong to use average for daylight, use daylight for geographic region
Do these weeks match with cdc_week old or new?
Weather Data - Create weather dictionary for geographic region
load 110x
run node function for getting epi week/year from date: https://www.npmjs.com/package/epidemiological-week
convert Fahrenheit to Celsius
convert inches to cm
calculate average of temp max and min
Organize by year/month/day
Code Block title Weather Dictionary Year/Month/Day '20102016': {'1': {'1': {'cdc_week': {u'dow': 5, u'week': 52, u'year': 2015}, 'climate_div': '9', 'precip': 0.0, 'state': 'IL', 'temp_avg': -20.61111111111111077500000000000008, 'temp_max': 3.9444444444444451.2777777777777761, 'temp_min': -2.7777777777777777}, '10': {'cdc_week': {u'dow': 0, u'week': 2, u'temp_minyear': -9.1666666666666662016}, '10': { 'climate_div': '9', 'precip': 02.02098, 'state': 'IL', 'temp_avg': -130.13888888888889833333333333333, 'temp_max': -78.66666666666666788888888888889, 'temp_min': -1810.61111111111111555555555555555}, ...
30 Year Normals
same thing, not averages of climate divs, but use data for geographic region
sum both precip and temp and divide by number of rows
For each week calculate normal, not for all weeks total
Code Block Temp 30 year total: 123310.944444 Temp 30 year normal 11.2540790768 Precip 30 year total: 2821.6098 Precip 30 year normal 0.257516637766
...