Skip to content
blakejohnson edited this page Mar 22, 2013 · 4 revisions

By default, the Qlab ExpManager uses an HDF5DataHandler to write data to HDF5 (.h5) files1. The loadData() method in analysis/ can be used to read this file into MATLAB. If you want to write your own reader, the HDF5 file has the following structure:

Top level

Attributes

nbrDataSets The number of DataSet groups contained in the file

version The version number of the file format. Currently 2.0.

Elements

header A JSON struct containing the settings used to run the experiment.

/DataSet1 ... /DataSetN

Attributes

dimension The dimensionality of the data set.

name The name of the data set.

Elements

real The real part of the data array

imag The imaginary part of the data array

xpoints A vector of points representing the coordinates along the first axis of the data.

ypoints (2+ dim only) A vector of points representing the coordinates along the second axis of the data

zpoints (3+ dim only) A vector of points representing the coordinates along the third axis of the data

Notes

  1. You can supply your own data handler if it supports the same open/write/close interface.