[yt-users] Questions About yt

Britton Smith brittonsmith at gmail.com
Tue Jun 21 02:52:19 PDT 2016


Hi Hansheng,

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:
http://yt-project.org/doc/visualizing/plots.html
It will do the integration and also generate a figure for you.

Britton

On Mon, Jun 20, 2016 at 8:59 PM, Hansheng Chen <jasonhs1221 at gmail.com>
wrote:

> Hello,
>
> 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?
>
> Thank you very much!
>
> Sincerely,
> Hansheng Chen
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160621/709a9a52/attachment.htm>


More information about the yt-users mailing list