overwrite previous hdf file