<div dir="ltr"><div><div><br></div>Ah, right on.  Thanks!<br><br></div>d.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 12, 2013 at 4:17 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@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 class="HOEnZb"><div class="h5">On Fri, Apr 12, 2013 at 6:13 PM, david collins <<a href="mailto:dcollins4096@gmail.com">dcollins4096@gmail.com</a>> wrote:<br>

> Hi, all--<br>
><br>
> I have a dumb projection question.<br>
><br>
> Why is it that when I do a projection, the minimum pdx is smaller than the<br>
> minimum cell width in my simulation?<br>
><br>
>>>> pf.h.get_smallest_dx()<br>
> 0.0001220703125<br>
>>>> 1./pf.h.get_smallest_dx()<br>
> 8192.0<br>
><br>
> Additionally, the sum of the areas is not what I expect.  I expect<br>
><br>
>>>> proj=pf.h.proj(0,'Density')<br>
>>>> (proj['pdx']*proj['pdy']).sum()<br>
> 0.25<br>
><br>
><br>
> I get 0.25, instead of 1 (consistent with the above, if all the widths are<br>
> down by a factor of 2.)<br>
><br>
> I assumed that proj['pdx'] is the width of the zone of the projection, which<br>
> I naievely expect to be the smallest cell width along any line of sight.<br>
><br>
> Could one of you good people fill in what I'm misunderstanding?<br>
<br>
</div></div>Sure!  pdx is halfwidth, and the px values are cell centers.  I think<br>
this is somewhere in the method paper, but there's no clear place to<br>
stick it in the documentation.<br>
<br>
-Matt<br>
<br>
><br>
> Thanks a ton!<br>
> d.<br>
><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>
_______________________________________________<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>
</blockquote></div><br></div>