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
- Host: GitHub
- URL: https://github.com/mguida22/flights
- Owner: mguida22
- License: mit
- Created: 2015-12-03T16:39:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-27T01:56:53.000Z (over 9 years ago)
- Last Synced: 2025-04-04T15:05:08.601Z (3 months ago)
- Language: JavaScript
- Homepage: http://mguida22.github.io/flights/
- Size: 781 KB
- Stars: 12
- Watchers: 38
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.

[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
MITFlight 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).