Jcampreadr: Difference between revisions
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. | 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. | |||
including any files written in JCAMP-DX format (with limited support for beta version 6). | |||
This importer | 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 11: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.