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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: [email protected]