Dear fellas I'm building a program to simulate flight plans, for academic purposes and, I have read a lot about flight levels and specifications but I need to be absolutely sure of what I am doing.
The reading that I have made always mentions the circular rule: Eastbound – Magnetic track 000 to 179° – odd thousands (FL 250, 270, etc.) Westbound – Magnetic track 180 to 359° – even thousands (FL 260, 280, etc.) I couldn't find any examples when flying in the opposite direction (179° to 000 ) neither any mention to flight level change when crossing from from westbound to eastbound (359° to 45) , reason for which I'm quite confused.
I got the data regarding the airports (lat, long) from https://openflights.org/data.html
They mention that for Longitude: Negative is West, positive is East, e.g. CDG (Paris) 2.549, FRA (Frankfurt) 8.570, LIS (Lisbon) -9.135
So my questions are:
1) if I am flying from LIS to FRA is it a westboung flight fom LIS until longitude 0, and then it becomes an eastbound flight from longitude 0 to FRA?
2) based on the previous question, the flight plan should consider taking off from LIS climb until to an even flight level e.g. FL380, cruise at FL380 until the aircraft reaches longitude 0 and change the cruise flight level to an odd flight level eg FL390?
I would really appreciate your help (I am not a pilot, I'm doing a PhD in Operations Research)
Francis