![](https://secure.gravatar.com/avatar/7d25e66cab04d869b99bf41281f11d07.jpg?s=120&d=mm&r=g)
11 Dec
2008
11 Dec
'08
12:30 p.m.
Hi scipy-experts,
I have a 3D array (180x200x200 elements) that represents a 3D volume in space. I want to rotate the data in this array by an arbitrary amount around an arbitrary point inside the volume, then re-grid the result back into the original voxels. Does anyone know of a scipythonic or numpythonic function, package, or even an algorithm to achieve this?
You will probably find what you need in one of the functions listed on http://docs.scipy.org/scipy/docs/scipy.ndimage.interpolation/#scipy-ndimage-...
Not only had I forgotten about ndimage, but had no recollection of all the nifty things in there. Thanks for saving me a week of wheel-reinvention! G