Format of a 2D-COS Result File: Difference between revisions

From 2D-COS Wiki
Jump to navigation Jump to search
(Created page with "400px|thumb|Variables present in a result file stored by the mat2dcos toolbox ''So called'' 2D-COS result files can be stored by choosing the option ''save 2D spectrum'' from the ''File'' menu bar of the 2D-COS main window (2D-COS Main Figure). <br> To open a 2D-COS result file start Matlab, cd to the respective directory and type then<br> >> load('name_of_res_file'); at the command prompt. This w...")
 
Line 25: Line 25:


* [[Matlab_Imaging_Format|Import data in the imaging format (Matlab)]]
* [[Matlab_Imaging_Format|Import data in the imaging format (Matlab)]]
* [[Excel_Trace_Format|Import data in the MS Excel data format]]
* [[Matlab_Trace_Format|Import data in the trace format (Matlab)]]
* [[Matlab_Trace_Format|Import data in the trace format (Matlab)]]

Revision as of 16:59, 2 April 2023

Variables present in a result file stored by the mat2dcos toolbox

So called 2D-COS result files can be stored by choosing the option save 2D spectrum from the File menu bar of the 2D-COS main window (2D-COS Main Figure).

To open a 2D-COS result file start Matlab, cd to the respective directory and type then

   >> load('name_of_res_file');

at the command prompt. This will create a new structure array twoddata containing the following fields:

  • data - the 2D correlation spectrum computed by utilizing the actual settings (spectral regions for 2D-COS analysis, type of reference spectrum, etc.). Of note, data is an array of float32 values of dimensions [nptsx, nptsy] with nptsx being the number of spectral data points in x and nptsy denoting the number of spectral data points in y
  • xwv - the spectral vector x (float32 values) with a length of nptsx
  • ywv - the spectral vector y (float32 values) with a length of nptsy
  • spcx - the 2D spectra array (x) a matrix of float32 values with the dimensions [nobs, nptsx], nobs corresponds to the number of observations (i.e. of spectra)
  • spcx - the 2D spectra array (y) a matrix of float32 values with the dimensions [nobs, nptsy], nobs corresponds to the number of observations (i.e. of spectra)
  • info - a char array denoting the type of 2D correlation spectrum (synchronous, asynchronous, disrelation, Pareto, etc.)
  • xpts - a set of two float32 values representing the first and last spectral data point of the x-vector used in the current 2D-COS analysis
  • ypts - a set of two float32 values representing the first and last spectral data point of the y-vector used in the current 2D-COS analysis


Related links