<div>Geoffrey, if it helps, in the continuum limit, a weighted projection along the z direction is (v is the field, w is the weight):</div><img src="cid:ii_137dd3ea98415ab1" alt="Inline image 1"><br><div>whereas unweighted is:</div>


<div><img src="cid:ii_137dd3907c1ef20d" alt="Inline image 4"><br>
For your example, the order of magnitude of your result would be O(density)**2*O(L)/O(density)*O(L) = O(density) for the weighted projection.  The unweighted is just O(density)*O(L).</div><div><br></div><div>Sam<br><br><div class="gmail_quote">



On Mon, Jun 11, 2012 at 2:12 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">



Hi Geoffrey,<br>
<div><div><br>
On Mon, Jun 11, 2012 at 4:10 PM, Geoffrey So <<a href="mailto:gsiisg@gmail.com" target="_blank">gsiisg@gmail.com</a>> wrote:<br>
> Hi, sorry for asking a dumb question, but when I do a projection of density<br>
><br>
> field = "Density"<br>
> proj = pf.h.proj(direction, field, weight_field=field)<br>
><br>
> the numbers I get are ~1e-28<br>
><br>
> but when I do<br>
> proj = pf.h.proj(direction, field, weight_field=None)<br>
><br>
> the numbers become ~1e-4<br>
><br>
> this is a 64 cube simulation, if I were to multiply 64 * 1e-28 for a<br>
> projection with no weighting, shouldn't I still get numbers on the order of<br>
> 1e-26 or 1e-27?  I'm guessing there's something I've misunderstood about<br>
> pf.h.proj.  Am I missing like a CGS conversion factor when I don't weight it<br>
> by some field?<br>
<br>
</div></div>Nope, weighting means to take the average with respect to some other<br>
field.  So when you don't weight it, you don't take an average, you<br>
get a line integral.  It's probably different by a factor of roughly<br>
the same OOM as the number of centimeters your box is across.<br>
<br>
-Matt<br>
<br>
><br>
> From<br>
> G.S.<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>
><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></div>