[Tutor] read text file in zip archive, process, plot

Washakie washakie at gmail.com
Sun Apr 15 18:38:35 CEST 2007


Thanks so much! Now another task, associated with this one... what I
actually ultimately want is to just pull out several fields from the text
file in the zip archive (there is actually only one file).. so, my goal is
the to create a file that looks like:

t[0], x[0], y[0]
t[1], x[1], y[1]
t[2], x[2], y[2]
t[3], x[3], y[3]
...
t[:], x[:], y[:]

Note, these would actually be strings representing the values... and I'm not
trying to do the header yet... :s

I've tried OUT = [t,x,y ]
but when I write it out, it seems to go through all of t first, then x, then
y...
i'm having a really hard time switching my thinking away from matlab array
processing which I think is part of my problem!! I read a discussion last
night that I thought was interesting:
http://mail.python.org/pipermail/python-list/2002-December/174954.html

It was this point that made me start to think I need to 'rethink' how I'm
going about things... but argh!! ... how to teach an old dog new tricks!

-j



>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070415/a43f0d15/attachment.html 


More information about the Tutor mailing list