Hi Cameron,<br><br>I don't know what's going on in that code, but it sounds like maybe the projection of the weight field, which goes in the denominator, is calculating zeros.  One thing you could do until we find out what's wrong is to make unweighted projections of custom fields that are (Field * Weight_Field) and Weigh_Field and then do the division on your own.<br>
<br>Britton<br><br><div class="gmail_quote">On Sat, May 5, 2012 at 6:35 PM, Cameron Hummels <span dir="ltr"><<a href="mailto:chummels@astro.columbia.edu" target="_blank">chummels@astro.columbia.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I'm currently trying to generate an off-axis projection using a homogenized volume as an input, instead of the default kd-tree method.  I have no problems using this method, until I try to add a weight field to the projection, then it simply returns "Inf" values for each pixel.  I checked, and the exact same source using the kd-tree method works with no problems (it's just slower because I'm running this on a small subset of the overall dataset).  Do I need to do something special when I create the homogenized volume to take into account the additional weighting field?  I didn't see a function parameter for a weight in the constructor for HomogenizedVolume, and looking at the source doesn't provide any obvious clues, but perhaps I just need to code it in.  Suggestions?<br>

<br>
Cameron<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>
</blockquote></div><br>