summaryrefslogtreecommitdiff
path: root/charts.sh
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2015-04-20 15:50:28 +0200
committeremkael <emkael@tlen.pl>2015-04-20 15:50:28 +0200
commitb1dd61c960f02f1b42b36fb964053d7d91a0b74d (patch)
treef0269c4423d4195eeee6328423f1cd39c2032829 /charts.sh
parent6017113e338191b475cd5caecaa668f9d0930672 (diff)
* generating data for charts
Diffstat (limited to 'charts.sh')
-rwxr-xr-xcharts.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/charts.sh b/charts.sh
new file mode 100755
index 0000000..12cc29d
--- /dev/null
+++ b/charts.sh
@@ -0,0 +1,10 @@
+python charts.py
+grep -v '^#' rate.log | grep -v '^$' | paste -s -d ',,,\n' | grep -f charts/championship-races.csv | sed 's/\(Average\|Podium\) rating\( change\)\?: *//g' | sed 's/\([0-9]\) \([0-9]\)/\1,\2/g' > charts/rate.csv
+python podiums.py
+rm charts/rate.csv
+cat charts/podium-averages.csv | sort --field-separator=',' --key=7 -r | head -n 21 > charts/strongest_podiums.csv
+cat charts/podium-averages.csv | head -n 1 > charts/weakest_podiums.csv
+cat charts/podium-averages.csv | sort --field-separator=',' --key=7 | tail -n+2 | head -n 20 >> charts/weakest_podiums.csv
+cat charts/podium-averages.csv | sort --field-separator=',' --key=8 -r | head -n 21 > charts/biggest_shuffles.csv
+cat charts/podium-averages.csv | head -n 1 > charts/smallest_shuffles.csv
+cat charts/podium-averages.csv | sort --field-separator=',' --key=8 | head -n 20 >> charts/smallest_shuffles.csv