[SciPy-User] Maximum file size for savemat?

Pauli Virtanen pav at iki.fi
Tue Aug 20 14:00:05 EDT 2013


20.08.2013 20:33, Michal Romaniuk kirjoitti:
[clip]
> Are there any good alternatives to .mat files? (Preferably
> something that Matlab could read too.) PyTables?
> 
> The data consists of one large array (around 9GB), one list
> containing a few smaller arrays, and a few other arrays and
> scalars.

Use HDF5 --- both Matlab and Python can work with it. On the Python
side use either h5py or PyTables, depending on which one you like more.

As you found out, the .mat file format simply does not support data
bigger than 4 GB. The development version of Scipy (to be 0.13.0)
should throw a warning AFAIK.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list