code: def print_raw_data_file(input_file, start_index=0, limit=200, flavor='fei4b', select=None, tdc_trig_dist=False, trigger_data_mode=0, meta_data_v2=True):
      
      with tb.open_file(input_file + '.h5', mode="r") as file_h5:
          if meta_data_v2:
              index_start = file_h5.root.meta_data.read(field='index_start')
              index_stop = file_h5.root.meta_data.read(field='index_stop')
          else:
              index_start = file_h5.root.meta_data.read(field='start_index')
              index_stop = file_h5.root.meta_data.read(field='stop_index')
          total_words = 0
          for read_out_index, (index_start, index_stop) in enumerate(np.column_stack((index_start, index_stop))):
              if start_index < index_stop:
                  print "\nchunk %d with length %d (from index %d to %d)\n" % (read_out_index, (index_stop - index_start), index_start, index_stop)
                  raw_data = file_h5.root.raw_data.read(index_start, index_stop)
                  total_words += print_raw_data(raw_data=raw_data, start_index=max(start_index - index_start, 0), limit=limit - total_words, flavor=flavor, index_offset=index_start, select=select, tdc_trig_dist=tdc_trig_dist, trigger_data_mode=trigger_data_mode)
                  if limit and total_words >= limit:
                      break
docs: Printing FEI4 data from raw data file for debugging.