Page 1 of 1

A lot of errors

Posted: Mon 12 Aug 2013 6:09 am
by vaggos
Dear friends
Yesterday i try to correct in dayfile.txt a wind gust of 213 km/h. And since then, i have a lot of errors, when i start Cumulus, like that:

12/8/2013 8:43:50 πμ : Error plotting charts at line 2604 of dayfile.txt: List index out of bounds (0)
12/8/2013 8:43:50 πμ : Please correct the error by editing dayfile.txt
12/8/2013 8:43:50 πμ : Error plotting charts at line 2606 of dayfile.txt: List index out of bounds (0)
12/8/2013 8:43:50 πμ : Please correct the error by editing dayfile.txt
12/8/2013 8:43:50 πμ : Error plotting charts at line 2608 of dayfile.txt: List index out of bounds (0)
12/8/2013 8:43:50 πμ : Please correct the error by editing dayfile.txt

How i can correct that?
Thanks in advance
Vaggelis

Re: A lot of errors

Posted: Mon 12 Aug 2013 6:47 am
by steve
Do what the messages are telling you to do.

Stop Cumulus and open dayfile.txt in a good text editor like notepad++. Go to the lines mentioned and correct the errors. They will normally be obvious, e.g. blank lines, or lines with corrupted characters, which just need deleting.

Re: A lot of errors

Posted: Mon 12 Aug 2013 7:49 am
by vaggos
Thanks Steve for your answer.
I have done this before but i see that there are blank lines from the begining. In 2010. Shall i delete all of them?
Thanks

Re: A lot of errors

Posted: Mon 12 Aug 2013 7:54 am
by steve
Yes, any blank lines will cause problems.

Re: A lot of errors

Posted: Mon 12 Aug 2013 8:10 am
by vaggos
Ok Steve. Thanks. I have start.

Re: A lot of errors

Posted: Mon 12 Aug 2013 9:03 am
by vaggos
Steve,
I delete the blank lines and everything seems to be ok now.
Thanks a lot
For one another time.
Vaggelis

Re: A lot of errors

Posted: Tue 20 Aug 2013 9:37 am
by vaggos
Steve
After i edit the dayfile.txt, i see my datasummary starts from the begining and from the day i edit the txt file. Ypoy can see it here http://www.meteoacharnes.gr/statistika/datasummary.htm.
Do you imagin why?
Thanks
Vaggelis

Re: A lot of errors

Posted: Tue 20 Aug 2013 9:57 am
by steve
Whatever you used to edit the file didn't put the correct line endings on the lines. It just put CR on the end, and it should be CRLF. The script presumably relies on the correct endings to split the lines.
2013-08-20 10_53_21-C__Users_steve_Downloads_dayfile.txt - Notepad++.png

Re: A lot of errors

Posted: Tue 20 Aug 2013 10:01 am
by vaggos
Steve,
I use notepad++. Now, how i can edit that?

Re: A lot of errors

Posted: Tue 20 Aug 2013 10:27 am
by steve
Edit -> EOL conversion -> Windows format

Re: A lot of errors

Posted: Tue 20 Aug 2013 10:34 am
by vaggos
Oh nice. so simple.
Thanks a lot Steve.
Regards