Boundary of the data container
Hi yt users, I have one basic question about the membership of the data container. For example, I make a sphere data container and try to estimate the total enclosed mass of the sphere. However one of the refined cell (grid) is partially enclosed in the sphere. Does the yt add entire cell (grid) mass into the sphere mass or estimate the volume fraction of the cell mass and add only this partial mass? This question can be also applied for the density profile (r vs density). What happen one cell extends to multiple binning point? I would like to clarify my yt analysis. Thanks in advance, Junhwan
Hi Junhwan, yt uses the location of the center of a cell when selecting cells for a data object. If the cell center is inside the boundary of your data object, *all* of that cell gets counted towards the data object. If the cell center is outside the data object boundary, *none* of that cell gets counted towards the data object. It looks like you asked a similar question back in 2012 - Matt's answers should apply here as well: http://lists.spacepope.org/htdig.cgi/yt-users-spacepope.org/2012-May/002545.... Cheers, Nathan On Tue, May 6, 2014 at 7:39 PM, Junhwan Choi (최준환) <choi.junhwan@gmail.com>wrote:
Hi yt users,
I have one basic question about the membership of the data container. For example, I make a sphere data container and try to estimate the total enclosed mass of the sphere. However one of the refined cell (grid) is partially enclosed in the sphere. Does the yt add entire cell (grid) mass into the sphere mass or estimate the volume fraction of the cell mass and add only this partial mass? This question can be also applied for the density profile (r vs density). What happen one cell extends to multiple binning point?
I would like to clarify my yt analysis.
Thanks in advance, Junhwan _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Thank you Nathan, Junhwan On Tue, May 6, 2014 at 9:51 PM, Nathan Goldbaum <nathan12343@gmail.com> wrote:
Hi Junhwan,
yt uses the location of the center of a cell when selecting cells for a data object. If the cell center is inside the boundary of your data object, *all* of that cell gets counted towards the data object. If the cell center is outside the data object boundary, *none* of that cell gets counted towards the data object.
It looks like you asked a similar question back in 2012 - Matt's answers should apply here as well: http://lists.spacepope.org/htdig.cgi/yt-users-spacepope.org/2012-May/002545....
Cheers,
Nathan
On Tue, May 6, 2014 at 7:39 PM, Junhwan Choi (최준환) <choi.junhwan@gmail.com> wrote:
Hi yt users,
I have one basic question about the membership of the data container. For example, I make a sphere data container and try to estimate the total enclosed mass of the sphere. However one of the refined cell (grid) is partially enclosed in the sphere. Does the yt add entire cell (grid) mass into the sphere mass or estimate the volume fraction of the cell mass and add only this partial mass? This question can be also applied for the density profile (r vs density). What happen one cell extends to multiple binning point?
I would like to clarify my yt analysis.
Thanks in advance, Junhwan _______________________________________________ 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
Hi yt users, Does anyone of you have experience in making 3D movies of your simulations with yt? So far I've been just using projections and volume renderings to make movies, but I was wondering if there is an easy way to generate 3D stereoscopic movies. Any help will be much appreciated. Best, Fernando.
A long time ago I did this with VisIt. It could output two images from slightly different views and then you could combine them with imagemagik: composite -stereo visit0001.tif visit0002.tif 3d.png You should be able to get the same effect by rotating the image slightly and saving a second image. Note however that getting accurate colorspaces is important, and depending on how you encode the movie, the color shift may make the 3-d effect go away. Again, years ago, I found the following worked: mencoder "mf://frames/enuc_3d_*.png" -ovc lavc -lavcopts vcodec=ffv1:format=BGR32 -mf type=png -o wd_576_enuc_stereo.avi and this needed to be played as: mplayer -vo gl2 wd_576_enuc_stereo.avi I can't find my notes right now about the colorspace issue, but it's on the google. On Wed, May 7, 2014 at 12:37 PM, Fernando Becerra <becerrafernando@gmail.com
wrote:
Hi yt users,
Does anyone of you have experience in making 3D movies of your simulations with yt? So far I've been just using projections and volume renderings to make movies, but I was wondering if there is an easy way to generate 3D stereoscopic movies. Any help will be much appreciated.
Best, Fernando. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-- Michael Zingale Associate Professor Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800 *phone*: 631-632-8225 *e-mail*: Michael.Zingale@stonybrook.edu *web*: http://www.astro.sunysb.edu/mzingale
Hi Fernando, I think the stereoscopic camera should generate images with a given interocular distance -- it should be a swap-out replacement for the normal camera. -Matt On Wed, May 7, 2014 at 12:37 PM, Fernando Becerra <becerrafernando@gmail.com> wrote:
Hi yt users,
Does anyone of you have experience in making 3D movies of your simulations with yt? So far I've been just using projections and volume renderings to make movies, but I was wondering if there is an easy way to generate 3D stereoscopic movies. Any help will be much appreciated.
Best, Fernando. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Thanks Michael and Matt! Michael, I was using something similar with the command 'montage'. I will try what you suggest. Matt, I had no idea of the existence of the stereoscopic camera. I'll play around with it and see how it goes. On May 7, 2014, at 12:59 PM, Matthew Turk <matthewturk@gmail.com> wrote:
Hi Fernando,
I think the stereoscopic camera should generate images with a given interocular distance -- it should be a swap-out replacement for the normal camera.
-Matt
On Wed, May 7, 2014 at 12:37 PM, Fernando Becerra <becerrafernando@gmail.com> wrote:
Hi yt users,
Does anyone of you have experience in making 3D movies of your simulations with yt? So far I've been just using projections and volume renderings to make movies, but I was wondering if there is an easy way to generate 3D stereoscopic movies. Any help will be much appreciated.
Best, Fernando. _______________________________________________ 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 (5)
-
Fernando Becerra -
Junhwan Choi (최준환) -
Matthew Turk -
Michael Zingale -
Nathan Goldbaum