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 tracktable/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;
}

Tutorial Flow

Analytic Demos

If you wish to modify or run the notebooks locally there are three ways to get them:

  1. Clone Tracktable’s Github repository: https://github.com/sandialabs/tracktable.

  2. Download Tracktable’s source code from https://tracktable.sandia.gov/downloads/source_code.html (starting with Tracktable 1.3).

  3. If you have Tracktable installed, the function tracktable.examples.copy_example_notebooks will move the notebooks to a place of your choosing.