sort the arrival routes by the runways
This commit is contained in:
@@ -141,7 +141,7 @@ class SctEseFormat:
|
||||
for line in config['SIDSSTARS']:
|
||||
route = self.parseArrivalRoute(line, airport)
|
||||
if None != route and route.name in allowedRoutes:
|
||||
self.arrivalRoutes.setdefault(route.name, []).append(route)
|
||||
self.arrivalRoutes.setdefault(route.runway, []).append(route)
|
||||
|
||||
def __init__(self, sctFilepath : str, eseFilepath : str, airport : str, allowedRoutes : list):
|
||||
self.arrivalRoutes = {}
|
||||
@@ -149,7 +149,4 @@ class SctEseFormat:
|
||||
self.airports = {}
|
||||
|
||||
self.extractWaypoints(sctFilepath)
|
||||
print('Extracted ' + str(len(self.waypoints)) + ' waypoints')
|
||||
|
||||
self.extractArrivalRoutes(eseFilepath, airport, allowedRoutes)
|
||||
print('Extracted ' + str(len(self.arrivalRoutes)) + ' arrival routes for ' + airport)
|
||||
|
||||
Reference in New Issue
Block a user