eprload
Introduced in 0.99
Synopsis

Load spectral data from files in common EPR data formats.

Data = eprload(FileName)
[Data,Params] = eprload(FileName)
... = eprload(FileName,'parse')
Description

This function loads real or complex spectral data from files in common data formats of EPR spectrometers. Data contains the spectral data, and Params is a structure containing the entries from the associated parameter file, if it exists.

FileName is the filename to be loaded. If FileName is a directory, a file selection dialog box is displayed. If no FileName is given, the current directory is used as default.

If 'parse' is given, all string fields in Params containing numbers are converted to numbers. E.g., Params.XPTS='1024' is converted to Params.XPTS=1024. In addition, 'True' is converted to 1, and 'False' is converted to 0.

Formats are identified by the extension of the file name specified in FileName, which can be either the data file or the parameter file extension. If no extension is given, DTA is assumed. Supported formats are listed in the next table.

ExtensionFormatParameter files
DTABruker BES3TDSC
spcBruker ESP, WinEPRpar
d01SpecManexp
spk,resVarian-
ECOqese, tryscore-
PLTMAGRES-
d00ESE WIS/ETHexp

Depending on the nature of the data, a real or complex 1D, 2D or 3D array is returned in Data.

Note that BES3T files stored in ASCII format cannot be read by eprload. In this case and for any other plain ASCII formats use MATLAB's textread function.

Examples

To load and display a cw EPR spectrum stored in BES3T format in the files myspec.DTA and myspec.DSC, type

[spec,pars] = eprload('myspec');
plot(spec);
title(sprintf('mw frequency %g GHz',pars.MWFQ/1e9));