<div dir="ltr">Thank you Britton, it resolves the conflict.<div>Junhwan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 1:01 PM, Britton Smith <span dir="ltr"><<a href="mailto:brittonsmith@gmail.com" target="_blank">brittonsmith@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"><div><div><div><div>Hi Jun-Hwan,<br><br></div>I'm mostly guessing here, but when you profile a field, it defaults to doing a mass-weighted profile, such that the value for any bin in the profile is:<br>
</div>
Sum (field * mass) / Sum (mass).<br></div>If your object is a very flat disk, then there is probably not much mass outside the plane of the disk, so even when you do a spherical profile, the cells in the disk are dominating the average.  My guess is that if you switch to doing a volume-weighted profile of the density, you will get answers that differ more.  You can do that in the add_field call by adding weight_field="CellVolume".<span class="HOEnZb"><font color="#888888"><br>

<br></font></span></div><span class="HOEnZb"><font color="#888888">Britton<br></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 8, 2013 at 12:50 PM, Jun-Hwan Choi <span dir="ltr"><<a href="mailto:jhchoi@pa.uky.edu" target="_blank">jhchoi@pa.uky.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I have a gas disk simulation and try to compute gas density profile.<br>
I generate to make spherical average density profile by feeding a sphere object to the BinnedProfile1D and cylindrical average density profile by feeding a disk object to the BinnedProfile1D.<br>
Surprisingly, both density profile is almost the same.<br>
Does any one have idea why?<br>
FYI, I past my yt script at  <a href="http://paste.yt-project.org/show/3046/" target="_blank">http://paste.yt-project.org/<u></u>show/3046/</a> .<br>
<br>
Thank you in advance.<br>
Junhwan<span><font color="#888888"><br>
<br>
<br>
-- <br>
------------------------------<u></u>------------------------------<u></u>--<br>
Jun-Hwan Choi, Ph.D.<br>
Department of Physics and Astronomy, University of Kentucky<br>
Tel: <a href="tel:%28859%29%20897-6737" value="+18598976737" target="_blank">(859) 897-6737</a>        Fax: <a href="tel:%28859%29%20323-2846" value="+18593232846" target="_blank">(859) 323-2846</a><br>
Email: <a href="mailto:jhchoi@pa.uky.edu" target="_blank">jhchoi@pa.uky.edu</a>   URL: <a href="http://www.pa.uky.edu/~jhchoi" target="_blank">http://www.pa.uky.edu/~jhchoi</a><br>
------------------------------<u></u>------------------------------<u></u>--<br>
<br>
______________________________<u></u>_________________<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/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</font></span></blockquote></div><br></div>
</div></div><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></blockquote></div><br></div><br clear="all"><div><br></div>-- <br>--------------------------------------------------------------<br>Jun-Hwan Choi, Ph.D.<br>Department of Physics and Astronomy, University of Kentucky<br>
Tel: (859) 897-6737        Fax: (859) 323-2846<br>Email: <a href="mailto:jhchoi@pa.uky.edu" target="_blank">jhchoi@pa.uky.edu</a>   URL: <a href="http://www.pa.uky.edu/~jhchoi" target="_blank">http://www.pa.uky.edu/~jhchoi</a><br>
--------------------------------------------------------------<br><br>