xarray.Dataset.traj.distance_to_next#

Dataset.traj.distance_to_next()#

Returns distance in meters from one position to the next along trajectories.

Last time is repeated for last position (which has no next position).

Returns:

DataArray – Same dimensions as original Dataset, since last value is repeated along time dimension.