<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">One way (imperfect but definitely doable) you might want to try is to map 2D cylindrical data into a 3D numpy array, which could be loaded by yt.load_uniform_grid and passed into the volume rendering module.<div class=""><br class=""></div><div class="">See here: <a href="http://yt-project.org/doc/examining/generic_array_data.html" class="">http://yt-project.org/doc/examining/generic_array_data.html</a><br class=""><div class=""><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Best wishes,</div><div class="">--</div><div class="">Suoqing JI</div><div class="">Ph.D Student</div><div class="">Department of Physics</div><div class="">University of California, Santa Barbara</div><div class=""><a href="http://web.physics.ucsb.edu/~suoqing" class="">http://web.physics.ucsb.edu/~suoqing</a></div></div></div></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 14, 2015, at 6:01 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, May 14, 2015 at 5:35 PM, Ken Shen <span dir="ltr" class=""><<a href="mailto:kenshen@astro.berkeley.edu" target="_blank" class="">kenshen@astro.berkeley.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">I'm really sorry, I can't seem to explain this very clearly in words!<div class=""><br class=""></div><div class="">I have 2D axisymmetric data.  Let's suppose that I map this to a 3D Cartesian dataset.  I'd like to make a 2D plot from this 3D data that consists of integrating the density along rays from the observer through the dataset onto a plane on the other side of the data.  Ideally, I'd like to do this with the observer at an arbitrary position with respect to the axes.</div><div class=""><br class=""></div><div class="">I haven't done it, but it seems like this is built in to yt's functionality for 3D datasets.  But I haven't found how to do it for a 2D axisymmetric dataset.</div><div class=""><br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">In yt we would call this a volume rendering using rays that are aligned with the cartesian axes and a projection transfer function.</div><div class=""><br class=""></div><div class="">I don't think this has been implemented yet, but volume renderings of data with non-cartesian geometries or with unstructured meshes is something we would like to do.</div><div class=""> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""></div><div class=""><br class=""></div><div class="">Sorry for all the messages!</div><span class="HOEnZb"><font color="#888888" class=""><div class="">Ken</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, May 14, 2015 at 5:28 PM, Michael Zingale <span dir="ltr" class=""><<a href="mailto:michael.zingale@stonybrook.edu" target="_blank" class="">michael.zingale@stonybrook.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">to be clear here, what Flash calls cylindrical is 2-d axisymmetric, r-z.  If I understand what you are asking, you basically want to still have a 2-d plot where each cell is the integral over an annular region as if that cell were rotated about the symmetry axis -- is that right?  </div><div class="gmail_extra"><div class=""><div class=""><br class=""><div class="gmail_quote">On Thu, May 14, 2015 at 8:21 PM, Ken Shen <span dir="ltr" class=""><<a href="mailto:kenshen@astro.berkeley.edu" target="_blank" class="">kenshen@astro.berkeley.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">Hi, sorry I wasn't very clear before.  I'd like to make 2D column density plots of my 2D cylindrical data as if my data were 3D cylindrical data with no phi-dependence.<div class=""><br class=""></div><div class="">(The ProjectionPlot fails for axis = 1 or 3.  For axis = 2, it essentially recreates the regular density slice plot.)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Ken</div><div class=""><br class=""></div><div class=""><br class=""><div class=""><br class=""></div></div></div><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Thu, May 14, 2015 at 5:00 PM, Matthew Turk <span dir="ltr" class=""><<a href="mailto:matthewturk@gmail.com" target="_blank" class="">matthewturk@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ken,<br class="">
<br class="">
(I think Suoqing's answer may work as well.)  If you want to project<br class="">
along r, z, or theta, you can do a ProjectionPlot (or "ds.proj") and<br class="">
specify "r", "z", or "theta", and the result will be along that axis<br class="">
with the correct path lengths.  I think that the "r" direction may be<br class="">
what you're looking for here, i.e., a soup-can label.<br class="">
<br class="">
-Matt<br class="">
<div class=""><div class=""><br class="">
On Thu, May 14, 2015 at 6:31 PM, Ken Shen <<a href="mailto:kenshen@astro.berkeley.edu" target="_blank" class="">kenshen@astro.berkeley.edu</a>> wrote:<br class="">
> Hi all, I'd like to make column density plots of my 2D cylindrical FLASH<br class="">
> data.  Ideally, these would be at arbitrary angles to the z-axis.  I'm new<br class="">
> to yt, so I could very well have missed it, but I couldn't seem to find this<br class="">
> in the documentation.  Any hints?<br class="">
><br class="">
><br class="">
> Thanks,<br class="">
> Ken<br class="">
><br class="">
</div></div><div class=""><div class="">> _______________________________________________<br class="">
> yt-users mailing list<br class="">
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
><br class="">
_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
</div></div></blockquote></div><br class=""></div>
</div></div><br class="">_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""><br clear="all" class=""><div class=""><br class=""></div></div></div><span class=""><font color="#888888" class="">-- <br class=""><div class=""><div class="">Michael Zingale</div><div class="">Associate Professor</div><div class=""><br class=""></div><div class="">Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div><div class=""><i class="">phone</i>:  <a href="tel:631-632-8225" value="+16316328225" target="_blank" class="">631-632-8225</a></div><div class=""><i class="">e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank" class="">Michael.Zingale@stonybrook.edu</a></div><div class=""><i class="">web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank" class="">http://www.astro.sunysb.edu/mzingale</a></div></div>
</font></span></div>
<br class="">_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" target="_blank" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</div></div><br class="">_______________________________________________<br class="">
yt-users mailing list<br class="">
<a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="">
<br class=""></blockquote></div><br class=""></div></div>
_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br class=""></div></blockquote></div><br class=""></div></div></body></html>