avwx.static.gfs
GFX service static values.
1"""GFX service static values.""" 2 3#: 4UNITS = { 5 "accumulation": "in", 6 "altimeter": "inHg", 7 "altitude": "ft", 8 "temperature": "F", 9 "visibility": "sm", 10 "wind_speed": "kt", 11} 12 13#: GFS coded ceiling values 14CEILING_HEIGHT = { 15 "1": "< 200 feet", 16 "2": "200 - 400 feet", 17 "3": "500 - 900 feet", 18 "4": "1000 - 1900 feet", 19 "5": "2000 - 3000 feet", 20 "6": "3100 - 6500 feet", 21 "7": "6600 - 12,000 feet", 22 "8": "> 12,000 feet or unlimited ceiling", 23} 24 25#: GFS coded visibility values 26VISIBILITY = { 27 "1": "< 1/2 miles", 28 "2": "1/2 - < 1 miles", 29 "3": "1 - < 2 miles", 30 "4": "2 - < 3 miles", 31 "5": "3 - 5 miles", 32 "6": "6 miles", 33 "7": "> 6 miles", 34} 35 36#: 37VISIBILITY_OBSTRUCTION = { 38 "N": "none", 39 "HZ": "haze, smoke, dust", 40 "BR": "mist (fog with visibility >= 5/8 mile)", 41 "FG": "fog or ground fog (visibility < 5/8 mile)", 42 "BL": "blowing dust, sand, snow", 43} 44 45#: 46CLOUD = { 47 "CL": "clear", 48 "FW": "few", 49 "SC": "scattered", 50 "PC": "partly cloudy", 51 "BK": "broken", 52 "OV": "overcast", 53} 54 55#: 56PRECIPITATION_AMOUNT = { 57 "0": "no precipitation", 58 "1": "0.01 to 0.09 inches", 59 "2": "0.10 to 0.24 inches", 60 "3": "0.25 to 0.49 inches", 61 "4": "0.50 to 0.99 inches", 62 "5": "1.00 to 1.99 inches", 63 "6": "2.00 inches or greater", 64} 65 66#: 67PRECIPITATION_TYPE = { 68 "S": "pure snow or snow grains", 69 "Z": "freezing rain/drizzle, ice pellets, or anything mixed with freezing precipitation", 70 "RS": "rain/drizzle and snow mixed", 71 "R": "pure rain/drizzle", 72} 73 74#: 75SNOWFALL_AMOUNT = { 76 "0": "no snow or a trace expected", 77 "1": "> a trace to < 2 inches", 78 "2": "2 to < 4 inches", 79 "4": "4 to < 6 inches", 80 "6": "6 to < 8 inches", 81 "8": ">= 8 inches", 82}
UNITS =
{'accumulation': 'in', 'altimeter': 'inHg', 'altitude': 'ft', 'temperature': 'F', 'visibility': 'sm', 'wind_speed': 'kt'}
CEILING_HEIGHT =
{'1': '< 200 feet', '2': '200 - 400 feet', '3': '500 - 900 feet', '4': '1000 - 1900 feet', '5': '2000 - 3000 feet', '6': '3100 - 6500 feet', '7': '6600 - 12,000 feet', '8': '> 12,000 feet or unlimited ceiling'}
VISIBILITY =
{'1': '< 1/2 miles', '2': '1/2 - < 1 miles', '3': '1 - < 2 miles', '4': '2 - < 3 miles', '5': '3 - 5 miles', '6': '6 miles', '7': '> 6 miles'}
VISIBILITY_OBSTRUCTION =
{'N': 'none', 'HZ': 'haze, smoke, dust', 'BR': 'mist (fog with visibility >= 5/8 mile)', 'FG': 'fog or ground fog (visibility < 5/8 mile)', 'BL': 'blowing dust, sand, snow'}
CLOUD =
{'CL': 'clear', 'FW': 'few', 'SC': 'scattered', 'PC': 'partly cloudy', 'BK': 'broken', 'OV': 'overcast'}
PRECIPITATION_AMOUNT =
{'0': 'no precipitation', '1': '0.01 to 0.09 inches', '2': '0.10 to 0.24 inches', '3': '0.25 to 0.49 inches', '4': '0.50 to 0.99 inches', '5': '1.00 to 1.99 inches', '6': '2.00 inches or greater'}
PRECIPITATION_TYPE =
{'S': 'pure snow or snow grains', 'Z': 'freezing rain/drizzle, ice pellets, or anything mixed with freezing precipitation', 'RS': 'rain/drizzle and snow mixed', 'R': 'pure rain/drizzle'}
SNOWFALL_AMOUNT =
{'0': 'no snow or a trace expected', '1': '> a trace to < 2 inches', '2': '2 to < 4 inches', '4': '4 to < 6 inches', '6': '6 to < 8 inches', '8': '>= 8 inches'}