[Numpy-discussion] Fastest way to parsing a specific binay file
Gökhan Sever
gokhansever at gmail.com
Wed Sep 2 12:53:52 EDT 2009
On Wed, Sep 2, 2009 at 10:34 AM, Sturla Molden <sturla at molden.no> wrote:
> Gökhan Sever skrev:
> > What would be wisest and fastest way to tackle this issue?
> Get the format, read the binary data directly, skip the ascii/regex part.
>
> I sometimes use recarrays with formatted binary data; just constructing
> a dtype and use numpy.fromfile to read. That works when the binary file
> store C structs written successively.
>
> Sturla Molden
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
How to use recarrays with variable-length data fields as well as metadata?
Eventually I will record the data with numpy arrays but not sure how to
utilize recarrays in the first stage.
--
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090902/483bdf3b/attachment.html>
More information about the NumPy-Discussion
mailing list