-
-
Save umaar/b780b9cc2e81e07df876c2b1e0d8dec1 to your computer and use it in GitHub Desktop.
NYC taxi with datamaps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in trip_data_*.csv.zip | |
do | |
unzip -c $i | |
done | | |
tr -d '\015' | | |
awk -F, '{print $12 "," $11 " 1:0"; print $14 "," $13 " 1:1"}' | | |
/data2/data/github/datamaps/encode -z19 -m1 -o nyc-taxi-all | |
/data2/data/github/datamaps/enumerate -b40.458,-74.590,41.131,-73.494 -z16 nyc-taxi-all/ | | |
xargs -L1 -P8 sh -c '/data2/data/github/datamaps/render -xs1 -C0:240:1:30 -p2 -B 18:.004378:1.23 -G 0.3 $1 $2 $3 $4 | /data2/data/github/pngquant/pngquant 64 > nyc-taxi.tiles/$2/$3/$4.png' blah | |
/data2/data/github/mbutil/mb-util nyc-taxi.tiles nyc-taxi.mbtiles |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment