<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Sam,<div><br></div><div>I am using option (2) below without transpose (per your suggestion to fix the symmetric image problem)</div><div>and it does seem to point to the right (I have a bit trouble to decide exactly at which direction the galaxy </div><div>is traveling even though I have its peculiar velocity, because I do not have information about </div><div>the velocity of the volume it is in).</div><div><br></div><div>Thanks,</div><div>Renyue</div><div><br></div><div><br></div><div><br></div><div><div><div>On Jan 14, 2013, at 10:17 AM, Sam Skillman wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi Renyue,<div><br></div><div>It depends a bit on how you are saving the image, unfortunately.  If you are using a recent changeset of yt (after 2.4 where the transpose causes symmetric images on some compilers/machines), and you save with:</div>


<div><br></div><div>cam.snapshot('image1.png')</div><div>Then image1.png will have north pointing up.</div><div><br></div><div>If you did:</div><div>im = cam.snapshot()</div><div>
write_bitmap(im, 'image2.png', tranpose=False)</div><div>Then image2.png will have north pointing right.</div><div><br></div><div>If you did </div><div>im = cam.snapshot()</div><div>write_bitmap(im, 'image3.png', transpose=True)</div>


<div>Then image3.png will have north pointing up.</div><div><br></div><div>I am working on ways to make sure that it always points up by using the new ImageArray class, but have not come up with the full solution yet.  I hope that description helps.</div>

<div><br></div><div>Sam</div>
<div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jan 12, 2013 at 8:12 PM, Renyue Cen <span dir="ltr"><<a href="mailto:cen@astro.princeton.edu" target="_blank">cen@astro.princeton.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I think I am unclear about the orientation in pf.h.camera(c,W,L, ..., north=vec, ...).<br>
I  got some nice looking pictures but don't know what north means in this case,<br>
because when I switch north=vec to north=reverse of vec, the image rotates along the vertical direction,<br>
so it seems like north is pointing to either left or right.  It is very desirable for me to be able<br>
to make sure which direction vec points to (vec is the vec in north=vec) in the final rendered plot.<br>
<br>
<br>
Thanks in advance for help,<br>
Renyue</blockquote></div><br></div>
</blockquote></div><br></div></body></html>