This repository contains the code to compute ralpha and rTSE in both 2D and 3D flows following the paper: "Relative Fluid Stretching and Rotation for Sparse Trajectory Observations" by Nikolas Aksamit, Alex P. Encinas Bartos, George Haller and David Rival (2024).