<div dir="ltr">This may also be a good option for you, Desika:<div><br></div><div><a href="http://yt-project.org/docs/dev-3.0/examining/low_level_inspection.html#examining-grid-data-in-a-fixed-resolution-array">http://yt-project.org/docs/dev-3.0/examining/low_level_inspection.html#examining-grid-data-in-a-fixed-resolution-array</a><br>

</div><div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 22, 2014 at 10:38 AM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Desika,<div><br></div><div>You're right, you need to use all_data:</div><div><br></div>import yt<br><div>ds = yt.load("your_dataset")</div>

ad = ds.all_data()<div>print ad["PartType0", "Coordinates"]</div>
<div><br></div><div>In general all yt data sources will print out the flattened data contained in the source when you query them like a dictionary using an unambiguous string field name or ('field_type', 'field name')<span></span> tuple.</div>

<span class="HOEnZb"><font color="#888888">
<div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">Nathan</font></span><div><div class="h5"><br><div><br>On Thursday, May 22, 2014, Desika Narayanan <<a href="mailto:dnarayan@haverford.edu" target="_blank">dnarayan@haverford.edu</a>> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi yt,<div><br></div><div>I have a pretty simple question that I ought to know the answer to -  how do I extract the actual values in the field_list or derived_field_list of a ds?</div><div><br></div><div>

For example, I have a field: <span style="font-family:Monaco;font-size:11px">('PartType0', 'Coordinates'),</span></div>


<div><span style="font-family:Monaco;font-size:11px"><br></span></div><div>but printing something like pf[('PartType0','Coordinates')] doesn't return the list of particle type 0 coordinates (or anything for that matter).  Do I have to access this through a pf.all_data() command somehow?  </div>




<div><span style="font-family:Monaco;font-size:11px"><br></span></div><div><span style="font-family:Monaco;font-size:11px">Thanks</span></div><div><span style="font-family:Monaco;font-size:11px">-desika</span></div><div>



<span style="font-family:Monaco;font-size:11px"><br>
</span></div></div>
</blockquote></div></div></div></div>
<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>
<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>