h5py create_dataset add another hdf5 file code example Example: get array from h5py dataset arr = np.zeros(dataset.shape) dataset.read_direct(arr)