Create function ‘trajectory.read'