]> Working with PMI Datafiles

Working with PMI Datafiles

The PMI toolbox normally uses its own data format (the PMI data format) for storing experimental data along with a copy of the imaging geometry. Included with the toolbox are routines for reading and writing data as PMI data formatted files. Non-PMI data file formats are not supported natively, although users are, of course, free to write their own import/export routines.

Function Summary

Syntax: [SD,data] = readPMIData(datafile);
Inputs: datafile Name of the data file to be read
Outputs: SD SD structure extracted from file
data Data portion of file
Syntax: writePMIData(SD, data, filename);
Inputs: SD SD structure describing system
data Data corresponding to SD.MeasList
filename Name of the file to be written.
Outputs: none

Detailed Descriptions

readPMIData() loads data in the PMI data format from disk into matlab. When the data is loaded in, the meta-data at the start of the file is parsed to fill in an SD structure, which is returned along with the data.

writePMIData() takes a matrix containing data and an SD structure describing the data and writes the data to disk in a PMI formated datafile. The measurement list in the SD must match the data matrix. This would be used, for example, to convert data from an external file format into PMI data format.