TASI is a library to provide high-performance, easy-to-use data structures and data analysis tools for Python based traffic situation analysis and interpretation applications.
TASI is backed by those wonderful libraries
Numpy
,Pandas
, andNumba
Install TASI
from the PyPi registry.
pip install tasi
Download the latest DLR-UT version for demonstration purpose.
from tasi.dlr import DLRUTDatasetManager, DLRUTVersion,
dataset = DLRUTDatasetManager(DLRUTVersion.latest)
dataset.load()
and visualize the trajectories within the dataset using matplotlib
.
from tasi.dlr import DLRTrajectoryDataset
from tasi.plotting import TrajectoryPlotter
import matplotlib.pyplot as plt
# load the first file of the dataset
ds_ut = DLRTrajectoryDataset.from_csv(dataset.trajectory()[0])
# plot the trajectories
f, ax = plt.subplots()
plotter = TrajectoryPlotter()
plotter.plot(ds_ut, ax=ax)