# Tutorial Q-30: Track a ball and fit its path

Detect a tossed tennis ball in every frame, fit a line to its horizontal path and a parabola to its height, and use gravity to check the clip's clock.

Address: https://apopt.com/data/tutorials/q30-ball-path/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Track a ball and fit its path* (https://apopt.com/course/tutorials/q30-ball-path/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [clean/tennis1_ball.csv](https://apopt.com/data/tutorials/q30-ball-path/clean/tennis1_ball.csv) | 1.7 KB | 50 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q30-ball-path/expected/printed-output.txt) | 412 B |  | Everything the tutorial prints, cell by cell |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 10: Power, Skill and Precision](https://apopt.com/book/ch10-skill/)
- Course: [Week 10 lesson](https://apopt.com/course/week/10/)
- Homework P20: [https://apopt.com/course/assess/p20/](https://apopt.com/course/assess/p20/)
- Homework P21: [https://apopt.com/course/assess/p21/](https://apopt.com/course/assess/p21/)

## How to cite

Tutorial Q-30: Track a ball and fit its path. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q30-ball-path/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q30-ball-path/clean/tennis1_ball.csv")
```
