Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Daylight Hours
    • Load CD_Daylight.csv as dictionary
    • Average over climate divisions

    • Organize by week

      Code Block
      titleDaylight 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 - structured calendar year/month/day

    • 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
      titleWeather Dictionary Year/Month/Day
       '2016': {'1': {'1': {'cdc_week': {u'dow': 5, u'week': 52, u'year': 2015},
                            'climate_div': '9',
                            'precip': 0.0,
                            'state': 'IL',
                            'temp_avg': -0.7500000000000008,
                            'temp_max': 1.2777777777777761,
                            'temp_min': -2.7777777777777777},
                      '10': {'cdc_week': {u'dow': 0, u'week': 2, u'year': 2016},
                             'climate_div': '9',
                             'precip': 2.2098,
                             'state': 'IL',
                             'temp_avg': -0.833333333333333,
                             'temp_max': 8.88888888888889,
                             'temp_min': -10.555555555555555},
      ...


  • Weather Data - Create weather dictionary for geographic region - structured EPI year/week


  • 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



...