copy_to_hdf