Matlab Trace Format

From 2D-COS Wiki
Jump to navigation Jump to search

Matlab trace format files contain spectra series in a 2D data format where the first dimension is the spectral dimension and the second dimension represents the perturbing variable, i.e. time, pressure, temperature, spatial dimension, etc.

To load Matlab trace files select Load DataMatlab trace formatx-data, or y-data from the Load Data menu bar.

Format of a 2D-COS trace file

Variables present in a Matlab trace file

Matlab trace files contain five different variables to store the spectral data as well as relevant metadata:

  • spc – this variable contains the spectral data, a 2D array of double precision floating point values (float32). Columns indicate individual spectra of absorbance, intensity, transmittance, etc. values. The column length indicates the number of data points per spectrum. The number of columns is equal to the number of observations i.e. the number of spectra.
  • tos - A character vector of variable length which indicates the type of spectra. Examples are Transmission, Fluorescence, Raman, etc.
  • vst - A character vector of variable length indicating the type of the perturbing variable. Examples of vst: Temperature, Time, Voltage, Pressure, or Spatial variable.
  • war - A vector of float32 values with the perturbing variable: temperature, time, voltage, pressure, etc. The length of war must be equal to size(spc,2).
  • wav - A vector of float32 values, the wavenumber vector, or more general the vector of y-values (frequencies, wavenumbers, Raman shift. wavelength, or alternative variables). The length of wav must equal the number of data points per spectrum, i.e. size(wav,1) == size(spc,1). Equidistancy of the 'wav' vector is not a requirement.

Related links