size of space array created according to data size comparison of buf and hdf5 datatype|first working version