[yt-users] load and slice data in spherical coordinates
Andrea Negri
negri.andre at gmail.com
Tue Apr 19 05:45:02 PDT 2016
Hi all,
I would like to shape a problem and the relative (temporary) solution.
I have a numerical simulation in spherical coordinates, which order is
phi, theta, so I use the load_uniform_grid function with
geometry=('spherical',('phi','theta','r'), and the relative bbox.
However, when I try to plot a slice, I obtain an error. Long story
short, now I transpose the data, and everything is OK.
In attachment there is a very simple code that shows the problem, the
commented lines produce a correct plot, while the uncommented lines
raise an error.
Cheers,
Andrea
-------------- next part --------------
A non-text attachment was scrubbed...
Name: post.py
Type: text/x-python-script
Size: 527 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160419/d01a2b41/attachment.bin>
More information about the yt-users
mailing list