From: Russell E O. <ow...@as...> - 2004-04-16 20:40:21
|
I wrote a simple module that allows one to display numarray arrays in ds9. It is available as part of the RO package (RO.DS9) <http://www.astro.washington.edu/owen/ROPython.html>, though it is presently self-contained. (I may well end up expanding it.) It sends a copy of the data, rather than trying to share a buffer. It uses the command-line XPA interface instead of trying to use the underlying C XPA API. I'm curious if anybody has gotten a python interface to the C XPA API working. It looks a bit messy, but popen2 messy in other ways (detecting errors without hanging on read, for example). I have what is probably a dumb question, but...if I load an array using PyFits and display it using ds9, I find that the array indices appear to be transposed relative to what I expect, i.e. numarray seems to use array[yind, xind]. Is this normal? Any hints on handling notation in code (I suspect there's not much I can do except document it)? -- Russell |