[yt-users] Off-axis projections using Homogenized Volumes and a weight field

Britton Smith brittonsmith at gmail.com
Sun May 6 13:20:12 PDT 2012


Hi Cameron,

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.

Britton

On Sat, May 5, 2012 at 6:35 PM, Cameron Hummels <chummels at astro.columbia.edu
> wrote:

> Hello everyone,
>
> 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?
>
> Cameron
> ______________________________**_________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/**listinfo.cgi/yt-users-**spacepope.org<http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20120506/1a2fdf44/attachment.htm>


More information about the yt-users mailing list