batch read/write hdf