CASES GPS data analysis code