<div dir="ltr">There are some potentially-helpful commands in "math_utils.py", although they aren't loaded by default into the api when you "from yt.mods import *", so you'll have to load them individually.<div>

<br></div><div>go to yt-i386/src/yt-hg/yt/utilities/math_utils.py and poke around.</div><div><br></div><div>You can load them as per:</div><div><br></div><div>import yt.utilities.math_utilities as mu</div><div>mu.get_sph_phi()   # or whatever command in math_utilities.py</div>

<div><br></div><div>There is some documentation in line in the code, which may provide help, but it isn't comprehensive so if you have any questions, please write to the list.  </div><div><br></div><div>Cameron</div>
</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 7, 2014 at 5:20 PM, Mani Chandra <span dir="ltr"><<a href="mailto:mc0710@gmail.com" target="_blank">mc0710@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi Everyone,<div><br></div><div>I have data which is in spherical polar coordinates, so basically rho(r, theta, phi) and I can't seem to find an appropriate interface in yt to load the data with. Is there a function that can do that?</div>


<div><br></div><div>If not, is there a function that takes in as an argument the (x,y,z) coordinate for each data point that I want to plot? i.e. take in as an argument, a 3D array which is the full grid. The current interface only seems to take in the bounding box.</div>


<div><br></div><div>Thanks,</div><div>Mani</div></div>
<br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div>


</div>