Hello,
I need your help please, i am looking for a vba code to parse following aviation weather message and compare some contents instead of doing it manually:
weather criteria
251544Z 2518/2624 23015KT 9999 SCT020 TN18/2608Z TX26/2617Z BECMG 2522/2524 29007KT BECMG 2606/2608 35005KT 7000 BKN020 PROB30 TEMPO 2612/2614 19010KT 9999 OVC010 BECMG 2622/2624 12005KT =
251544Z = it means the date and time that the message is issued (25MAY and 1544Z time issued)
2522/2524 (whenever it is 4 numbers + slash (/) + 4 numbers, the first two numbers before the slash (/) mean the day and the two numbers after the slash(/) the time (example: from the 25 of May 22H00 untill the 25 of May 24h00)
2518/2624 (another example: it means from 25 of May at 18H00 untill 26 of May at 24H00)
23015KT(whenever it is 5 numbers + KT, the 3 first numbers mean wind direction (230°) and the 2 last numbers mean (wind force) 15KT
9999 (whenever it is 4 numbers it means the horizontal visibility in meters 9999 means 9999 meter (10KM), example 7000 means 7000 meter (7km).
SCT020 (always disregard this, not important)
TN18/2608Z TX26/2617Z (always disregard this, not important)
PROB30 TEMPO: (always disregard this and all the message coming after)
Example:
PROB30 TEMPO 2612/2614 19010KT 9999 OVC010 BECMG 2622/2624 12005KT (i have to disregard all the message after PROB30 TEMPO but i should always consider all the message after BECMG)
BECMG (means a weather change announcement, it is important and i have always to take into account all the message after BECMG)
BKN020 or OVC010 (Whenever it is BKN or OVC, the 3 numbers after BKN (020) or OVC (010) mean a vertical visibility and to convert it into feet, we have to multiply these 3 numbers with 100 (example: BKN020 = 20 X 100 = 2000feet, another example BKN002 = 2 X 100 =200feet, another example OVC010 = 10 X 100 = 1000feet, OVC100 = 100 X100 = 10000feet
Now i need to compare all above creteria with following to see if the estimated arrival time of the airplane if the weather will be good and if the airplane can land safely.
Example:
Arrival criteria:
arrival date: 25 May
time windows: 17h00 - 19h00
Minimum horizontal visibility that the airplane needs to land safely = 550M
Minimum vertical visibility that the airplane needs to land safely= 200 feet
i need to compare all the weather criteria with the arrival criteria in order to know if between time windows (17H00-19h00) taking into account the minimum horizontal and vertical visibility if the aircraft will land safely.
If all the creteria is met (a text box "OK TO LAND") if not (a text box "LANDING NOT AUTHORIZED)
Hope this can help you understand my needs.
Thanks in advance for your feedback.
Kind regards
MU
I need your help please, i am looking for a vba code to parse following aviation weather message and compare some contents instead of doing it manually:
weather criteria
251544Z 2518/2624 23015KT 9999 SCT020 TN18/2608Z TX26/2617Z BECMG 2522/2524 29007KT BECMG 2606/2608 35005KT 7000 BKN020 PROB30 TEMPO 2612/2614 19010KT 9999 OVC010 BECMG 2622/2624 12005KT =
251544Z = it means the date and time that the message is issued (25MAY and 1544Z time issued)
2522/2524 (whenever it is 4 numbers + slash (/) + 4 numbers, the first two numbers before the slash (/) mean the day and the two numbers after the slash(/) the time (example: from the 25 of May 22H00 untill the 25 of May 24h00)
2518/2624 (another example: it means from 25 of May at 18H00 untill 26 of May at 24H00)
23015KT(whenever it is 5 numbers + KT, the 3 first numbers mean wind direction (230°) and the 2 last numbers mean (wind force) 15KT
9999 (whenever it is 4 numbers it means the horizontal visibility in meters 9999 means 9999 meter (10KM), example 7000 means 7000 meter (7km).
SCT020 (always disregard this, not important)
TN18/2608Z TX26/2617Z (always disregard this, not important)
PROB30 TEMPO: (always disregard this and all the message coming after)
Example:
PROB30 TEMPO 2612/2614 19010KT 9999 OVC010 BECMG 2622/2624 12005KT (i have to disregard all the message after PROB30 TEMPO but i should always consider all the message after BECMG)
BECMG (means a weather change announcement, it is important and i have always to take into account all the message after BECMG)
BKN020 or OVC010 (Whenever it is BKN or OVC, the 3 numbers after BKN (020) or OVC (010) mean a vertical visibility and to convert it into feet, we have to multiply these 3 numbers with 100 (example: BKN020 = 20 X 100 = 2000feet, another example BKN002 = 2 X 100 =200feet, another example OVC010 = 10 X 100 = 1000feet, OVC100 = 100 X100 = 10000feet
Now i need to compare all above creteria with following to see if the estimated arrival time of the airplane if the weather will be good and if the airplane can land safely.
Example:
Arrival criteria:
arrival date: 25 May
time windows: 17h00 - 19h00
Minimum horizontal visibility that the airplane needs to land safely = 550M
Minimum vertical visibility that the airplane needs to land safely= 200 feet
i need to compare all the weather criteria with the arrival criteria in order to know if between time windows (17H00-19h00) taking into account the minimum horizontal and vertical visibility if the aircraft will land safely.
If all the creteria is met (a text box "OK TO LAND") if not (a text box "LANDING NOT AUTHORIZED)
Hope this can help you understand my needs.
Thanks in advance for your feedback.
Kind regards
MU