xdf: utilities to read and convert xdf to hdf5

class tesfdmtools.hdf.xdf.Xdf(path=None, filename=None, noise=False, noiselength=0)[source]

Read old format XDF file.

Kwargs:
  • path = path where file can be selected when filename is None.

  • filename = xdf file to be read. When None, query for file.

  • noise = if True, read noise data from first record

  • noiselength = length of noise data

Iterator class.

Returns:
  • Dictionary with the record data

Example of use:

xfile=Xdf()
for record in xfile:
   ...process record...
tesfdmtools.hdf.xdf.printcarray(array, key=None, cw=10)[source]

Print compound data array

Args:
  • array = the compound data array

Kwargs:
  • key = array of keys to be printed. If None print all keys

  • cw = character width of columns to be printed

tesfdmtools.hdf.xdf.xdf2hdf(infile, outfile)[source]

Convert xdf input file to hdf5 output file

Args:
  • infile = filename of xdf input file

  • outfile = filename of hdf5 output file