Is there a more elegant way than this to get a tuple of the shape of some dimensions of an xarray dataset? tuple(dict(ds[['X', 'Y']].dims).values()) Continue reading...