<div dir="ltr">Making it easy to lock the FRB resolution to the simulation resolution or some factor-of-two multiple would be a great improvement, and something that would be not too hard I think. Right now you're right that it's not very obvious how to do this. If you'd be interested in coming up with a UI for making FRBs that are locked to the simulation resolution, I think that would be a fun first yt project that many people would like to use.<div><br></div><div>One easy way to get the size of the smallest computational element is the `ds.index.get_smallest_dx()` function, which will return the size of the smallest cell width in code units. The ds.index object is the main way to access information about the geometrical or mesh properties of a dataset.</div><div><br></div><div>For patch AMR datasets like FLASH, you can access the grid objects like so:</div><div><br></div><div>for grid in ds.index.grids:</div><div>    print grid.LeftEdge, grid.RightEdge  # left and right edge of the grid in code units</div><div>    print grid.ActiveDimensions  # the dimensions of the grid patch (i.e. number of zones along x, y, and z)</div><div>    print grid.Level  # AMR leve</div><div>    print grid.Children  # references to child grid objects, if any</div><div>    print grid.Parent # reference to parent grid</div><div>    print grid['dens'] # the on-disk gas density field</div><div><br></div><div>You can access any yt field on the grid object using a dictionary-like lookup, just like any other yt data object.</div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 25, 2015 at 1:18 PM, Slavin, Jonathan <span dir="ltr"><<a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</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"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hi all,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">I've been doing FLASH runs in 2D and using yt to manipulate the data for display -- that is, I've been creating frb objects from slices (which are not really slices since the data is 2D anyways).  One thing that bothers me about this is the need to specify the dimensions of the frb.  For some reason 800 x 800 seems to be preferred in the yt docs, but it seems to me that there are certain optimal dimensions that depend on the grid structure.  For example an frb that uses pixels the size of the smallest resolution element/cell or some integer multiple of that (of course less refined cells would be split into multiple pixels).  How would one find what that grid size would be?  I guess what I'd need to know is the dimensions of that most refined cell in the computational grid.  How does one access the grid structure information in a dataset?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Jon</div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr">________________________________________________________<br>Jonathan D. Slavin                 Harvard-Smithsonian CfA<br><a href="mailto:jslavin@cfa.harvard.edu" target="_blank">jslavin@cfa.harvard.edu</a>       60 Garden Street, MS 83<br>phone: <a href="tel:%28617%29%20496-7981" value="+16174967981" target="_blank">(617) 496-7981</a>       Cambridge, MA 02138-1516<br>cell: <a href="tel:%28781%29%20363-0035" value="+17813630035" target="_blank">(781) 363-0035</a>             USA<br>________________________________________________________<br><br></div></div></div></div>
</font></span></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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>