runtraj.trajectories.check_trajectories#

runtraj.trajectories.check_trajectories(result)[source]#

Raise unless result is a trajectory table: a DataFrame with the columns of TRAJECTORY_SCHEMA and at least one row.

Raises:

ValueError – Saying what is wrong.

Return type:

None

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'].