TRACAB
kloppy.tracab
Functions for loading Tracab tracking data.
load
Load TRACAB tracking data.
PARAMETER | DESCRIPTION |
---|---|
meta_data
|
A JSON or XML feed containing the meta data.
TYPE:
|
raw_data
|
A JSON or dat feed containing the raw tracking data.
TYPE:
|
sample_rate
|
Sample the data at a specific rate.
TYPE:
|
limit
|
Limit the number of frames to load to the first
TYPE:
|
coordinates
|
The coordinate system to use.
TYPE:
|
only_alive
|
Only include frames in which the game is not paused.
TYPE:
|
file_format
|
Deprecated. The format will be inferred based on the file extensions.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
TrackingDataset
|
The parsed tracking data. |
Notes
Tracab distributes its metadata in various formats. Kloppy tries to infer automatically which format applies. Currently, kloppy supports the following formats:
-
Flat XML structure:
13331 55 ... -
Hierarchical XML structure:
... -
JSON structure:
{ "GameID": 1, "CompetitionID": 1, "SeasonID": 2023, ... }
If parsing fails for a supported format or you encounter an unsupported structure, please create an issue on the kloppy GitHub repository with a sample of the problematic data.