stilt.observations.check_track#
- stilt.observations.check_track(track)[source]#
Raise unless a track has the columns in
TRACK_SCHEMA.- Parameters:
track (
DataFrame) – One row per measurement.- Raises:
ValueError – Naming the missing columns.
- Return type:
Examples
>>> check_track(pd.DataFrame(columns=["time", "longitude", "latitude"])) Traceback (most recent call last): ... ValueError: The track lacks the columns ['altitude'] (see TRACK_SCHEMA).