[SciPy-User] Should I use pickle for numpy array?

Scott Sinclair scott.sinclair.za at gmail.com
Mon Sep 19 09:03:56 EDT 2011


On 19 September 2011 14:05, Klonuo Umom <klonuo at gmail.com> wrote:
> I'm not sure what is the best (or common) way to store numpy array to disk.
> Some even suggest HDF5, but data in question is not huge.

It's simplest to use
http://docs.scipy.org/doc/numpy-1.6.0/reference/generated/numpy.save.html
and http://docs.scipy.org/doc/numpy-1.6.0/reference/generated/numpy.load.html
if you're planning on reading it back using numpy. If you need the
data to be accessible from other software then look into more portable
formats like HDF5, NetCDF, etc, etc...

Cheers,
Scott



More information about the SciPy-User mailing list