Giter VIP home page Giter VIP logo

ust-air-traffic's Introduction

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

ust-air-traffic's People

Contributors

kcwongaz avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.