[Numpy-discussion] how to pipe into numpy arrays?
kmichael.aye at gmail.com
Wed Oct 24 15:00:27 EDT 2012
As numpy.fromfile seems to require full file object functionalities
like seek, I can not use it with the sys.stdin pipe.
So how could I stream a binary pipe directly into numpy?
I can imagine storing the data in a string and use StringIO but the
files are 3.6 GB large, just the binary, and that will most likely be
much more as a string object.
Reading binary files on disk is NOT the problem, I would like to avoid
the temporary file if possible.
More information about the NumPy-Discussion