Closed janzahradka closed 1 month ago
You are using the OpenAir Extended File format. Currently aerofiles is unable to handle this. However, I am willing to extend it so that it can deal with it. Will need probably 1-2 weeks.
There is now a first implementation ready for test. Could you please try?
Thank you for such a quick response. I tested it, it can handle AF record now but it raises another error:
ValueError: could not convert string to float: '2 *NM'
in handle_DC_record(self, value)
. Perhaps it doesn't ignore the '*NM' comment (I use it each time in DC parameter for preventing units mismatch)
Yes, I will take care. However, early on monday
CZ_all_24-08-07.txt I can provide my file which i am trying to validate. It's quite complex one.
Parser improved for "*" inside lines, openair/reader can now validate files given on command line. Above example sucessfully validated.
small problem still.
Error in file /home/bubeck/Downloads/CZ_all_24-08-07.txt invalid coordinate form at: 50:16:40 N 013:14:06 E
wait
Should be OK now to parse your example file. Please let me know. Looks good, see attached screenshot.
Hint: I think, you should include "FT" into your heights...
Thank you very much, I was on holiday so I got back to it right now. It works! Also thanks for the hint.
I tried to validaty my airspace file by OpenairReader
I got ValueError: unknown record type AF. This tag is used for storing frequencies of the airspace and it's an addition to the original, as written in http://www.winpilot.com/UsersGuide/UserAirspace.asp
validated airspace definition:
is anyone able to extend the reader with these additional tags?