<div dir="ltr">Hi Hansheng,<div><br></div><div>What you want to do is referred to as a projection in yt. I assume that you are already able to load your data with yt. If that is not the case, let us know. The function to check out is yt.ProjectionPlot. Have a look here for some more information on this:</div><div><a href="http://yt-project.org/doc/visualizing/plots.html">http://yt-project.org/doc/visualizing/plots.html</a><br></div><div>It will do the integration and also generate a figure for you.</div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 20, 2016 at 8:59 PM, Hansheng Chen <span dir="ltr"><<a href="mailto:jasonhs1221@gmail.com" target="_blank">jasonhs1221@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">Hello,<div><br></div><div>I would like to use yt to analyze the electron density of a galaxy. I have the data of the electron density in 3-D, but I would like to get the projected electron density in 2-dimensional. This means that I need to integrate the electron density in 3-D along the z-axis and show the integrated data in x-y coordinates. I do not know how to integrate the 3-D data along one direction by using yt. Could you please give me some help?</div><div><br></div><div>Thank you very much!</div><div><br></div><div>Sincerely,</div><div>Hansheng Chen</div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>