Asfreadr: Difference between revisions
Jump to navigation
Jump to search
imported>Scott |
imported>Donal |
||
Line 29: | Line 29: | ||
''options'' = a structure array with the following fields: | ''options'' = a structure array with the following fields: | ||
* '''nonmatching''': [ 'error' | {'cell' | * '''nonmatching''': [ 'error' |{'matchvars'} 'cell'] governs behavior when multiple files are being read which cannot be combined due to mismatched types, sizes, etc. | ||
::: 'matchvars' returns a dataset object, | |||
::: 'cell' returns cell (see outputs, below), | |||
::: 'error' gives an error. | |||
* '''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. | * '''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. |
Revision as of 14:33, 16 June 2015
Purpose
Reads an AIT data file.
Synopsis
- x = asfreadr(filename,options)
- x = asfreadr({'filename' 'filename2'},options)
Description
ASFREADR reads an AIT spectral file (ASF, AIF, and BKH extensions).
Inputs
- filename = a text string with the name of a spectral file or a cell of strings of filenames.
- If filename is omitted or blank, the user will be prompted to select a file graphically.
- If filename is an empty cell {}, the user will be prompted to select a folder and then one or more AIT files in the identified folder.
Outputs
- x = takes one of two forms:
- If input is a single file, or multiple files containing data that can be combined (same number of data points, same x-axis range, same type of data), the output is a dataset object
- If the input consists of multiple files, but the data cannot be combined, the output is a cell array with a dataset object for each input file (see the nonmatching option defined above)
Options
options = a structure array with the following fields:
- nonmatching: [ 'error' |{'matchvars'} 'cell'] governs behavior when multiple files are being read which cannot be combined due to mismatched types, sizes, etc.
- 'matchvars' returns a dataset object,
- 'cell' returns cell (see outputs, below),
- 'error' gives an error.
- 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, asdreadr, asfreadr, fluoromaxreadr, gwscanreadr, hjyreadr, jcampreadr, opusreadr, pdfreadr, pereadr, spareadr, spcreadr, writeasf, xclreadr