On Thu, Feb 19, 2009 at 17:03, Frank Peacock fr...@gis4weather.com wrote:
img[ngridn,ngride]=(ncolour[0],ncolour[1],ncolour[2])
Le jeudi 19 février 2009 à 18:24 -0600, Robert Kern a écrit :
for i in range(3):
img[ngridn,ngride,i] = ncolour[i]
Is it not possible to simply use
Hello
I would like to know whether I can do the following in some other way as
this fails with setting an array with a sequence on each of the colour
arrays:
h,w=720,410
img = ones((h,w,3), uint8)*255
img[ngridn,ngride]=(ncolour[0],ncolour[1],ncolour[2])
pilImage = Image.fromarray(img,
On Thu, Feb 19, 2009 at 17:03, Frank Peacock fr...@gis4weather.com wrote:
Hello
I would like to know whether I can do the following in some other way as
this fails with setting an array with a sequence on each of the colour
arrays:
h,w=720,410
img = ones((h,w,3), uint8)*255
Many thanks Robert.
Frank
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion