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!

2
  • What did you try? Did you try the function createArray? Commented May 8, 2012 at 4:36
  • How did you get the other arrays into the HDF5 file? Commented May 8, 2012 at 17:07

1 Answer 1

2

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

File.createArray('/','a', numpyArray)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.