[SciPy-user] loadtxt error

Pauli Virtanen pav at iki.fi
Wed Apr 23 10:50:42 EDT 2008


Wed, 23 Apr 2008 16:44:16 +0200, Nils Wagner wrote:

> On Wed, 23 Apr 2008 09:31:06 -0500
>   "Dharhas Pothina" <Dharhas.Pothina at twdb.state.tx.us>
> wrote:
[clip]
>> I have an ascii text file with the format :
>> 
>> year month sumprcp(in)
>> 1976 01 2.07
>> 1976 02 0.76
>> 1976 03 2.53
>> 1976 04 2.25
>> ...
>> 
>> When trying to read it with the function loadtxt() I am
>>getting an error :
>> in iPython I type :
>> 
>> from numpy import *
>> year,month,data =
>>loadtxt('portarthurcity_monthlyprecip.txt',skiprows=1,unpack=True)
>> 
>> I get the error :

No problem here either, with numpy 1.0.4. Is there garbage later on in 
the file?

-- 
Pauli Virtanen




More information about the SciPy-User mailing list