code: def dump(self):
          
          f = h5py.File(self.h5file, 'w')
          for i, k in enumerate(self.kwslist):
              v = self.h5data[:, i]
              dset = f.create_dataset(k, shape=v.shape, dtype=v.dtype)
              dset[...] = v
          f.close()
docs: dump extracted data into a single hdf5file,
  
          :return: None
          :Example:
  
  
          >>> # dump data into an hdf5 formated file
          >>> datafields = ['s', 'Sx', 'Sy', 'enx', 'eny']
          >>> datascript = 'sddsprintdata.sh'
          >>> datapath   = './tests/tracking'
          >>> hdf5file   = './tests/tracking/test.h5'
          >>> A = DataExtracter('test.sig', *datafields)
          >>> A.setDataScript(datascript)
          >>> A.setDataPath  (datapath)
          >>> A.setH5file    (hdf5file)
          >>> A.extractData().dump()
          >>>
          >>> # read dumped file
          >>> fd = h5py.File(hdf5file, 'r')
          >>> d_s  = fd['s'][:]
          >>> d_sx = fd['Sx'][:]
          >>>
          >>> # plot dumped data
          >>> import matplotlib.pyplot as plt
          >>> plt.figure(1)
          >>> plt.plot(d_s, d_sx, 'r-')
          >>> plt.xlabel('$s$')
          >>> plt.ylabel('$\sigma_x$')
          >>> plt.show()
  
          Just like the following figure shows:
  
          .. image:: ../../images/test_DataExtracter.png
              :width: 400px