Mirroring Cartesian data about a plane for volume rendering
Hi, 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? 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? Thanks. Dan
Hi Dan, I don’t think there’s a direct option of mirroring in volume rendering, however this is definitely doable via other ways. 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 http://yt-project.org/docs/dev/cookbook/constructing_data_objects.html#extra... http://yt-project.org/docs/dev/cookbook/constructing_data_objects.html#extra...), then mirror the data and pass it to volume rendering. Best wishes, -- Suoqing JI Ph.D Candidate Department of Physics University of California, Santa Barbara http://web.physics.ucsb.edu/~suoqing
On Mar 14, 2016, at 2:30 PM, Daniel Fenn
wrote: Hi,
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?
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?
Thanks.
Dan _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Hi Suoqing,
Thanks for the suggestion. I'll proceed along those lines.
Dan
2016-03-14 17:38 GMT-04:00 Suoqing Ji
Hi Dan,
I don’t think there’s a direct option of mirroring in volume rendering, however this is definitely doable via other ways.
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 http://yt-project.org/docs/dev/cookbook/constructing_data_objects.html#extra...), then mirror the data and pass it to volume rendering.
Best wishes, -- Suoqing JI Ph.D Candidate Department of Physics University of California, Santa Barbara http://web.physics.ucsb.edu/~suoqing
On Mar 14, 2016, at 2:30 PM, Daniel Fenn
wrote: Hi,
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?
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?
Thanks.
Dan _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
If the mirrored dataset can fit in memory and your FLASH simulation uses
AMR, you could also try using load_amr_grids:
http://yt-project.org/doc/reference/api/generated/yt.frontends.stream.data_s...
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?).
On Tue, Mar 15, 2016 at 11:56 AM, Daniel Fenn
Hi Suoqing,
Thanks for the suggestion. I'll proceed along those lines.
Dan
2016-03-14 17:38 GMT-04:00 Suoqing Ji
: Hi Dan,
I don’t think there’s a direct option of mirroring in volume rendering, however this is definitely doable via other ways.
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 http://yt-project.org/docs/dev/cookbook/constructing_data_objects.html#extra...), then mirror the data and pass it to volume rendering.
Best wishes, -- Suoqing JI Ph.D Candidate Department of Physics University of California, Santa Barbara http://web.physics.ucsb.edu/~suoqing
On Mar 14, 2016, at 2:30 PM, Daniel Fenn
wrote: Hi,
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?
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?
Thanks.
Dan _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
_______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (3)
-
Daniel Fenn
-
Nathan Goldbaum
-
Suoqing Ji