Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
/ ust-air-traffic Public archive

Analysis of flight trajectory data at the Hong Kong International Airport

License

Notifications You must be signed in to change notification settings

kcwongaz/ust-air-traffic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This Project

Using historical flight trajectory data, can you come up with a quantitative strategy for mitigating flight delay?


This is a project I worked on with Prof. Michael K. Y. Wong and Prof. Rhea Liem during my MPhil at HKUST. A detailed description of this project can be found in Chapter 4 of my MPhil thesis.

This repo contains the code I developed for analyzing historical flight trajectories around the Hong Kong International Airport (HKIA). The flight data used was originally obtained by Prof. Lishuai Li from the City University of Hong Kong and shared with us. Special thanks to Prof. Li for allowing me to release part of the flight data in this repo.

Some example analyses can be found in the notebooks.


Getting Started

1 - Setting up

I suggest installing the code locally, e.g.

git clone https://github.com/kcwongaz/ust-air-traffic
cd ust-air-traffic
pip -e install .  # -e flag for editable mode

This project requires the standard scientific packages, numpy, scipy, matplotlib and pandas. In addition, Cartopy is needed for drawing maps, and geopy is used to compute geodesic distances.


2 - Data

An example dataset can be downloaded here.

The example dataset contains the flight data in Jan 2017. Decompressing the data to data/ at the project root should get the jupyter notebooks running.

If you are interested to see the raw data, here is an example dataset. The raw data is quite large in file size, so I can only provide 3 days of data. To process the raw data, decompress the raw data to raw/ at the project root, then run

. ./pipeline/start.sh 

The scripts in pipeline/ perform successive processing to prepare the data, e.g. by computing various useful statistics, for further analysis.


3 - The package

Inside air_traffic/:

  • FR24Writer.py, filters.py: for processing raw data
  • io.py: I/O handlers
  • loop.py: module for analyzing holding patterns and rescheduling
  • temporal.py: module for analyzing from a time-series perspective
  • trajectory.py: utility functions for working with flight trajectories
  • visual.py: utility functions for drawing

About

Analysis of flight trajectory data at the Hong Kong International Airport

Topics

Resources

License

Stars

Watchers

Forks

Languages