This is an example module to show how one can go from cylindrical or spherical to cartesian coordinates. This has been written for specific datasets, but it should serve the purpose. Anyways, the trick is to calculate the points array properly in order to feed field2mesh, in most cases. See also - Read. |