<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 17, 2014 at 6:58 PM, Cameron Hummels <span dir="ltr"><<a href="mailto:chummels@gmail.com" target="_blank">chummels@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hey everyone,<div><br></div><div><div>Now that the righthandedness has gone into the PlotWindow objects, making slices and projections of isolated disk galaxy simulations yields the y-projection having a vertically oriented disk as seen here in an image generated by Mike Butler:</div>




<div><br></div><div><a href="http://www.ics.uzh.ch/~butler/Enzo_nofeedback_1000Myr_Sigma.png" target="_blank">http://www.ics.uzh.ch/~butler/Enzo_nofeedback_1000Myr_Sigma.png</a></div></div></div></blockquote><div><br></div>

<div>There was a change in the way slices and projections through the y axis are oriented to make the plot axis a right-handed coordinate system.  This happened in the 3.0 branch sometime in the spring.<br></div><div><br>

</div>
<div>It might be the case that the script was written before we made these changes and needs to be updated (probably by calling transpose on the raw image array for the y projections).</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div dir="ltr">
<div><div><br></div><div><br></div><div>I suppose we could modify the ProjectionPlot framework to allow a keyword to specify the x-axis and y-axis vectors, but I was just trying to make equivalent projections using the OffAxisProjectionPlot object since that allows for one to explicitly specify a north_vector.  Unfortunately, I'm finding some inconsistencies between the ProjectionPlot (on-axis) images and the OffAxisProjectionPlot images (specifying vectors to be on-axis).</div>




<div><br></div><div>This simple script demonstrates what I'm talking about:</div><div><br></div><div><a href="http://paste.yt-project.org/show/5049/" target="_blank">http://paste.yt-project.org/show/5049/</a><br></div>


<div><br></div>

<div>Running this script yields 4 images:</div><div><br></div><div>off_axis_proj.png - <a href="http://i.imgur.com/CKbq5iO.png" target="_blank">http://i.imgur.com/CKbq5iO.png</a></div></div></div></blockquote><div><br></div>


<div>It looks like something is going wrong with the raw image values in this plot.  This seems like a pretty clear bug. </div><div><br></div><div>Those values make sense for a volume density, perhaps the projection conversion is not being correctly applied?</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div><div>on_axis_proj.png - <a href="http://i.imgur.com/2iBucuv.png" target="_blank">http://i.imgur.com/2iBucuv.png</a></div>

<div>off_axis_weighted_proj.png - <a href="http://i.imgur.com/RQV2REP.png" target="_blank">http://i.imgur.com/RQV2REP.png</a></div><div>on_axis_weighted_proj.png - <a href="http://i.imgur.com/CNWHyQS.png" target="_blank">http://i.imgur.com/CNWHyQS.png</a></div>

</div></div></blockquote><div><br></div><div>I'm not terribly surprised that the image extrema aren't exactly equal here since the algorithms used to calculate the projections are very different. I think you might also need to set the no_ghost parameter to False to get a more accurate off-axis projection.</div>

<div><br></div><div>I'm not sure whether the off axis projection machinery will ever perfectly agree with the QuadTree projection, someone who is more knowledgeable about the volume renderer would need to comment on this.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>


<div><br></div><div>As you can see, the off_axis_proj is using significantly different limits than the on_axis_proj, which makes me think it isn't doing a true line integral, but I haven't investigated this closely.  While the weighted projections are better, they still have slight differences in their limits.  Is this expected and I'm just messing something up here, or is this a true bug?</div>


<span><font color="#888888">

<div><br></div><div>Cameron</div><div><br></div>-- <br>Cameron Hummels<div>Postdoctoral Researcher</div><div>Steward Observatory</div><div>University of Arizona</div><div><a href="http://chummels.org" target="_blank">http://chummels.org</a></div>





</font></span></div></div>
<br>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br></blockquote></div><br></div></div>