<div dir="auto">Hi Klaus,<div dir="auto"><br></div><div dir="auto">There are two ways to do this. The first is to create a collection of grids (ds.grid_collection) from grids at the refinement level you're interested in. But, I think this will include all points (including overlapping) which will give undesirable results if you just want a Max refinement or Min refinement.</div><div dir="auto"><br></div><div dir="auto">The other way would be to make a data objects as per usual, for instance with ds.all_data(), and before accessing any fields, set the attributes min_level and max_level on that object. That should restrict the selection, and will correctly remove overlapping points (up to max_level) if the two values are different.</div><div dir="auto"><br></div><div dir="auto">Let us know if that helps!</div><div dir="auto"><br></div><div dir="auto">Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Jun 6, 2017 6:37 PM, "Klaus Weide" <<a href="mailto:klaus@flash.uchicago.edu">klaus@flash.uchicago.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have recently started using yt to for processing some FLASH results.<br>
<br>
Here is something that I think should be easy, but I haven't found an<br>
obvious and simple way in the documentation. I would like to analyze only<br>
cells (blocks) that are at a specific refinement level (let's say the<br>
highest) and discard all other cells (blocks). Is there an interface<br>
for defining a region by refinement level(s), immediately after loading an<br>
AMR file?<br>
<br>
I know I have access to cell properties like 'dx', 'dy' and could select<br>
cells based on that, but hopefully there is a more direct (and perhaps<br>
more efficient) way.<br>
<br>
Klaus<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>
</blockquote></div></div>