def getColors(event): if event in colors.keys(): return colors[event] else: print "%s DOESNT EXIST IN COLORS TABLE!" % (event) return colors["default"] colors = { "default" : ["000 000 000", "075", "255 255 255", "100", "2"], "High Wind Watch" : ["183 134 038", "075", "255 255 255", "100", "2"], "Wind Advisory" : ["210 140 140", "075", "255 255 255", "100", "2"], "Winter Weather Advisory" : ["123 104 238", "075", "255 255 255", "100", "2"], "Winter Storm Watch" : ["070 130 179", "075", "255 255 255", "100", "2"], "Freeze Warning" : ["000 254 255", "075", "255 255 255", "100", "2"], "Hard Freeze Warning" : ["000 060 246", "075", "255 255 255", "100", "2"], "Dense Fog Advisory" : ["112 128 144", "075", "255 255 255", "100", "2"], "Special Weather Statement" : ["100 100 100", "055", "255 255 255", "100", "2"], "Blizzard Warning" : ["255 069 018", "075", "255 255 255", "100", "2"], "Winter Storm Warning" : ["255 105 180", "075", "255 255 255", "100", "2"], "Red Flag Warning" : ["254 044 147", "075", "255 255 255", "100", "2"], "Freezing Rain Advisory" : ["218 112 214", "075", "255 255 255", "100", "2"], "High Surf Advisory" : ["186 085 211", "075", "255 255 255", "100", "2"], "Lake Wind Advisory" : ["210 180 140", "075", "255 255 255", "100", "2"], "Lake Effect Snow Warning" : ["000 139 139", "075", "255 255 255", "100", "2"], "Lake Effect Snow Advisory" : ["072 209 204", "075", "255 255 255", "100", "2"], "High Wind Warning" : ["218 165 048", "075", "255 255 255", "100", "2"], "Fire Weather Watch" : ["255 222 173", "075", "255 255 255", "100", "2"], "Coastal Flood Advisory" : ["124 252 000", "075", "255 255 255", "100", "2"], "Extreme Fire Danger" : ["255 000 000", "075", "255 255 255", "100", "2"], "Flash Flood Watch" : ["050 255 050", "075", "255 255 255", "100", "2"], "Frost Advisory" : ["050 210 255", "075", "255 255 255", "100", "2"], "Wind Chill Advisory" : ["200 200 200", "075", "255 255 255", "100", "2"], "Avalanche Warning" : ["030 144 255", "075", "255 255 255", "100", "2"], "Avalanche Watch" : ["244 164 096", "075", "255 255 255", "100", "2"], "Rip Current Statement" : ["064 224 208", "075", "255 255 255", "100", "2"], "Flood Warning" : ["000 255 000", "075", "255 255 255", "100", "2"], "Brisk Wind Advisory" : ["063 096 134", "075", "255 255 255", "100", "2"], "Gale Warning" : ["221 160 221", "075", "255 255 255", "100", "2"], "Hazardous Seas Watch" : ["072 061 139", "075", "255 255 255", "100", "2"], "Heavy Freezing Spray Warning" : ["000 191 255", "075", "255 255 255", "100", "2"], "Small Craft Advisory" : ["216 191 216", "075", "255 255 255", "100", "2"], "Storm Warning" : ["148 000 211", "075", "255 255 255", "100", "2"], "High Surf Warning" : ["034 139 034", "075", "255 255 255", "100", "2"], "Severe Thunderstorm Watch" : ["255 255 000", "075", "255 255 255", "100", "2"], # "Hydrologic Outlook" : ["", "075", "255 255 255", "100", "2"], }