SportVU movement tracking data.
Ever since the nba stopped public access of their movement data, I though it would be good to have a copy of @neilmj data repo incase he deletes his data repo.
Credit: @neilmj
1.To unzip the 7z file run this command
cd data
sudo ./setup.sh
import os
# change this data_dir for personal path
if os.environ['HOME'] == '/home/neil':
data_dir = '/home/neil/projects/nba-movement-data'
else:
raise Exception("Unspecified data_dir, unknown environment")
python setup.py build
python setup.py install
python movement/json_to_csv.py
python movement/convert_movement.py
data/shots/fixed_shots.csv
. They are formed from executing the script.python fix_shot_times.py
In the fixing logic, the shot time is defined as the highest acceleration point before the ball reaches it's peak, within a defined window. The logic can be seen below.