[yt-users] How to access fields from a previous level?

Britton Smith brittonsmith at gmail.com
Mon Nov 25 06:08:14 PST 2013


Hi Reju,

You just need to load both datasets:
pf1 = load("RD0039/RedshiftOutput0039")

pf2 = load(""RD0040/RedshiftOutput0040")

In order to do cell by cell comparison, you will have to use a data
structure that gives you everything in a fixed resolution.  I suggest
either a covering_grid or smoothed_covering_grid.  To learn more about
them, please read the section Available Objects at
http://yt-project.org/docs/dev/analyzing/objects.html .

Britton


On Mon, Nov 25, 2013 at 2:01 PM, Reju Sam John <rejusamjohn at gmail.com>wrote:

> Dear all,
> I am analyzing a particular level  "RD0040/RedshiftOutput0040". If I want
> to load a field from previous level ie. from "RD0039/RedshiftOutput0039",
> what is the method?
>
> I want to calculate    data["Temperature"] / data["Temperature"], where
> first one is from RD0040/RedshiftOutput0040" and second one is from
> "RD0039/RedshiftOutput0039".
>
> Please suggest a method.
>
> --
> Reju Sam John
>
> _______________________________________________
> 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/20131125/85e5ad3a/attachment.html>


More information about the yt-users mailing list