Rows in my file are spread on multiple lines. In the following chunk of my file, row one starts from 0.0000000000000000E+00 while row two starts from 1.5625000000000000E-02. How do I read numbers from 0.0000000000000000E+00 to one before 1.5625000000000000E-02 as one row?
I am trying numpy's genfromtxt() function and pandas's read_csv() but I haven't yet been able to communicate the system what I indend to do.
#I have put quotation marks here just to indicate the start and end of rows. They
#are not part of the file.
"0.0000000000000000E+00
00000000 4.9999998882412910E-03 8.7714487508765548E-03
00000001 5.0000002374872565E-04 5.0877144875087654E-01"
"1.5625000000000000E-02
00000000 4.9999998882412910E-03 8.4622513106357884E-03
00000001 5.0000002374872565E-04 5.0864039953085094E-01"
After the correct reading, my input array would look like:
0.0000000000000000E+00 00000000 4.9999998882412910E-03 8.7714487508765548E-03 00000001 5.0000002374872565E-04 5.0877144875087654E-01
1.5625000000000000E-02 00000000 4.9999998882412910E-03 8.4622513106357884E-03 00000001 5.0000002374872565E-04 5.0864039953085094E-01