[Baypiggies] Raw file input and python

Fernando Perez fperez.net at gmail.com
Sat Feb 12 22:56:56 CET 2011

On Sat, Feb 12, 2011 at 12:29 PM, Jeremy Fishman
<jeremy.r.fishman at gmail.com> wrote:
> A combination of struct and numpy can be useful as well.

Absolutely.  And if your data items past a certain header are made of
some kind of regular pattern that goes beyond simple ints or floats,
you can always define a custom dtype so that you can read the whole
thing into a single array of the proper dimensionality and with nicely
named fields for your problems.

This approach is very useful and can make quick work of complex (as
long as they are regular enough to match the strided model of numpy
arrays) datasets.



More information about the Baypiggies mailing list