0

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!

l.z.lz
  • 393
  • 1
  • 4
  • 13

1 Answers1

2

You can use createArray on the file object to do that (or if you need compression use createCArray/createEArray):

File.createArray('/','a', numpyArray)
Ümit
  • 17,379
  • 7
  • 55
  • 74