Automate the creation of the HDF5 files