<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; white-space: pre-wrap; ">OK.</span><span class="Apple-style-span" style="font-size: 12pt; "><font class="Apple-style-span" face="'Times New Roman'"><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'">na.flipud restores the correct image.</font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'">If I understand correctly, this is a problem of write_image only, right?</font></pre></font></span><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; white-space: pre-wrap; "><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: 16px; white-space: pre-wrap; "><br></span></div>If I am manipulating frb["Temperature"] to compute, say, a 2D radial profile, I don't have to flip the array, right?</span><span class="Apple-style-span" style="font-size: 12pt; "><font class="Apple-style-span" face="'Times New Roman'"><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'">Essentially, FixedResolutionBuffer gives me the correct array and write_image flips it... ?</font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'">One last question. This problem happens whenever I call any write_**** in yt?</font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; "><font class="Apple-style-span" face="'Times New Roman'"><br></font></pre><pre style="white-space: pre-wrap; ">_______________________________________</pre><pre style="white-space: pre-wrap; ">>Hi Massimo,</pre><pre style="white-space: pre-wrap; "><br></pre><pre style="white-space: pre-wrap; ">
>This is due to how bitmaps of an image are written.  Right now it makes the
>upper left corner of the image the (0,0) origin of the data.  There are two
>ways to deal with this.  You can either flip the image vertically, using
>something like na.flipud(na.log10(frb1["Temperature"])) or do your plotting
>directly through matplotlib.  Something like:
<br></pre><pre style="white-space: pre-wrap; ">
>import matplotlib.pylab as pl
>pl.imshow(na.log10(frb1["Temperature"]), origin='lower')
<br></pre><pre style="white-space: pre-wrap; ">
>I'm not completely sure, but I'm guessing the origin='lower' keyword does
>something similar to na.flipud.  As a side note, this behavior has come up
>in a few other places recently, and we're trying to determine a nice way to
>handle the behavior.
<br></pre><pre style="white-space: pre-wrap; ">
>Hope that helps,
>Sam</pre></font></span><div><div dir="ltr"><div><div dir="ltr">                                         </div></div>                                        </div></div>                                        </div></body>
</html>