<div dir="ltr">Hi Stephanie,<div><br></div><div>I've not heard of this bug, but I've had some difficulty with arbitrary_grids in the past.  You might try using a covering_grid instead of an arbitrary_grid object since it is designed with grid-based datasets in mind whereas arbitrary_grids are more suited to particle-based datasets.  This will give you a uniform grid at whatever resolution you desire (200 pc).  If that doesn't work, perhaps it is a problem with your user-defined fields?  But given that it works with cut_regions, I think it's unlikely to be your field definition.</div><div><br></div><div><a href="http://yt-project.org/docs/dev/examining/low_level_inspection.html#examining-grid-data-in-a-fixed-resolution-array">http://yt-project.org/docs/dev/examining/low_level_inspection.html#examining-grid-data-in-a-fixed-resolution-array</a><br></div><div><br></div><div>Hope this helps!</div><div><br></div><div>Cameron</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Aug 7, 2017 at 10:14 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a>></span> 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-users!<div><br></div><div>I have a simulation run on Enzo that has a best resolution cell size of ~40 pc.  I would like to be able to compare my run to observations that are at a resolution of ~200 pc.  I want to save a bunch of data in a fits file with that resolution.  It looks like the way to do this is to create an arbitrary_grid object.  If someone has a better method, please tell me!</div><div><br></div><div>So I have my artbitrary_grid object, and I am making arrays of fields:</div><div><br></div><div>xp = arbgridobj['x']</div><div>...etc....</div><div><br></div><div>xp = np.array(xp)</div><div>...etc...</div><div><br></div><div>my code keeps crashing when I try to get a user-defined field for my arbitrary_grid object.  If I try to get the field for a cut_region my code runs just fine.  Is user-defined fields + arbitrary_grid objects just something that yt can't do or is there some different way to make this happen than in a cut_region?  </div><div><br></div><div>Thanks!!</div><div><br></div><div>Best,</div><div>Stephanie</div><div><br clear="all"><div><div class="m_7733145020908046064gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Cameron Hummels<div><span style="font-size:12.8000001907349px">NSF Postdoctoral Fellow</span></div><div><span style="font-size:12.8000001907349px">Department of Astronomy</span></div><div><span style="font-size:12.8000001907349px">California Institute of Technology</span><br></div><div><a href="http://chummels.org" style="font-size:12.8000001907349px" target="_blank">http://chummels.org</a><br></div></div></div></div>
</div>