runtraj.trajectories.check_trajectories#
- runtraj.trajectories.check_trajectories(result)[source]#
Raise unless result is a trajectory table: a DataFrame with the columns of
TRAJECTORY_SCHEMAand at least one row.- Raises:
ValueError – Saying what is wrong.
- Return type:
- Parameters:
result (Any)
Examples
>>> check_trajectories(pd.DataFrame({"trajectory": [1]})) Traceback (most recent call last): ... ValueError: A trajectory table needs the columns ['time', 'age', 'lon', 'lat', 'zagl'].