<div dir="ltr"><div><div><div><div>Hi Junhwan,<br><br></div>You can access the raw grid data by going through the index object:<br><br><a href="http://nbviewer.ipython.org/gist/ngoldbaum/aadd07cd3f188c59d272">http://nbviewer.ipython.org/gist/ngoldbaum/aadd07cd3f188c59d272</a><br><br></div>This includes data that yt normally "masks" because higher resolution data is available.<br><br></div>I'm not sure if there is a way to query data sources only up to a maximum level.  There's probably a hacky way to do it by loading in a fake dataset using load_amr_grids...<br><br></div>-Nathan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 3, 2014 at 8:36 PM, Junhwan Choi (최준환) <span dir="ltr"><<a href="mailto:choi.junhwan@gmail.com" target="_blank">choi.junhwan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi yt user,<br>
<br>
Previously, I asked basic question how I can access raw data using yt.<br>
At that time, I confirm that the following script print the x, y,<br>
z,vx, vy, vz, and mass for all finest cells in the spherical region<br>
=================<br>
from yt.mods import *<br>
<br>
pf = load("../DD%04d/DD%04d" % (snapshot,snapshot))<br>
center = pf.h.find_max("Density")[1]<br>
sp = pf.h.sphere(center, (rmax,'pc'))<br>
<br>
for icell in range(0,sp["CellMassMsun"].size):<br>
    print sp["x"][icell], sp["y"][icell], sp["z"][icell]<br>
    print sp["x-velocity"][icell], sp["y-velocity"][icell],<br>
sp["z-velocity"][icell]<br>
    print sp["CellMassMsun"][icell]<br>
================<br>
<br>
However, is there any way to access the coarse raw data?<br>
For example, the highest resolution of my simulation is say N_amr=10.<br>
But, I would like to access the data only up to N_amr=5 (from top grid<br>
to N_amr=5 grid).<br>
In this case, the grid information N_amr=6 to 10 is represented by its<br>
parent grid data.<br>
Is it possible?<br>
If so, how can I access these coarse data?<br>
<br>
<br>
Thank you in advance,<br>
Junhwan<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" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>