Sportec Solutions
kloppy.sportec
Functions for loading Sportec Solutions event and tracking data.
load_event
Load Sportec Solutions event data.
| PARAMETER | DESCRIPTION |
|---|---|
event_data
|
XML feed with the raw event data of a game.
TYPE:
|
meta_data
|
XML feed containing the metadata of the game.
TYPE:
|
event_types
|
A list of event types to load.
TYPE:
|
coordinates
|
The coordinate system to use.
TYPE:
|
event_factory
|
A custom event factory.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
EventDataset
|
The parsed event data. |
Source code in kloppy/_providers/sportec.py
load_tracking
Load Sportec Solutions tracking data.
| PARAMETER | DESCRIPTION |
|---|---|
meta_data
|
A json feed containing the metadata of the game.
TYPE:
|
raw_data
|
A json 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:
|
| RETURNS | DESCRIPTION |
|---|---|
TrackingDataset
|
The parsed tracking data. |
Source code in kloppy/_providers/sportec.py
load_open_event_data
Load event data for a game from the IDSSE dataset.
The IDSSE dataset will be released with the publication of the An integrated dataset of synchronized spatiotemporal and event data in elite soccer paper [1]_ and is released under the Creative Commons Attribution 4.0 license.
| PARAMETER | DESCRIPTION |
|---|---|
match_id
|
Match-ID of one of the matches. Defaults to
TYPE:
|
event_types
|
TYPE:
|
coordinates
|
TYPE:
|
event_factory
|
TYPE:
|
Notes
The dataset contains seven full matches of raw event and position data for both teams and the ball from the German Men's Bundesliga season 2022/23 first and second division. A detailed description of the dataset as well as the collection process can be found in the accompanying paper.
The following matches are available::
matches = { 'J03WMX': 1. FC Köln vs. FC Bayern München, 'J03WN1': VfL Bochum 1848 vs. Bayer 04 Leverkusen, 'J03WPY': Fortuna Düsseldorf vs. 1. FC Nürnberg, 'J03WOH': Fortuna Düsseldorf vs. SSV Jahn Regensburg, 'J03WQQ': Fortuna Düsseldorf vs. FC St. Pauli, 'J03WOY': Fortuna Düsseldorf vs. F.C. Hansa Rostock, 'J03WR9': Fortuna Düsseldorf vs. 1. FC Kaiserslautern }
References
.. [1] Bassek, M., Rein, R., Weber, H. et al. "An integrated dataset of spatiotemporal and event data in elite soccer." Sci Data 12, 195 (2025). https://doi.org/10.1038/s41597-025-04505-y
Source code in kloppy/_providers/sportec.py
load_open_tracking_data
Load tracking data for a game from the IDSSE dataset.
The IDSSE dataset will be released with the publication of the An integrated dataset of synchronized spatiotemporal and event data in elite soccer paper [1]_ and is released under the Creative Commons Attribution 4.0 license.
| PARAMETER | DESCRIPTION |
|---|---|
match_id
|
Match-ID of one of the matches. Defaults to
TYPE:
|
sample_rate
|
TYPE:
|
limit
|
TYPE:
|
coordinates
|
TYPE:
|
only_alive
|
TYPE:
|
Notes
The dataset contains seven full matches of raw event and position data for both teams and the ball from the German Men's Bundesliga season 2022/23 first and second division. A detailed description of the dataset as well as the collection process can be found in the accompanying paper.
The following matches are available::
matches = { 'J03WMX': 1. FC Köln vs. FC Bayern München, 'J03WN1': VfL Bochum 1848 vs. Bayer 04 Leverkusen, 'J03WPY': Fortuna Düsseldorf vs. 1. FC Nürnberg, 'J03WOH': Fortuna Düsseldorf vs. SSV Jahn Regensburg, 'J03WQQ': Fortuna Düsseldorf vs. FC St. Pauli, 'J03WOY': Fortuna Düsseldorf vs. F.C. Hansa Rostock, 'J03WR9': Fortuna Düsseldorf vs. 1. FC Kaiserslautern }
References
.. [1] Bassek, M., Weber, H., Rein, R., & Memmert, D. (2024). "An integrated dataset of synchronized spatiotemporal and event data in elite soccer." In Submission.