Hi all,<div><br></div><div>So one of the main reasons why this is so messy, IMO, is that we don't have a self-describing image.  All we have is a numpy array.  Would it worthwhile to do something like create an ImageArray, which subclasses numpy ndarray? </div>

<div><br></div><div><a href="http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray">http://docs.scipy.org/doc/numpy/user/basics.subclassing.html#simple-example-adding-an-extra-attribute-to-ndarray</a></div>

<div><br></div><div>We could then append on things like x-axis, y-axis, optionally things like field names, and who knows what else?  For example:</div><div><div><a href="http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/2225815c19a844c9974838543f09e267.ipynb">http://nbviewer.ipython.org/url/hub.yt-project.org/notebooks/2225815c19a844c9974838543f09e267.ipynb</a></div>

</div><div><br></div><div>This would significantly help manage the rendering output since we lose info about the image as soon as we lose the camera.  We could additionally write a thin layer to save these images out in hdf5, looping over the info dictionary for attributes.  </div>

<div><br></div><div>Thoughts?</div><div><br></div><div>Sam<br><div><br><div class="gmail_quote">On Fri, Sep 28, 2012 at 1:00 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 all,<br>
<br>
We got an anonymous bug today.  My guess is this is related to the<br>
transpose in write_image.<br>
<br>
-Matt<br>
<div><div class="h5"><br>
<br>
---------- Forwarded message ----------<br>
From: Anonymous <<a href="mailto:issues-reply@bitbucket.org">issues-reply@bitbucket.org</a>><br>
Date: Fri, Sep 28, 2012 at 7:32 AM<br>
Subject: [yt_analysis/yt] annotate_image (issue #430)<br>
To: <a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a><br>
<br>
<br>
--- you can reply above this line ---<br>
<br>
New issue 430: annotate_image<br>
<a href="https://bitbucket.org/yt_analysis/yt/issue/430/annotate_image" target="_blank">https://bitbucket.org/yt_analysis/yt/issue/430/annotate_image</a><br>
<br>
Anonymous:<br>
<br>
Text is transposed with annotate_image.<br>
<br>
<br>
--<br>
<br>
This is an issue notification from <a href="http://bitbucket.org" target="_blank">bitbucket.org</a>. You are receiving<br>
this either because you are the owner of the issue, or you are<br>
following the issue.<br>
</div></div>_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">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>
</blockquote></div><br></div></div>