[yt-users] yt-users Digest, Vol 85, Issue 77

Sandy Yuan sihany at princeton.edu
Wed Mar 25 16:59:10 PDT 2015


Hi Suoqing,
  Thanks, that worked.
  Sandy

On Tue, Mar 24, 2015 at 4:10 PM, <yt-users-request at lists.spacepope.org>
wrote:

> Send yt-users mailing list submissions to
>         yt-users at lists.spacepope.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> or, via email, send a message with subject or body 'help' to
>         yt-users-request at lists.spacepope.org
>
> You can reach the person managing the list at
>         yt-users-owner at lists.spacepope.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of yt-users digest..."
>
>
> Today's Topics:
>
>    1. Re: Line-of-sight velocity dispersion? (Suoqing JI)
>    2. Periodic enzo volume? (Kalina Borkiewicz)
>    3. Re: Particle Size in Projection Plots (Yuan Li)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 24 Mar 2015 12:30:32 -0700
> From: Suoqing JI <suoqing at physics.ucsb.edu>
> To: Discussion of the yt analysis package
>         <yt-users at lists.spacepope.org>
> Subject: Re: [yt-users] Line-of-sight velocity dispersion?
> Message-ID: <67698C33-B4FE-4E93-B9FD-01ABB2D755CC at physics.ucsb.edu>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Sandy,
>
> The easiest way occurring to me is, since the standard deviation can be
> expressed as:
>
> sqrt( E(X^2) - E(X)^2 )
>
> so you could defined the ?z-velocity squared? as a new field, and
> calculate its average for each column (that is E(X^2) ). Then you have both
> E(X)^2 and E(X^2), thus the standard deviation can be computed.
>
> Best wishes,
> --
> Suoqing JI
> Ph.D Student
> Department of Physics
> University of California, Santa Barbara
> http://web.physics.ucsb.edu/~suoqing
>
> > On Mar 24, 2015, at 12:04 PM, Sandy Yuan <sihany at princeton.edu> wrote:
> >
> > Hi all,
> >   I have created a box object containing the data field "z-velocity".
> Right now, I can project "z-velocity" along the z axis to get the average
> "z-velocity" for each column, but is there a way to calculate the standard
> deviation of "z-velocity" along each column as well? What is the best way
> to do this in yt 2.6? Any suggestion would be greatly appreciated.
> >   Best,
> > --
> > Sandy
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150324/78c61e21/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 24 Mar 2015 14:56:02 -0500
> From: Kalina Borkiewicz <kalina at illinois.edu>
> To: <yt-users at lists.spacepope.org>
> Subject: [yt-users] Periodic enzo volume?
> Message-ID: <5511C152.3070205 at illinois.edu>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hi! Yt newbie here, sorry if my question is stupid or simple or both.
> I'm trying to render a periodic enzo volume. I figured I could just set
> ds.periodicity = (True, True True) , but that didn't seem to do anything.
> Searching the docs for "periodicity" doesn't have any results relating
> to EnzoDataset, so I'm wondering, can I make this periodic? How?
>
> Thanks,
> Kalina
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150324/a6422126/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 24 Mar 2015 16:10:05 -0400
> From: Yuan Li <bear0980 at gmail.com>
> To: Discussion of the yt analysis package
>         <yt-users at lists.spacepope.org>
> Subject: Re: [yt-users] Particle Size in Projection Plots
> Message-ID:
>         <CANx7jWiGbzZ=
> P9euh9HGa-pw-H4hzosp00N3HfeWgubtzf8icw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Cameron,
>
> I tired that, and this is the error message I get:
>
> *** YTDataSelectorNotImplemented: Data selector 'arbitrary_grid' not
> implemented.
>
>
> I looks like I will have to do it with matplotlib as Britton suggested
> after all :).
>
>
> By the way, in the examples given on Filtering Particle Fields here
> http://yt-project.org/doc/analyzing/filtering.html, sometimes "Stars" is
> used
> and sometimes it is the lowercase "stars". Is that a typo?
>
>
> Yuan
>
>
> On Tue, Mar 24, 2015 at 12:26 PM, Cameron Hummels <chummels at gmail.com>
> wrote:
>
> > I think you may be able to do the ProjectionPlot() by specifying the
> > keyword "data_source=obj":
> >
> >
> >
> http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.plot_window.ProjectionPlot.html#yt.visualization.plot_window.ProjectionPlot
> >
> > On Tue, Mar 24, 2015 at 9:03 AM, Yuan Li <bear0980 at gmail.com> wrote:
> >
> >> Hi all,
> >>
> >> I was thinking about doing what Britton suggested or making a 2d
> >> histogram in matplotlib, but Cameron's suggestion sounds like what I was
> >> looking for. How do I project this obj after it is created? When I
> tried to
> >> do yt.ProjectionPlot(obj.....) I got the error message saying this
> object
> >> has no attribute 'coordinates'.
> >>
> >> Yuan
> >>
> >> On Tue, Mar 24, 2015 at 11:03 AM, Britton Smith <brittonsmith at gmail.com
> >
> >> wrote:
> >>
> >>> In this situation, you might just want to plot the particles themselves
> >>> using a scatter plot in matplotlib.  The matplotlib.scatter function
> allows
> >>> you to specify both the color and/or size of the points with arrays, so
> >>> those properties can vary for the individual particles.
> >>>
> >>> Britton
> >>>
> >>> On Tue, Mar 24, 2015 at 2:58 PM, Cameron Hummels <chummels at gmail.com>
> >>> wrote:
> >>>
> >>>> Hi Yuan,
> >>>>
> >>>> I think the issue here is that you're taking a particle
> >>>> quantity--stellar ages--and trying to deposit that quantity on to the
> grid,
> >>>> which is primarily defined in enzo by the distribution of gas.  Thus,
> young
> >>>> stars tend to occur in locations of star formation, which is to say,
> where
> >>>> there is cold dense gas, the grid is more refined there (assuming
> you're
> >>>> using density-based AMR).  This means that you'll tend to get smaller
> >>>> "pixels" for young stars than for old stars where the stars may have
> >>>> drifted into regions of coarser spatial resolution and get larger
> "pixels".
> >>>>
> >>>> One solution for this would be to define your own underlying grid on
> to
> >>>> which you should deposit your particle quantities.  That way you can
> make a
> >>>> fixed resolution grid (so all the pixels are the same size) and
> deposit
> >>>> your particle quantities like Stellar Age, and it should solve your
> >>>> problem.  To find out more about doing this, check out this section
> of the
> >>>> docs:
> >>>>
> >>>>
> >>>>
> http://yt-project.org/docs/dev/analyzing/objects.html#arbitrary-grids-objects-for-particle-deposition
> >>>>
> >>>> Good luck, and let us know how it goes!
> >>>>
> >>>> Cameron
> >>>>
> >>>> On Sun, Mar 22, 2015 at 9:40 PM, Yuan Li <yuan at astro.columbia.edu>
> >>>> wrote:
> >>>>
> >>>>> Hi all,
> >>>>>
> >>>>> I have a basic question related to the sizes of particles in a
> >>>>> projection plot (in yt2). I am trying to make a plot that shows the
> average
> >>>>> line of sight star particle ages.
> >>>>>
> >>>>> Right now I am plotting the stellar-density-weighted star ages, and a
> >>>>> lot of the young stars look very small (see figure attached). I
> would like
> >>>>> to show that the stars far away from the center are younger. Is
> there a way
> >>>>> to make the small dots bigger? Other suggestions are also welcome!
> >>>>>
> >>>>>
> >>>>> Thank you!
> >>>>> Yuan
> >>>>> [image: Inline image 1]
> >>>>>
> >>>>> _______________________________________________
> >>>>> yt-users mailing list
> >>>>> yt-users at lists.spacepope.org
> >>>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> Cameron Hummels
> >>>> Postdoctoral Researcher
> >>>> Steward Observatory
> >>>> University of Arizona
> >>>> http://chummels.org
> >>>>
> >>>> _______________________________________________
> >>>> yt-users mailing list
> >>>> yt-users at lists.spacepope.org
> >>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >>>>
> >>>>
> >>>
> >>> _______________________________________________
> >>> yt-users mailing list
> >>> yt-users at lists.spacepope.org
> >>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >>>
> >>>
> >>
> >> _______________________________________________
> >> yt-users mailing list
> >> yt-users at lists.spacepope.org
> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >>
> >>
> >
> >
> > --
> > Cameron Hummels
> > Postdoctoral Researcher
> > Steward Observatory
> > University of Arizona
> > http://chummels.org
> >
> > _______________________________________________
> > yt-users mailing list
> > yt-users at lists.spacepope.org
> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150324/43a2ba10/attachment.htm
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: stest_0063_Projection_x_StarAgeYears_young_star_density.png
> Type: image/png
> Size: 27500 bytes
> Desc: not available
> URL: <
> http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150324/43a2ba10/attachment.png
> >
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
> ------------------------------
>
> End of yt-users Digest, Vol 85, Issue 77
> ****************************************
>



-- 
Sandy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150325/ad12424d/attachment.htm>
-------------- next part --------------
_______________________________________________
yt-users mailing list
yt-users at lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org


More information about the yt-users mailing list