<div dir="ltr"><div>Hi All,</div><div><br></div>A follow-up question: In using arbitrary_grid (but with enzo data), how does one then extract a field of an arbitrary_grid? I tried arbgrid["density"] as I have done with a smoothed_covering_grid object, but it does not work (<a href="http://pastebin.com/afgcgpp0">here is the traceback</a> I got).<div><br></div><div>Thanks,</div><div>Carla</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-02-23 17:21 GMT+01:00 Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Desika,<br>
<br>
Yup, this can be done reasonably easily using either the<br>
.arbitrary_grid object (which was designed for this) or the interface<br>
to the arbitrary grid that's in the development version, which is<br>
ds.r[ ... ] where the ... is some combination of bounds and steps.<br>
<br>
<a href="http://yt-project.org/docs/dev/analyzing/objects.html#arbitrary-grid" rel="noreferrer" target="_blank">http://yt-project.org/docs/dev/analyzing/objects.html#arbitrary-grid</a><br>
<a href="http://yt-project.org/docs/dev/analyzing/objects.html#slicing-syntax-for-selecting-data" rel="noreferrer" target="_blank">http://yt-project.org/docs/dev/analyzing/objects.html#slicing-syntax-for-selecting-data</a><br>
<span class="im HOEnZb"><br>
On Tue, Feb 23, 2016 at 10:18 AM, Desika Narayanan<br>
<<a href="mailto:desika.narayanan@gmail.com">desika.narayanan@gmail.com</a>> wrote:<br>
</span><div class="HOEnZb"><div class="h5">> Hi All,<br>
><br>
> Is it possible to deposit the particles from a gadget data set onto a<br>
> uniform grid in yt?  Or, could it be possible to trick the octree deposition<br>
> into doing it by forcing no refinements, but some sort of native grid<br>
> resolution?<br>
><br>
> thanks,<br>
> desika<br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br></div>