This repository has been archived by the owner on Oct 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Mike Fabrikant edited this page Oct 25, 2017
·
66 revisions
Magic Box serves various kinds of data aggregated by administrative boundaries. Currently available:
- Population
- Mosquito prevalence (aegypti and albopictus)
- Zika case data (weekly) for the Americas from Paho
Begin here by installing the API. It comes with test data, but you can continue with the instructions below to get most of the same data we use.
Download shapefiles from gadm.org
sudo apt-get update
ssh-keygen -t rsa
sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
sudo apt-get install gdal-bin
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
nvm install 6
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get -y install oracle-java8-installer
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib
sudo apt-get install postgis*
sudo -i -u postgres
CREATE USER user_name SUPERUSER;
Download shapefiles from gadm.org and import to postgres.
Downloads, imports, and aggregates country specific population rasters from worldpop.
- Assigns admin regions to airports
- by querying an api that takes lat/lon and returns an admin.
- Airport is then indexed by elasticsearch