Jcampreadr: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
No edit summary
imported>Donal
No edit summary
Line 9: Line 9:
===Description===
===Description===


Input is the filename of a JCAMP file to read. If omitted, the user is prompted for a file. Currently this reader will only read files of type:
Input is the filename of a JCAMP file to read. If omitted, the user is prompted for a file. The reader reads files of type:


INFRARED SPECTRUM
:ND NMR SPECTRUM,
:NMR SPECTRUM,
:INFRARED SPECTRUM,
:MASS SPECTRUM,
:RAMAN SPECTRUM,
:GAS CHROMATOGRAM,
:UV/VIS SPECTRUM.


LINK
including any files written in JCAMP-DX format (with limited support for beta version 6).


This importer adapted with permission from original code by Prof. Paul Gemperline at Eastern Carolina University. (gemperlinep@mail.ecu.edu)
This importer uses JSpecView, a Java package which enables importing of files written the JCAMP-DX format. JSpecView was developed at the Department of Chemistry of the University of the West Indies, Mona, Jamaica, WI
JSpecView is described in an article available at:[http://journal.chemistrycentral.com/content/1/1/31  JSpecView].
 
Multiple input files must contain the same axisscale for the wavelength (variables) mode. The imported files are returned in a Dataset Object.


====Optional Inputs====
====Optional Inputs====

Revision as of 12:56, 24 January 2013

Purpose

Reads a JCAMP file into a DataSet object.

Synopsis

data = jcampreadr('filename.dx',options)

Description

Input is the filename of a JCAMP file to read. If omitted, the user is prompted for a file. The reader reads files of type:

ND NMR SPECTRUM,
NMR SPECTRUM,
INFRARED SPECTRUM,
MASS SPECTRUM,
RAMAN SPECTRUM,
GAS CHROMATOGRAM,
UV/VIS SPECTRUM.

including any files written in JCAMP-DX format (with limited support for beta version 6).

This importer uses JSpecView, a Java package which enables importing of files written the JCAMP-DX format. JSpecView was developed at the Department of Chemistry of the University of the West Indies, Mona, Jamaica, WI JSpecView is described in an article available at:JSpecView.

Multiple input files must contain the same axisscale for the wavelength (variables) mode. The imported files are returned in a Dataset Object.

Optional Inputs

  • fname = specifies the file(s) to read using:
(a) a string specifying a single file to read
(b) a cell array of strings specifying multiple files to read
(c) the output of the MATLAB "dir" command specifying multiple files to read
If fname is an empty string or matrix or is not supplied, the user is prompted to identify file(s) to load.
  • options = an optional options structure. See Options below.

Outputs

  • data = a DataSet object containing the spectrum or spectra from the file (or an empty array if no data could be read)
  • wrn = a cell array of warnings issued during the reading of the file.

Options

Input 'options' is an options structure containing the following fields

  • display: [{'off'}| 'on' ] Governs display to the command line. Warnings encountered during file load will be supressed if display is 'off'.
  • waitbar: [ 'off' |{'on'}] Governs display of a progress bar when doing multiple file reading.

See Also

autoimport, asfreadr, spcreadr, xclreadr