Computation of horizontal trajectories based on the surface geostrophic wind