Re: [Numpy-discussion] Creating a RGB-image from BW

2009-04-29 Thread Johannes Bauer
Hi Zach, Zachary Pincus schrieb: > According to http://www.pygtk.org/pygtk2reference/class- > gdkpixbuf.html , the pixels_array is a numeric python array (a > predecessor to numpy). The upshot is that perhaps the nice > broadcasting machinery will work fine: > > pb_pixels[...] = fits_pixels

Re: [Numpy-discussion] Creating a RGB-image from BW

2009-04-28 Thread Zachary Pincus
Hi Johannes, According to http://www.pygtk.org/pygtk2reference/class- gdkpixbuf.html , the pixels_array is a numeric python array (a predecessor to numpy). The upshot is that perhaps the nice broadcasting machinery will work fine: pb_pixels[...] = fits_pixels[..., numpy.newaxis] This might

[Numpy-discussion] Creating a RGB-image from BW

2009-04-27 Thread Johannes Bauer
Hello group, I've been redicted from usenet ("Convert numpy.ndarray into "normal" array", <75dgm1f16hqn...@mid.dfncis.de>) here and hope this is the right place. Basically, what I have is a numpy-Array which I got from a FITS-file (it's black/white). I want to display that using GTK. Therefore ev