<div dir="ltr">Hi Junhwan,<div><br></div><div>This page on low-level data examination may have a key to doing what you're trying to do:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/examining/low_level_inspection.html">http://yt-project.org/docs/dev/examining/low_level_inspection.html</a><br></div><div><br></div><div>In particular, it may be useful to make a FixedResolutionArray and then inspect individual array elements along that FRA.</div><div><br></div><div>Good luck, and let us know if you're successful.</div><div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 3, 2014 at 8:16 AM, 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>
I have one basic question how I can access row data using yt.<br>
For example, I would like to access finset cell information and<br>
manipulate form it.<br>
Does following script print the x, y, z, vx, vy, vz, and mass for all<br>
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>
I know that this kind of the procedure violate the bases of yt philosophy.<br>
However, it is sometimes useful, particularly when I want to compute<br>
very specific quantities.<br>
If you have other suggestion regarding to access simulation raw data<br>
in yt way, please let me know.<br>
<br>
Thank you,<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><br clear="all"><div><br></div>-- <br>Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div>
</div>