Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Hansen, Mike
> [mailto:[EMAIL PROTECTED] On Behalf Of Kelvin Gorospe > > Sorry, I need to stop doing this... Attached is the script > that I forgot to attach in my last email to the list. Thanks again, K > > > On Fri, Apr 18, 2008 at 11:22 AM, Kelvin Gorospe > <[EMAIL PROTECTED]> wrote: > > > H

Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread linuxian iandsd
if you only want to start a loop to parse all files in a directory try something like this: import glob > > n=0 > for file in > glob.glob('/Users/Kelvin/TEMPDATASET/CLEANEDFIELDDATA/WEST/*'): > n=n+1 > new_output_file='/Users/Kelvin/TEMPDATASET/PCA/'+ str(n) + '.txt' > output = open(new_output_

Re: [Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Kelvin Gorospe
Sorry, I need to stop doing this... Attached is the script that I forgot to attach in my last email to the list. Thanks again, K On Fri, Apr 18, 2008 at 11:22 AM, Kelvin Gorospe <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm new to Python AND programming and would appreciate any help anybody

[Tutor] Reading Multiple Files in Sequence

2008-04-18 Thread Kelvin Gorospe
Hi everyone, I'm new to Python AND programming and would appreciate any help anybody has to offer. I have several .csv files that contains temperature data taken at several different locations. Each line in the csv file is a list such as this: timestamp at location 1, temperature at location 1, t