Re: [Tutor] [tutor] File format conversion

2007-11-13 Thread Varsha Purohit
Hello Alan, It is a file having colour data grid.. just like any simple ascii file and i need to manipulate the numbers with colours. But at this stage i am not much bothered with colurs i can associate it with simple RGB value for all different numbers. ex. of such simple file can be like thi

Re: [Tutor] [tutor] File format conversion

2007-11-12 Thread Alan Gauld
"Varsha Purohit" <[EMAIL PROTECTED]> wrote > In one application i want to convert format of ascii file to > binary file. That depends entirely on what the ASCII file contains. Is it a comma separated list of RGB values? Or is it a uuencode of the binary data? Or something else... > And us

[Tutor] [tutor] File format conversion

2007-11-11 Thread Varsha Purohit
Hello All, In one application i want to convert format of ascii file to binary file. And using that binary file in a function of PIL i can convert it to an image file. So i wanted to know how to convert the file format in python... is it possible by Numpy ?? And is there any other alternativ