Drop the @ b1r3k answer to create an array that you wonโt have access to immediately (i.e. it will remember all this), you want to use CArray
(Chunked Array). The idea is that you would then fill out and get access to it gradually:
import numpy as np import tables as tb ndim = 60000 h5file = tb.openFile('test.h5', mode='w', title="Test Array") root = h5file.root x = h5file.createCArray(root,'x',tb.Float64Atom(),shape=(ndim,ndim)) x[:100,:100] = np.random.random(size=(100,100))
Joshdel
source share