Pereadr: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
imported>Jeremy
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 29: Line 29:
                  
                  
====Outputs====
====Outputs====
*'''data''' = a DataSet object containing the spectrum or spectra from the file(s), or an empty array if no data could be read. If the input file(s) contain any peaktables these are extracted and returned in the output DataSet object's userdata field.
*'''data''' = a DataSet object containing the spectrum or spectra from the file(s), or an empty array if no data could be read.
*'''wrn''' = a cell array of warnings issued during the reading of the file.


===Options===
===Options===
Input 'options' is an options structure containing the following fields
Input 'options' is an options structure containing the following fields
*'''filetype''': <tt>[{'fsm'}| 'imp' | 'lsc' | 'sp' | 'vis']</tt> Specify the type of the data in the imported file(s).  
*'''filetype''': <tt>[{'fsm'}| 'imp' | 'lsc' | 'sp' | 'vis']</tt> Specify the type of the data in the imported file(s).  
*'''waitbar''': <tt>[ 'off' |{'on'}]</tt> Governs display of a progress bar when doing multiple file reading.
*'''multiselect''': <tt>[ 'off' |{'on'}]</tt> governs whether file selection dialog should allow multiple files to be selected and imported. Setting to 'off' will restrict user to importing only one file at a time.


===See Also===
===See Also===


[[Data Importing Formats]], [[jcampreadr]], [[spcreadr]], [[writespc]], [[xclreadr]]
[[Data Importing Formats]], [[jcampreadr]], [[spcreadr]], [[writespc]], [[xclreadr]]

Latest revision as of 14:28, 21 May 2015

Purpose

Reads PerkinElmer files into a DataSet object.

Synopsis

data = pereadr(filename,options)

Description

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

image,
line scan,
spectrum,
intensity map,
.VIS visual image

This function is implemented using code obtained from MatlabCentral PerkinElmer IR data utility [1] submitted by Ben Perston. Multiple input files must contain the same axisscale for the wavelength (variables) mode. The imported files are returned in a Dataset Object.

Optional Inputs

  • filename = 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(s), or an empty array if no data could be read.

Options

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

  • filetype: [{'fsm'}| 'imp' | 'lsc' | 'sp' | 'vis'] Specify the type of the data in the imported file(s).
  • multiselect: [ 'off' |{'on'}] governs whether file selection dialog should allow multiple files to be selected and imported. Setting to 'off' will restrict user to importing only one file at a time.

See Also

Data Importing Formats, jcampreadr, spcreadr, writespc, xclreadr