Matlab Trace Format: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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. <br> To load Matlab trace files select ''Load Data'' → ''Matlab trace format'' → ''x-data'', or ''y-data'' from the ''Load Data'' menu bar. <br> <br> == Format of a 2D-COS trace file == File:trace-file-format.jpg|...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 14: | Line 14: | ||
* ''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). | * ''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. | * ''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. | ||
== Download test file == | |||
Download Matlab trace file ''linescandata.mat'': [http://www.peter-lasch.de/2dcorr/linescandata.mat https://wiki2dcos.microbe-ms.com/linescandata.mat]<br> | |||
== Related links == | == Related links == | ||
* [[Matlab_Imaging_Format|Import data in the imaging format (Matlab)]] | * [[Matlab_Imaging_Format|Import data in the CytoSpec imaging format (CytoSpec/Matlab)]] | ||
* [[Excel_Trace_Format|Import data in the MS Excel data format]] | |||
* [[Format_of_a_2D-COS_Result_File|Format of a 2D-COS result file (Matlab)]] | * [[Format_of_a_2D-COS_Result_File|Format of a 2D-COS result file (Matlab)]] |
Latest revision as of 17:20, 2 April 2023
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 Data → Matlab trace format → x-data, or y-data from the Load Data menu bar.
Format of a 2D-COS 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.
Download test file
Download Matlab trace file linescandata.mat: https://wiki2dcos.microbe-ms.com/linescandata.mat