Tweaking the HDF5 file creation and attributes