PFF
kloppy.pff
Functions for loading PFF FC data.
load_tracking
Load and deserialize tracking data from the provided metadata, roster metadata, and raw data files.
PARAMETER | DESCRIPTION |
---|---|
meta_data
|
A file-like object containing metadata about the tracking data.
TYPE:
|
roster_meta_data
|
A file-like object containing roster metadata, such as player details.
TYPE:
|
raw_data
|
A file-like object containing the raw tracking data.
TYPE:
|
sample_rate
|
The sampling rate to downsample the data. If None, no downsampling is applied. Defaults to None.
TYPE:
|
limit
|
The maximum number of records to process. If None, all records are processed. Defaults to None.
TYPE:
|
coordinates
|
The coordinate system to use for the tracking data (e.g., "pff"). Defaults to None.
TYPE:
|
only_alive
|
Whether to include only sequences when the ball is in play. Defaults to True.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
TrackingDataset
|
A deserialized TrackingDataset object containing the processed tracking data.
TYPE:
|