私は同じ質問をして、私がスヴェンの返信を読むと失望しました。あなたがファイル上に巨大な配列を持つことができず、一度に小さな断片に取り組むことができないなら、numpyがいくつかの重要な機能に欠けているように見えます。あなたのケースは、.npy形式を作成するためのオリジナルの合理的なユースケースの1つに近いようです(http://svn.scipy.org/svn/numpy/trunk/doc/neps/npy-format.txt参照)。
これで、numpy.lib.formatが実行されましたが、これは完全に役立つようです。なぜこの機能がnumpyのルートパッケージから利用できないのかわかりません。 HDF5の主な利点は、これがnumpyで出荷されることです。
>>> print numpy.lib.format.open_memmap.__doc__
"""
Open a .npy file as a memory-mapped array.
This may be used to read an existing file or create a new one.
Parameters
----------
filename : str
The name of the file on disk. This may not be a filelike object.
mode : str, optional
The mode to open the file with. In addition to the standard file modes,
'c' is also accepted to mean "copy on write". See `numpy.memmap` for
the available mode strings.
dtype : dtype, optional
The data type of the array if we are creating a new file in "write"
mode.
shape : tuple of int, optional
The shape of the array if we are creating a new file in "write"
mode.
fortran_order : bool, optional
Whether the array should be Fortran-contiguous (True) or
C-contiguous (False) if we are creating a new file in "write" mode.
version : tuple of int (major, minor)
If the mode is a "write" mode, then this is the version of the file
format used to create the file.
Returns
-------
marray : numpy.memmap
The memory-mapped array.
Raises
------
ValueError
If the data or the mode is invalid.
IOError
If the file is not found or cannot be opened correctly.
See Also
--------
numpy.memmap
"""
なぜメタデータもファイルに書き込まないのはなぜですか? –