Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-21 Thread Aradenatorix Veckhom Vacelaevus
Hi: Mmm you're right, but now I'm in a hurry, and it's urgent to finish the visualization, so I could solve my problem now importing data in MS Excel and it worked! Of course I wanna do myself with a script for future cases, but now I have what I need. Thanks everybody for your helping, see you s

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-21 Thread Olivier Delalleau
There are free file hosting services you can google up. -=- Olivier 2011/5/20 Aradenatorix Veckhom Vacelaevus > Hi again: > > Thanks Olivier, I understood you only wanna show me a way for solve my > problem. I'm reading about the options in python for files and stuff. I > think is better to wri

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-20 Thread Aradenatorix Veckhom Vacelaevus
Hi again: Thanks Olivier, I understood you only wanna show me a way for solve my problem. I'm reading about the options in python for files and stuff. I think is better to write a code for solve our problems, but I found very useful the genfromtxt tool so I want to use it if I can't I have to pars

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-20 Thread Bruce Southey
On Fri, May 20, 2011 at 8:22 AM, Olivier Delalleau wrote: > StringIO(data_file_name) will not read your file, it will just allow you to > read the string data_file_name. You can probably just use > open(data_file_name) (and yes,you'll probably need to open it for each call > to genfromtxt). > Sorr

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-20 Thread Olivier Delalleau
StringIO(data_file_name) will not read your file, it will just allow you to read the string data_file_name. You can probably just use open(data_file_name) (and yes,you'll probably need to open it for each call to genfromtxt). Sorry my script didn't work, I definitely didn't expect it to work right

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-19 Thread Aradenatorix Veckhom Vacelaevus
Thanks both for your helping: I was checking the script fro Olivier but doesn't works yet, later I tried with the asciitable package but I also never could read any of my files (finally I decide create a single file for each case, it means to get 2 arrays for each domain). I was reading a while a

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-18 Thread Derek Homeier
On 19.05.2011, at 12:47AM, Aradenatorix Veckhom Vacelaevus wrote: > I have a file in simple text with information obtained in Fortran 77 and I > need to use the data inside for visualize with Mayavi. I was fighting for a > while with the VTK simple legacy format. Finally I could run an small >

Re: [Numpy-discussion] How can Import DATA from a Fortran file

2011-05-18 Thread Olivier Delalleau
Seems like something the following would work (it's not particularly efficient nor elegant though, and there may be some stupid bug since I didn't actually try it). Also, there may be some more appropriate numpy structure to handle named columns (the example below computes separately a basic numpy

[Numpy-discussion] How can Import DATA from a Fortran file

2011-05-18 Thread Aradenatorix Veckhom Vacelaevus
Hi everybody: I have a file in simple text with information obtained in Fortran 77 and I need to use the data inside for visualize with Mayavi. I was fighting for a while with the VTK simple legacy format. Finally I could run an small example, but now I need to select specific information from th