Re: Help with loading file into an array

2013-05-06 Thread Joshua Landau
On 5 May 2013 07:06, peter berrett wrote: > I am trying to build a program that can find comets in a series of > astronomical images. I have already written functions to find the comet in > a series of images, the data of which is stored in embedded lists. > > The area I am having difficulty with

Re: Help with loading file into an array

2013-05-05 Thread Colin J. Williams
On 05/05/2013 3:43 AM, Fábio Santos wrote: Using a nested array should waste a lot of memory. I think you should use PIL to load and read the image. > > I want to read the data from that gif file taking the red data (excluding the green and blue data) and store that in an array called Image[][

Re: Help with loading file into an array

2013-05-05 Thread Jens Thoms Toerring
peter berrett wrote: > I am trying to build a program that can find comets in a series of > astronomical images. I have already written functions to find the comet in a > series of images, the data of which is stored in embedded lists. > The area I am having difficulty with is take a standard gif

Re: Help with loading file into an array

2013-05-05 Thread Fábio Santos
Using a nested array should waste a lot of memory. I think you should use PIL to load and read the image. > > I want to read the data from that gif file taking the red data (excluding the green and blue data) and store that in an array called Image[][] which is a nested array length 1024 with a li

Help with loading file into an array

2013-05-04 Thread peter berrett
Hi all I am trying to build a program that can find comets in a series of astronomical images. I have already written functions to find the comet in a series of images, the data of which is stored in embedded lists. The area I am having difficulty with is take a standard gif file (1024 x 1024)