Skip to content

Instantly share code, notes, and snippets.

@auselen
Created March 24, 2017 15:20
Show Gist options
  • Save auselen/cc1324f490e1d81e63a063b57bf274be to your computer and use it in GitHub Desktop.
Save auselen/cc1324f490e1d81e63a063b57bf274be to your computer and use it in GitHub Desktop.

TR Map

Map

Code

curl -s http://download.maxmind.com/download/worldcities/worldcitiespop.txt.gz \
| zcat \
| awk -F$',' '{if ($1 == "tr") print $6, $7}' \
| gnuplot -p -e \
"set terminal pngcairo size 1280, 720 background rgb 'black';"\
"set size ratio -1; unset key; unset tics; unset border;"\
"plot '<cat' using (sin(pi/180*(\$2-35))*cos(pi/180*\$1)):(sin(pi/180*(\$1-39))) with points ls 11"\
> tr.png```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment