trackpy.subtract_drift

trackpy.subtract_drift(traj, drift=None)

Return a copy of particle trajectores with the overall drift subtracted out.

Parameters:

traj : DataFrame of trajectories, including columns x, y, and frame

drift : optional DataFrame([x, y], index=frame) like output of

compute_drift(). If no drift is passed, drift is computed from traj.

Returns:

traj : a copy, having modified columns x and y