An open API service indexing awesome lists of open source software.

https://github.com/mguida22/flights

Visualizations of U.S. flight data
https://github.com/mguida22/flights

Last synced: about 2 months ago
JSON representation

Visualizations of U.S. flight data

Awesome Lists containing this project

README

        

# Flights

A visual representation of U.S. domestic flight delays across the year 2008. The scripts should allow you to easily swap out the data for a different year.

![screenshot of delays](https://cloud.githubusercontent.com/assets/9451227/11758676/59f040fe-a02b-11e5-976c-8eb4f355bc23.png)

[Live Demo.](http://mguida22.github.io/flights/)

## Setup

### Automatic

Use the fancy setup script!

```
$ cd data/
$ ./setup.sh
```

### Manual

Grab the data from [stat-computing.org](http://stat-computing.org/dataexpo/2009/the-data.html). Once you have the data run `delays.py` to calculate and condense the data. You will need a file server running to see the site. An example may look like this.

```
# Data saved to data/2008.csv
$ cd data/
$ python3 delays.py
$ cd ..
$ python3 -m http.server
```

You will also need to grab the [airport-codes.csv](https://github.com/mguida22/flights/blob/gh-pages/data/airport-codes.csv) and [us.json](https://github.com/mguida22/flights/blob/gh-pages/data/us.json) and place them in the `data/` directory. Once your data is processed, you will only need a simple file server for future uses.

### License
MIT

Flight data originally from U.S. Department of Transportation and retrieved from [stat-computing.org](http://stat-computing.org/dataexpo/2009/the-data.html).

Airport location data from [openflights.org](http://openflights.org/).

US map data from [mbostock](http://bl.ocks.org/mbostock/raw/4090846/us.json).