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

    • load 110x

    • 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
      '2010': {'1': {'1': {'climate_div': '9',
                            'precip': 0.0,
                            'state': 'IL',
                            'temp_avg': -2.6111111111111107,
                            'temp_max': 3.944444444444445,
                            'temp_min': -9.166666666666666},
                      '10': {'climate_div': '9',
                             'precip': 0.0,
                             'state': 'IL',
                             'temp_avg': -13.13888888888889,
                             'temp_max': -7.666666666666667,
                             'temp_min': -18.61111111111111},
      ...



  • 30 Year Normals

    • same thing, not averages of climate divs, but use data for geographic region

    • load 110xn

      convert temp to celsius

      • average daily temps: if > 22.0 subtract 22, if =< 22.0 set to 0 
    • convert precip to cm

    • 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



...