I have a binary file which contains records of position of a plane. Each record look like:
0x00: Time, float32
0x04: X, float32 // X axis position
0x08: Y, float32 // Y axis position
0x0C: Elevation, float32
0x10: float32*4 = Quaternion (x,y,z axis and w scalar)
0x20: Distance, float32 (unused)
So each record is 32 bytes long.
I would like to get a Numpy array.
At offset 1859 there is an unsigned int 32 (4 bytes) which indicates the number of elements of the array. 12019 in my case.
I don't care (for now) header data (before offset 1859)
Array only start at offset 1863 (=1859+4).
I defined my own Numpy dtype like
dtype = np.dtype([
    ("time", np.float32),
    ("PosX", np.float32),
    ("PosY", np.float32),
    ("Alt", np.float32),
    ("Qx", np.float32),
    ("Qy", np.float32),
    ("Qz", np.float32),
    ("Qw", np.float32),
    ("dist", np.float32),
])
And I'm reading file using fromfile:
a_bytes = np.fromfile(filename, dtype=dtype)
But I don't see any parameter to provide to fromfile to pass offset.
