xarray.Dataset.traj.index_of_last#

Dataset.traj.index_of_last()#

Find index of last valid position along each trajectory.

Returns:

array-like – Array of the index of the last valid position along each trajectory.