[Numpy-discussion] display numpy array as image

Joe Harrington jh at physics.ucf.edu
Thu Nov 29 21:03:39 EST 2007

If you want to explore the array interactively, blink images, mess with
colormaps using the mouse, rescale the image values, mark regions, add
labels, look at dynamic plots of rows and columns, etc., get the ds9
image viewer and the xpa programs that come with it that allow it to
communicate with other programs:


Then get the Python numdisplay package, which uses xpa.  You have to get
numdisplay from inside the stsci_python package:


Just grab the numdisplay directory from within that.  Older versions of
numdisplay are standalone but don't work perfectly.  Beware, there are
outdated web sites about numdisplay on the stsci site.  Don't google!

Run ds9 before you load numdisplay.  Then you can send your python
arrays to a real interactive data viewer at will.  There are even
mechanisms to define physical coordinates mapped from the image


More information about the NumPy-Discussion mailing list