A Python script to extract and parse meteorological forecast data from TAF (Terminal Aerodrome Forecast) messages. The script processes key weather elements such as written timestamp, wind conditions, and forecast duration, providing structured data useful for pilots and aviation professionals.
- Extracts written timestamp of the TAF message
- Extracts wind information (direction and power)
- Extracts forecast start and end dates
- Converts extracted date/time information into Unix timestamps
- Stores the parsed data in a structured dictionary format
- Python 3.x+
- Clone this repository or download the project files.
- Install required Python packages using:
pip install -r requirements.txtOr manually install:
pip install datetimepython qualiflight.pyIt will:
Parse the provided TAF message
Extract weather data (written timestamp, wind info, forecast dates)
Print the structured data as a dictionary
1.The script assumes that the TAF message follows the standard format. Errors may occur if the format is different.
2.The extracted timestamps are based on the current year and month.
נ
qualiflight/
├── qualiflight.py # Main script for extracting TAF data
├── consts.py # Constants used for parsing the TAF message
├── requirements.txt # Python dependencies
└── README.md # Project documentationAlthough this project doesn't include testing, here are ideas for expanding it:
-
Verify if the extracted timestamps are correct based on the input TAF string
-
Ensure wind data (direction and power) is parsed correctly
-
Use pytest to test each parsing function with different TAF message inputs.
Developed with ❤️ for fun, learning, and aviation data parsing.
#python #taf #weatherparser #aviation #automation #data