storing area statistics in an HDF5 attribute to avoid recalulation