Often you want to iterate over trajectories and get the data in the time vs variable format. As long as you only have one trajectory you can reduce the observation layout to just 1d time layout. Would be nice if this works with groupby as well.
ds.traj.iseltraj(0)
gives a ds in (trajectory, time) format (except trajectory is size 1).
Often you want to iterate over trajectories and get the data in the time vs variable format. As long as you only have one trajectory you can reduce the observation layout to just 1d time layout. Would be nice if this works with groupby as well.
gives a ds in (trajectory, time) format (except trajectory is size 1).