Examples
To help you get started using Tracktable we have included demonstrations of
its various capabilities, Python and C++ alike, and sample data to experiment with.
C++ examples are in the source code distribution in the directory
tracktable/Examples. Python examples, tutorials and demos are available,
from the Pip package, Anaconda package and source code distribution in the
directory src/Python/tracktable/examples, as standalone Python scripts
and Jupyter notebooks.
C++ Examples
Python Examples
Jupyter Notebook Examples
Note
We include several Jupyter notebooks that demonstrate and illustrate Tracktable’s capabilities. Each Jupyter notebook page listed below is an actual Jupyter notebook, including output, embedded directly in the documention.
Tutorials
![digraph tut_flow {
tut1 [label="Tutorial 1: How to read in points from csv/tsv"];
tut2 [label="Tutorial 2: How to read in trajectories from csv/tsv"];
tut3 [label="Tutorial 3: Writing Traj Files"];
tut4 [label="Tutorial 4: Reading Traj Files"];
viz [label="Visualization"]
tut5A [label="Tutorial 5A: Interactive Trajectory Visualization"];
tut5B [label="Tutorial 5B: Static Trajectory Visualization"];
tut5C [label="Tutorial 5C: Heatmap Trajectory Visualization"];
tut5D [label="Tutorial 5D: Trajectory Visualization For Print"];
tut5E [label="Tutorial 5E: Airport & Port Visualization"];
tut5F [label="Tutorial 5F: Shoreline, River & Border Visualization"];
tut6 [label="Tutorial 6: Filtering"];
tut1 -> tut2;
tut2 -> tut3;
tut2 -> tut4;
tut2 -> viz;
viz -> tut5A;
viz -> tut5B;
viz -> tut5C;
viz -> tut5D;
viz -> tut5E;
viz -> tut5F;
tut2 -> tut6;
}](../_images/graphviz-e69d6022f9966cc47a46addfc2936860e7e044a2.png)
Tutorial Flow
Note
There is a bug in our Sphinx build. The notebooks should appear under this note. You can download the pre-rendered notebooks from our Releases page on GitHub starting with Tracktable 1.7.2.
- Tutorial 1: How to Create Trajectory Points from a Delimited File
- Tutorial 2: How to Create Trajectories from a Delimited File
- Tutorial 3: How to Write Trajectories to a .traj File
- Tutorial 4: How to Read .traj Files
- Tutorial 5-A: Interactive Trajectory Visualization
- Tutorial 5-B: Static Trajectory Visualization
- Tutorial 5-C: Heatmap Trajectory Visualization
- Tutorial 5-D: Trajectory Visualization For Print
- Tutorial 5-E: Airport & Port Visualization
- Tutorial 5-F: Shoreline, River & Border Visualization
- Tutorial 6: Filtering Trajectories
Analytic Demos
If you wish to modify or run the notebooks locally there are three ways to get them:
Clone Tracktable’s Github repository: https://github.com/sandialabs/tracktable.
Download Tracktable’s source code from https://tracktable.sandia.gov/downloads/source_code.html (starting with Tracktable 1.3).
If you have Tracktable installed, the function
tracktable.examples.copy_example_notebookswill move the notebooks to a place of your choosing.
Detailed information about
copy_example_notebookscan be found here: tracktable.examples module