xarray.Dataset.traj.velocity_components#
- Dataset.traj.velocity_components()#
Calculate velocity components [m/s] from one position to the next.
The last time step is repeated for the last position (which has no next position).
- Returns:
u (
xarray.DataArray
) – Eastward velocity component [m/s] at each position along trajectories. Dimensions: same as the dataset’s trajectory and observation dimensions.v (
xarray.DataArray
) – Northward velocity component [m/s] at each position along trajectories. Dimensions: same as the dataset’s trajectory and observation dimensions.
See also
speed
Calculate the speed along trajectories.
azimuth_to_next
Calculate the azimuth (direction) to the next position.