<div dir="ltr">Hi Dan,<div><br></div><div>I think you should be able to set the max_level attribute on the data object you're creating the surface from. Here's an example:</div><div><br></div><div><div>    import yt</div><div>    ds = yt.load('IsolatedGalaxy/galaxy0030/galaxy0030') </div><div>    ad = ds.all_data()</div><div>    ad.max_level = 6</div><div>    ds.surface(ad, 'density', 5e-27)</div><div>    surf = ds.surface(ad, 'density', 5e-27)</div></div><div><br></div><div>You can then export the surface if you want (I used export_ply) to verify that that degrading the resolution produces a reasonable low-resolution representation:</div><div><br></div><div><a href="http://imgur.com/a/WkOjA">http://imgur.com/a/WkOjA</a><br></div><div><br></div><div>Here I'm using meshlab to view the surfaces outside of yt after exporting them to ply files. The left-hand one has max_level = 4, the right-hand one is with no max_level.</div><div><br></div><div>-Nathan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 28, 2016 at 2:05 PM, Daniel Fenn <span dir="ltr"><<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@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,<div><br></div><div>I'm trying to figure out the best way to downsample FLASH AMR data for making isocontours. I'd like to be able to specify the maximum refinement level that should be used for creating the isocontours.</div><div><br></div><div>My first thought was to use a covering grid, but I'm uncertain how to use that to create a YTSurface object.</div><div><br></div><div>If anyone can offer any suggestions, I'd appreciate it.</div><div><br></div><div>Thanks,</div><div><br></div><div>Dan</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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>