saving attributes to hdf