Thank you very much for your replies. xarray is perfect though I'm not sure what overhead I'm paying to get the following:
import numpy as np import xarray as xr data = xr.DataArray(np.random.randn(2, 3, 4), dims=("x", "y", "z")) data.transpose('z', 'y', 'x').shape data.transpose('y', 'z', 'x').shape Just what I was hoping for. Paul _______________________________________________ NumPy-Discussion mailing list -- numpy-discussion@python.org To unsubscribe send an email to numpy-discussion-le...@python.org https://mail.python.org/mailman3/lists/numpy-discussion.python.org/ Member address: arch...@mail-archive.com