avwx.static.taf
TAF static values.
1"""TAF static values.""" 2 3TURBULENCE_CONDITIONS = { 4 "0": "None", 5 "1": "Light turbulence", 6 "2": "Occasional moderate turbulence in clear air", 7 "3": "Frequent moderate turbulence in clear air", 8 "4": "Occasional moderate turbulence in clouds", 9 "5": "Frequent moderate turbulence in clouds", 10 "6": "Occasional severe turbulence in clear air", 11 "7": "Frequent severe turbulence in clear air", 12 "8": "Occasional severe turbulence in clouds", 13 "9": "Frequent severe turbulence in clouds", 14 "X": "Extreme turbulence", 15} 16"""Dictionary associating turbulence report IDs with descriptions""" 17 18ICING_CONDITIONS = { 19 "0": "No icing", 20 "1": "Light icing", 21 "2": "Light icing in clouds", 22 "3": "Light icing in precipitation", 23 "4": "Moderate icing", 24 "5": "Moderate icing in clouds", 25 "6": "Moderate icing in precipitation", 26 "7": "Severe icing", 27 "8": "Severe icing in clouds", 28 "9": "Severe icing in precipitation", 29} 30"""Dictionary associating icing report IDs with descriptions""" 31 32PRESSURE_TENDENCIES = { 33 "0": "Increasing, then decreasing", 34 "1": "Increasing, then steady", 35 "2": "Increasing steadily or unsteadily", 36 "3": "Decreasing or steady, then increasing", 37 "4": "Steady", 38 "5": "Decreasing, then increasing", 39 "6": "Decreasing, then steady", 40 "7": "Decreasing steadily or unsteadily", 41 "8": "Steady or increasing, then decreasing", 42 "9": "Unknown", 43} 44"""Dictionary associating pressure change IDs with descriptions""" 45 46TAF_RMK = [ 47 "RMK ", 48 "AUTOMATED ", 49 "COR ", 50 "AMD ", 51 "LAST ", 52 "FCST ", 53 "CANCEL ", 54 "CHECK ", 55 "WND ", 56 "MOD ", 57 " BY", 58 " QFE", 59 " QFF", 60] 61"""Strings signifying the start of the remarks section of a TAF""" 62 63TAF_NEWLINE = ["INTER", "BECMG", "TEMPO"] 64"""Strings signifying the start of a new TAF time period""" 65 66TAF_NEWLINE_STARTSWITH = ["FM", "PROB"] 67"""Addendum to TAF_NEWLINE but string startswith and the rest are only digits"""
TURBULENCE_CONDITIONS =
{'0': 'None', '1': 'Light turbulence', '2': 'Occasional moderate turbulence in clear air', '3': 'Frequent moderate turbulence in clear air', '4': 'Occasional moderate turbulence in clouds', '5': 'Frequent moderate turbulence in clouds', '6': 'Occasional severe turbulence in clear air', '7': 'Frequent severe turbulence in clear air', '8': 'Occasional severe turbulence in clouds', '9': 'Frequent severe turbulence in clouds', 'X': 'Extreme turbulence'}
Dictionary associating turbulence report IDs with descriptions
ICING_CONDITIONS =
{'0': 'No icing', '1': 'Light icing', '2': 'Light icing in clouds', '3': 'Light icing in precipitation', '4': 'Moderate icing', '5': 'Moderate icing in clouds', '6': 'Moderate icing in precipitation', '7': 'Severe icing', '8': 'Severe icing in clouds', '9': 'Severe icing in precipitation'}
Dictionary associating icing report IDs with descriptions
PRESSURE_TENDENCIES =
{'0': 'Increasing, then decreasing', '1': 'Increasing, then steady', '2': 'Increasing steadily or unsteadily', '3': 'Decreasing or steady, then increasing', '4': 'Steady', '5': 'Decreasing, then increasing', '6': 'Decreasing, then steady', '7': 'Decreasing steadily or unsteadily', '8': 'Steady or increasing, then decreasing', '9': 'Unknown'}
Dictionary associating pressure change IDs with descriptions
TAF_RMK =
['RMK ', 'AUTOMATED ', 'COR ', 'AMD ', 'LAST ', 'FCST ', 'CANCEL ', 'CHECK ', 'WND ', 'MOD ', ' BY', ' QFE', ' QFF']
Strings signifying the start of the remarks section of a TAF
TAF_NEWLINE =
['INTER', 'BECMG', 'TEMPO']
Strings signifying the start of a new TAF time period
TAF_NEWLINE_STARTSWITH =
['FM', 'PROB']
Addendum to TAF_NEWLINE but string startswith and the rest are only digits