[yt-users] Two questions related to projections

Nathan Goldbaum nathan12343 at gmail.com
Wed Nov 11 12:56:21 PST 2015


On Wed, Nov 11, 2015 at 2:27 PM, Stephanie Tonnesen <stonnes at gmail.com>
wrote:

> Hi yt-users,
>
> So I have two questions related to projections.  What I want to finally
> end up with is a projection-type figure that for any point in the
> projection gives me the value: (column density) * (total sound crossing
> time) * (peak gravitational acceleration).  I know how to make projections
> of column density and total sound crossing time, but am stuck otherwise.
> So, my questions:
>
> 1)  Can I combine two projection plots after I make them? I do not want
> the projection of column density * sound crossing time for every cell, I
> want to multiply the two final outputs.
>

I don't think there's an easy way to do this right now. We don't have good
support for manipulating projected quantities in the same way as volumetric
quantities. I would probably do this by manually plotting the product of
the image arrays for each quantity.


>
> 2)  Can I create a projection plot, or map along a line of sight, of the
> peak value of a variable?
>

This one's much easier, you want to specify proj_style='mip' (short for
maximum intensity projection) when you create your ProjectionPlot.
Projection data objects (e.g. ds.proj) take a style keyword argument that
does the same thing. We should probably make that API more uniform...

-Nathan


>
> Thanks for any help,
> Stephanie
>
> --
> Dr. Stephanie Tonnesen
> Alvin E. Nashman Postdoctoral Fellow
> Carnegie Observatories, Pasadena, CA
> stonnes at gmail.com
>
> _______________________________________________
> 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/20151111/410ff320/attachment.html>


More information about the yt-users mailing list