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