<div dir="ltr">If the mirrored dataset can fit in memory and your FLASH simulation uses AMR, you could also try using load_amr_grids:<div><br></div><div><a href="http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_amr_grids.html" target="_blank">http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_structures.load_amr_grids.html</a><br></div><div><br></div><div>It would be cool to add more official support for this, and in a way that doesn't require loading the dataset in memory. I think it would be natural to do in the new volume rendering API (a MirroredVolumeSource maybe?).</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 15, 2016 at 11:56 AM, 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 <span style="color:rgb(0,0,0);font-size:16px">Suoqing,</span><div><span style="color:rgb(0,0,0);font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:16px">Thanks for the suggestion. I'll proceed along those lines.</span></div><div><span style="color:rgb(0,0,0);font-size:16px"><br></span></div><div><span style="color:rgb(0,0,0);font-size:16px">Dan</span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-14 17:38 GMT-04:00 Suoqing Ji <span dir="ltr"><<a href="mailto:suoqing@physics.ucsb.edu" target="_blank">suoqing@physics.ucsb.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Dan,<div><br></div><div>I don’t think there’s a direct option of mirroring in volume rendering, however this is definitely doable via other ways.</div><div><br></div><div>One way I can come up with is, you could specify the region above/below z=0 plane and extract fix resolution data from it (see <a href="http://yt-project.org/docs/dev/cookbook/constructing_data_objects.html#extracting-fixed-resolution-data" target="_blank">http://yt-project.org/docs/dev/cookbook/constructing_data_objects.html#extracting-fixed-resolution-data</a>), then mirror the data and pass it to volume rendering.</div><div><br><div>
<div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word"><div>Best wishes,</div><div>--</div><div>Suoqing JI</div><div>Ph.D Candidate</div><div>Department of Physics</div><div>University of California, Santa Barbara</div><div><a href="http://web.physics.ucsb.edu/~suoqing" target="_blank">http://web.physics.ucsb.edu/~suoqing</a></div></div></div></div></div></div></div></div>
</div>
<br><div><blockquote type="cite"><div><div><div>On Mar 14, 2016, at 2:30 PM, Daniel Fenn <<a href="mailto:dsfenn@gmail.com" target="_blank">dsfenn@gmail.com</a>> wrote:</div><br></div></div><div><div><div><div dir="ltr">Hi,<div><br></div><div>I have a 3D Cartesian FLASH dataset that I would like to mirror about the z=0 plane for volume rendering. Is there a straightforward way to do this in yt?</div><div><br></div><div>I was unable to find any option in the volume rendering itself. My guess is that I'd have to perhaps make a new array representing the data and do the mirroring by appropriately copying the elements. However, I'm unsure how to go about this--especially for AMR data. Does anyone know of any built-in functionality that might be useful for this?</div><div><br></div><div>Thanks.</div><div><br></div><div>Dan</div></div></div></div>
_______________________________________________<br>yt-users mailing list<br><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br></div></blockquote></div><br></div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></div>