[SciPy-User] re[SciPy-user] ading time series file using tsfromtxt

Solomon M Negusse solomon.negusse@twdb.state.tx...
Thu Apr 8 16:49:33 CDT 2010

I'm trying to read a time series of stream discharge using ts.genfromtxt.
The file looks like:

#agency_cd	site_no	datetime	02_00060_00003	02_00060_00003_cd
#5s	15s	16d	14n	10s
agency	  station	  1940-07-01	    1700	A 
agency	  station       1940-07-02	    350   	A

I'm trying to read in the third 'date' column and the 4th  'data' column

dateconverter = lambda y:

flowts = ts.tsfromtxt('file', comments='#',datecols=2,

This is returning an error 
Line #25309 (got 3 columns instead of 2). 

I'm fairly new with python and I'm hoping this will be a quick fix for the
experienced users here. I appreciate
any help I can get on this.


View this message in context: http://old.nabble.com/reading-time-series-file-using-tsfromtxt-tp28185028p28185028.html
Sent from the Scipy-User mailing list archive at Nabble.com.

More information about the SciPy-User mailing list