<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">This problem has been around for a while, with or without yt.  In the radial profiles I think it's obvious that two problems arise that you're seeing here.  First is what was described earlier in the thread, which is that unless you include the position of the zone centers in the range of the radial criteria it gives NaNs.  We talked in the past about taking fractional zone values etc as a fix (pre-yt). The second is if the inner bins are too narrow they sometimes exclude either all, or all but a few zone centers, which makes the profiles choppy.<div><br></div><div>What observers do is bin the profiles based on the photon statistics (in the case of the X-ray), which can be approximated by some logarithmic binning typically.  This can be calculated simply given the average surface brightness profiles.  However, that isn't exactly analogous, as all objects are different as far as their surface brightness profiles. </div><div><br></div><div>I'm also surprised about britton's fix (that it didn't work I mean).  It seems to me that should work, unless the spherical shells for averaging outside that are just too narrow.</div><div><br></div><div>Eric<br><div><div>On Apr 19, 2011, at 10:44 PM, Britton Smith wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi everyone,<br><br>Britton here.  I tried changing the value of r_min to 3 x the smallest dx and it didn't seem to fix the problem, which I am somewhat confused by.  However, I think setting end_collect to True is just fine.  I'm for it.<br> <br>Britton<br><br><div class="gmail_quote">On Tue, Apr 19, 2011 at 3:43 PM, Stephen Skory <span dir="ltr"><<a href="mailto:s@skory.us">s@skory.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Matt,<br> <div class="im"><br> > Or you could turn on end_collect, which should be 100% fine for a<br> > sphere whose limits are defined as some really, really small radius<br> > and the radius of that sphere.  end_collect only becomes a problem<br> > when your object is not pre-constraining your values.<br> <br> </div>I think that this is a good solution because it may better match what<br> observers do. Britton, I think that this should be on by default, what<br> do you think? Otherwise, it should be a parameter to the halo<br> profiler.<br> <font color="#888888"><br> --<br> </font><div class="im">Stephen Skory<br> <a href="mailto:s@skory.us">s@skory.us</a><br> </div><div class="im"><a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br> <a href="tel:510.621.3687" value="+15106213687">510.621.3687</a> (google voice)<br> _______________________________________________<br> </div><div><div></div><div class="h5">Yt-dev mailing list<br> <a href="mailto:Yt-dev@lists.spacepope.org">Yt-dev@lists.spacepope.org</a><br> <a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br> </div></div></blockquote></div><br> _______________________________________________<br>Yt-dev mailing list<br><a href="mailto:Yt-dev@lists.spacepope.org">Yt-dev@lists.spacepope.org</a><br>http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org<br></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Eric Hallman</div><div>Google Voice: (774) 469-0278</div><div><a href="mailto:hallman13@gmail.com">hallman13@gmail.com</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>