Hi all,

I have a file full of 32-bit floats, in binary format, compressed with zip.
I'd like to get it into a PyTables array, but this:

    Z = ZipFile('data_file.zip')
    binary_data = Z.read('data_file')
    numpy_array = numpy.fromstring(data, dtype=float32)
    h5file.createArray('/', 'data', numpy_array)

won't work because I don't have enough memory for the intermediate stages.
Is there an easy way to do this piece-by-piece or in a 'streaming' fashion?

Thanks,
Anand Patil
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to