Hi Irina,<br><br>It would be more correct to use weight_field='CellMassMsun' with a density profile since what the profile is actually doing is adding up the field values for all the cells inside a spherical shell.  Adding the weight field tells the profiler to calculate the weighted mean value instead of simply taking the sum.  Anything like density or temperature for which a simple sum is meaningless should have a weight field.<br>
<br>The weight_field=None in the manual is a typo.  I will change it and the next time the docs are rebuilt this will be reflected.  You can also view the docs locally by unzipping the file docs_html.zip in the doc directory of the yt install.<br>
<br>The halo profiler can essentially do two things: profiling and projections.  You can profile or project any field that yt makes available to you.  The halo profiler also has functionality for filtering halos based on the profiles.  All of this is discussed in detail in the halo profiler documentation: <a href="http://yt.enzotools.org/doc/extensions/halo_profiling.html">http://yt.enzotools.org/doc/extensions/halo_profiling.html</a><br>
<br>Britton<br><br><div class="gmail_quote">On Sun, Jul 25, 2010 at 8:30 AM, Irina Dvorkin <span dir="ltr"><<a href="mailto:irina@wise.tau.ac.il">irina@wise.tau.ac.il</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello All,<br>
<br>
I'm trying to use the halo profiler, without much success.<br>
If I want to plot the density, do I need to use the weight_field?<br>
It says weight_field=None in the manual, but weight_field='CellMassMsun' in the cookbook.<br>
Is it the same for Dark_Matter_Density?<br>
<br>
Also, where can I see a list of things the halo profiler can in principle do? I coudn't find it on the site.<br>
<br>
Thanks a lot for your help,<br>
Irina<br>
<br>
_______________________________________________<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/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br>