I have two sliced Numpy arrays stored in memory, say a and b, shape 1*480*640, how can I add them to an existing HDF5 file in PyTables? The existing HDF5 file has three arrays: n1,n2,n3, I want the new HDF5 file to have 5 arrays: n1,n2,n3,a,b . Thx!
1 Answer
You can use createArray on the file object to do that (or if you need compression use createCArray/createEArray):
File.createArray('/','a', numpyArray)
createArray?