<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:courier new,monospace">Hi all,<br><br>I'm new to yt. I have questions about making projections of certain region, and inspecting the data returned.<br>
<br>I made a cube as follows:<br>
<br><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">import pylab as pl</div><br>center = [0.5, 0.5, 0.5]<br>halfwidth = 0.005<br>cube = pf.h.region(center, center-pl.ones(3)*halfwidth, center+pl.ones(3)*halfwidth, ['Density'])<br>

<br>print min(cube['x']), max(cube['x'])<br>0.494873046875 0.505126953125<br><br>When I print cube['x'].shape, I get (10728,).<br>I tried to make a projection of this cube along z-axis as follows:<br>

<br>proj2 = pf.h.proj(2, 'Density', center=center, source=cube)<br><br>But I could not understand what is returned.<br><br>print min(proj2['p</span><div class="gmail_default" style="display:inline"><span style="font-family:courier new,monospace"></span></div>

<span style="font-family:courier new,monospace">x']), max(proj2['py']), proj2['px'].shape<br>0.00390625 0.99609375 (19648,)<br><br>print proj2['Density']<br>[ 0.  0.  0. ...,  0.  0.  0.]<br><br>

<div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">My questions are:<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">1. What exactly is returned in proj2? Why does it span from 0. to 1. when I specified source=cube?<br>

</div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline"><br>2. I also tried 'data_source=cube' instead of 'source=cube'. It did not raise any error, and returned<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">

something different: array of same shape, but with different data values.<br>Is this keyword also used</div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline"> for projection object? Is there a consistent difference between the two keywords in yt?<br>

</div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline"><br>3. I could not find documentation on some fields like 'px', 'py' that seem to be generated for certain data containers<br>

(e.g., 't' for ray objects). Is there an exhaustive list of such fields in the documentation?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">Thanks in advance.<br><br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif;display:inline">Semyeong<br></div></span></div></div>