[Scilab-users] Find the error -line length
Rafael Guerra
jrafaelbguerra at hotmail.com
Tue Nov 28 18:58:44 CET 2017
In Win7 Scilab 6.0.0 it only worked with Jan's recommendation (replacing -999 to -9), with or without header.
The original file seems to have numeric data lines with total number of characters varying from 3270 to 4172 per row.
There must be a limitation somewhere, in Windows or Scilab 6.0.0 ?
[cid:image001.jpg at 01D3687A.E8881E90]
Regards,
Rafael
-----Original Message-----
From: users [mailto:users-bounces at lists.scilab.org] On Behalf Of Jan Åge Langeland
Sent: Tuesday, November 28, 2017 6:39 PM
To: Users mailing list for Scilab <users at lists.scilab.org>; Richard llom <richard.llom at gmail.com>
Subject: Re: [Scilab-users] Find the error -line length
On 28.11.2017 17:53, Jan Åge Langeland wrote:
>
>
> On 28.11.2017 15:30, Richard llom wrote:
>> Hello,
>> when trying to read in this file:
>> ftp://ftp-cdc.dwd.de/pub/CDC/grids_germany/monthly/radiation_direct/grids_germany_monthly_radiation_direct_201706.zip
>>
>> with:
>> M = fscanfMat('grids_germany_monthly_radiation_direct_201706.asc')
>>
>> I'm getting an error message. I suppose there is something wrong in that
>> file, but what and where exactly?
>>
>> Not directly a Scilab problem (except for the fact that the 'fscanfMat'
>> error message could be more verbose), but maybe someone here has an
>> idea how
>> to find the error...
>>
>> Thanks
>> richard
>>
> This is what I get when using csvRead. It seems to be OK up to row
> 558(after the header) - I renamed the file t.txt.
>
> mmm=csvRead("t.txt"," ",[],[],[],[],,28);
> Warning: Inconsistency found in the columns. At line 559, found 1307
> columns while the previous had 654.
>
> csvRead: can not read file t.txt: Error in the column structure
>
> Jan
It has to do with the line length , try to replace -999 with -9
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171128/c49cbf5b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 10634 bytes
Desc: image001.jpg
URL: <https://lists.scilab.org/pipermail/users/attachments/20171128/c49cbf5b/attachment.jpg>
More information about the users
mailing list