Created
January 4, 2021 14:44
-
-
Save mightywombat/2f058b9784da181cef8affd1c7356542 to your computer and use it in GitHub Desktop.
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
# Month of the year -- Table 1 | |
month1 = 'January' | |
month2 = 'February' | |
month3 = 'March' | |
month4 = 'April' | |
month5 = 'May' | |
month6 = 'June' | |
month7 = 'July' | |
month8 = 'August' | |
month9 = 'September' | |
month10 = 'October' | |
month11 = 'November' | |
month12 = 'December' | |
# Determining climate types -- Table 2 | |
bro_inland = {'trop': 'c', 'subt': 'l', 'temp': 'a', 'arct': 'f'} | |
bro_coastal = {'trop': 'c', 'subt': 'k', 'temp': 'b', 'arct': 'i'} | |
clr_inland = {'trop': 'h', 'subt': 'g', 'temp': 'a', 'arct': 'i'} | |
clr_coastal = {'trop': 'h', 'subt': 'k', 'temp': 'b', 'arct': 'f'} | |
des_inland = {'trop': 'c', 'subt': 'c', 'temp': 'c', 'arct': 'c'} | |
des_coastal = {'trop': 'c', 'subt': 'c', 'temp': 'c', 'arct': 'c'} | |
for_inland = {'trop': 'h', 'subt': 'l', 'temp': 'a', 'arct': 'f'} | |
for_coastal = {'trop': 'h', 'subt': 'j', 'temp': 'b', 'arct': 'i'} | |
gra_inland = {'trop': 'h', 'subt': 'g', 'temp': 'a', 'arct': 'i'} | |
gra_coastal = {'trop': 'h', 'subt': 'k', 'temp': 'b', 'arct': 'f'} | |
hil_inland = {'trop': 'h', 'subt': 'l', 'temp': 'a', 'arct': 'f'} | |
hil_coastal = {'trop': 'h' 'subt': 'j', 'temp': 'b', 'arct': 'i'} | |
jun_inland = {'trop': 'd', 'subt': 'd', 'temp': 'd', 'arct': 'd'} | |
jun_coastal = {'trop': 'e', 'subt': 'e', 'temp': 'e', 'arct': 'e'} | |
mtn_inland = {'trop': 'k', 'subt': 'l', 'temp': 'a', 'arct': 'f'} | |
mtn_coastal = {'trop': 'k', 'subt': 'j', 'temp': 'b', 'arct': 'i'} | |
swm_inland = {'trop': 'd', 'subt': 'k', 'temp': 'a', 'arct': 'i'} | |
swm_coastal = {'trop': 'e', 'subt': 'j', 'temp': 'a', 'arct': 'i'} | |
# Temperature ranges by month -- Tables 3-14 | |
temp_A_sum = { | |
(1): 'Cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Warm, 65-70F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-75F', | |
(20): 'Very hot, 85F' | |
} | |
temp_A_sf = { | |
(1): 'Cold, 35F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'CHilly, 40-50F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cool, 50-60F', | |
(20): 'Warm, 65F' | |
} | |
temp_A_win = { | |
(1): 'Very cold, 5F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Very cold, 15-25F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Freezing, 25-32F', | |
(20): 'Chilly, 40F' | |
} | |
temp_B_sum = { | |
(1): 'Cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Warm, 65-70F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-75F', | |
(20): 'Very hot, 85F' | |
} | |
temp_B_sf = { | |
(1): 'Cold, 35F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Chilly, 40-50F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cool, 50-60F', | |
(20): 'Warm, 65F' | |
} | |
temp_B_win = { | |
(1): 'Very cold, 5F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Very cold, 15-25F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Freezing, 25-32F', | |
(20): 'Chilly, 40F' | |
} | |
temp_C_sum = { | |
(1): 'Cool, 65F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-90F', | |
(20): 'Very hot, 110F' | |
} | |
temp_C_sf = { | |
(1): 'Cool, 65F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-90F', | |
(20): 'Very hot, 110F' | |
} | |
temp_C_win = { | |
(1): 'Cold, 55F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cool, 65F', | |
(20): 'Warm, 70F' | |
} | |
temp_D_sum = { | |
(1): 'Unusually cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-85F', | |
(20): 'Very hot, 100F' | |
} | |
temp_D_sf = { | |
(1): 'Unusually cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-85F', | |
(20): 'Very hot, 100F' | |
} | |
temp_D_win = { | |
(1): 'Unusually cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-85F', | |
(20): 'Very hot, 100F' | |
} | |
temp_E_sum = { | |
(1): 'Warm, 70F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Hot, 85-100F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Very hot, 100-110F', | |
(20): 'Extremely hot, 120F' | |
} | |
temp_E_sf = { | |
(1): 'Warm, 70F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Hot, 85-100F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Very hot, 100-110F', | |
(20): 'Extremely hot, 120F' | |
} | |
temp_E_win = { | |
(1): 'Warm, 70F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Hot, 85-100F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Very hot, 100-110F', | |
(20): 'Extremely hot, 120F' | |
} | |
temp_F_sum = { | |
(1): 'Cold, 32F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Chilly, 35-40F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cool, 40-50F', | |
(20): 'Warm, 65F' | |
} | |
temp_F_sf = { | |
(1): 'Very cold, 25F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Cold, 30F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Frosty, 32F', | |
(20): 'Cool, 40F' | |
} | |
temp_F_win = { | |
(1): 'Extremely cold, -35F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Very cold, -25-0F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cold, 0-30F', | |
(20): 'Frosty, 32F' | |
} | |
temp_G_sum = { | |
(1): 'Warm, 70F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 85-95F', | |
(20): 'Very hot, 110F' | |
} | |
temp_G_sf = { | |
(1): 'Cool, 50F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Warm, 60-70F', | |
(20): 'Hot, 80F' | |
} | |
temp_G_win = { | |
(1): 'Cold, 35F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Chilly, 40-45F', | |
(20): 'Cool, 50F' | |
} | |
temp_H_sum = { | |
(1): 'Warm, 75F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 90-105F', | |
(20): 'Very hot, 115F' | |
} | |
temp_H_fs = { | |
(1): 'Warm, 75F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 90-105F', | |
(20): 'Very hot, 115F' | |
} | |
temp_H_win = { | |
(1): 'Warm, 75F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 90-105F', | |
(20): 'Very hot, 115F' | |
} | |
temp_I_sum = { | |
(1): 'Cold, 32F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Chilly, 35-40F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cool, 40-50F', | |
(20): 'Warm, 65F' | |
} | |
temp_I_sf = { | |
(1): 'Very cold, 10F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Cold, 15-20F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Freezing, 25-23F', | |
(20): 'Chilly, 35F' | |
} | |
temp_I_win = { | |
(1): 'Extremely cold, -15F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Very cold, -5-15F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Freezing, 15-32F', | |
(20): 'Cold, 35F' | |
} | |
temp_J_sum = { | |
(1): 'Cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Warm, 65-70F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-75F', | |
(20): 'Very hot, 85F' | |
} | |
temp_J_sf = { | |
(1): 'Cold, 40F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Chilly, 50F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Warm, 60F', | |
(20): 'Very warm, 65F' | |
} | |
temp_J_win = { | |
(1): 'Very cold, 10F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Freezing, 25-32F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cold, 33-45F', | |
(20): 'Cool, 50F' | |
} | |
temp_K_sum = { | |
(1): 'Cool, 60F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Warm, 65-70F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 70-85F', | |
(20): 'Very hot, 95F' | |
} | |
temp_K_sf = { | |
(1): 'Chilly, 50F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Cool, 60F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Warm, 65F', | |
(20): 'Very warm, 70F' | |
} | |
temp_K_win = { | |
(1): 'Very cold, 10F', | |
(3, 4, 5, 6, 7, 8, 9, 10): 'Freezing, 20-32F', | |
(11, 12, 13, 14, 15, 16, 17, 18, 19): 'Cold, 35-50F', | |
(20): 'Warm, 60F' | |
} | |
temp_L_sum = { | |
(1): 'Warm, 70F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Hot, 85-90F', | |
(20): 'Very hot, 110F' | |
} | |
temp_L_fs = { | |
(1): 'Cool, 50F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Warm, 60-65F', | |
(20): 'Hot, 70F' | |
} | |
temp_L_win = { | |
(1): 'Frosty, 32F', | |
(3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19): 'Chilly, 35-45F', | |
(20): 'Cool, 50F' | |
} | |
# Precipitation chance by month -- Table 15 | |
precip_A = { precip = { 1-12): 35 } } | |
precip_B = { precip = { (1-4, 11-12): 10, (5-6, 10): 20, (7-9): 35 } } | |
precip_C = { precip = { (1-12): 5 } } | |
precip_D = { precip = { (1-2): 30, (3-5): 50, (6-12): 40 } } | |
precip_E = { precip = { (1-5, 11-12): 15, (6-10): 90 } } | |
precip_F = { precip = { 1-12): 10 } } | |
precip_G = { precip = { (1-6, 10-12): 20, (7-9): 0 } } | |
precip_H = { precip = { (1-3, 11-12): 10, (4, 10): 35, (5-9): 85 } } | |
precip_I = { precip = { 1-12): 10 } } | |
precip_J = { precip = { 1-12): 40 } } | |
precip_K = { precip = { (1-5, 9-12): 30, (6-8): 10 } } | |
precip_L = { precip = { (1-6, 9-12): 15, (7-8): 45 } } | |
# Types of precipitation -- Table 16 | |
precip1 = ('Light mist / A few flakes', 'Partly cloudy', 4) | |
precip2 = ('Drizzle / A light dusting', 'Mostly cloudy', 6) | |
precip3 = ('Steafy rain / Snow flurries', 'Gray, slight overcast', 8) | |
precip4 = ('Strong rain / Moderate snow', 'Gray, highly overcast', 12) | |
precip5 = ('Pounding rain / Heavy snow', 'Dark storm clouds', 16) | |
precip6 = ('Downpour / Blizzard', 'Dark storm clouds' 20) | |
# Wind speed lists -- Table 18 | |
wind1 = ('Calm', 0-1) | |
wind2 = ('Light air', 1-3) | |
wind3 = ('Light air', 1-3) | |
wind4 = ('Light breeze', 4-7) | |
wind5 = ('Light breeze', 4-7) | |
wind6 = ('Gentle breeze', 8-12) | |
wind7 = ('Gentle breeze', 8-12) | |
wind8 = ('Moderate breeze', 13-18) | |
wind9 = ('Moderate breeze', 13-18) | |
wind10 = ('Fresh breeze', 19-24) | |
wind11 = ('Fresh breeze', 19-24) | |
wind12 = ('Strong breeze', 25-31) | |
wind13 = ('Strong breeze', 25-31) | |
wind14 = ('Moderate gale', 32-38) | |
wind15 = ('Moderate gale', 32-38) | |
wind16 = ('Fresh gale', 39-46) | |
wind17 = ('Fresh gale', 39-46) | |
wind18 = ('Strong gale', 47-54) | |
wind19 = ('Whole gale)', 55-63) | |
wind20 = ('Storm', 64-72) | |
wind21 = ('Hurricane', 73-13) | |
# Wind Direction -- Table 19 | |
windir1 = 'North' | |
windir2 = 'Northeast' | |
windir3 = 'East' | |
windir4 = 'Southeast' | |
windir5 = 'South' | |
windir6 = 'Southwest' | |
windir7 = 'West' | |
windir8 = 'Northwest' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment