[SciPy-User] Maximum file size for .npz format?

Keith Goodman kwgoodman at gmail.com
Fri Mar 12 12:30:19 EST 2010


On Fri, Mar 12, 2010 at 9:22 AM, Paul Anton Letnes
<paul.anton.letnes at gmail.com> wrote:
> I've experienced similar issues too, but I moved to NetCDF. The only disadvantage was that I did not find any python modules that work well _and_ support numpy. Hence, I am considering moving to HDF5. Which python module would people here recommend? (Or, alternatively, did I miss a great netCDF python module that someone could tell me about?)
>
> Cheers,
> Paul.

I use h5py. I think it is great. It gives you a dictionary-like
interface to your archive. Here's a quick example:

>> import h5py
>> a = np.random.rand(1000,1000)
>> f = h5py.File('/tmp/myfile.hdf5')
>> f['a'] = a  # <-- Save
>> f.keys()
   ['a']
>> f.filename
   '/tmp/myfile.hdf5'
>> b = f['a']  # <-- Load



More information about the SciPy-User mailing list