Re: [Numpy-discussion] Using numpy.fromfile with structured array skipping some elements.

2011-06-16 Thread Sturla Molden
Den 16.06.2011 15:02, skrev Michael Klitgaard: > Now the data is read in and I can access it, but I have the 'junk' in > the array, which annoys me. > Is there a way to remove the junk data, or skip it with fromfile ? Not that I know of, unless you are ok with a loop (either in Python or C). If i

[Numpy-discussion] Using numpy.fromfile with structured array skipping some elements.

2011-06-16 Thread Michael Klitgaard
Hello, I hope this is the right mailings list for a numpy user questions, if not, I'm sorry. Im reading a binary file with numpy.fromfile() The binary file is constructed with some integers for checking the data for corruption. This is how the binary file is constructed: Timestamp       [ 12 by