Autoexport: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Jeremy
(Created page with "===Purpose=== :Exports Data or other object to a specified file format. ===Synopsis=== :autoexport(data,''filename'',''format'') ===Description=== Automatically exports the ...")
 
 
(One intermediate revision by one other user not shown)
Line 13: Line 13:


File format can be one of:
File format can be one of:
:'''Format''' '''Description'''
 
:csv       Comma-Separated Values file
{| class="wikitable" border="1"
:mat       Matlab MAT file
|+
:asf       Analect Spectral File
! Format!! Description
:xml       eXtended Markup Language file
|-
| csv ||Comma-Separated Values file
|-
| mat|| Matlab MAT file
|-
| asf|| Analect Spectral File
|-
| spc|| Galactic SPC File
|-
| xml|| eXtended Markup Language file
|}


If both filename and format are omitted, the user is prompted for a file name and format to save to.
If both filename and format are omitted, the user is prompted for a file name and format to save to.

Latest revision as of 13:15, 25 February 2022

Purpose

Exports Data or other object to a specified file format.

Synopsis

autoexport(data,filename,format)

Description

Automatically exports the given DataSet (or other object) to a file of the specified type. If only a file format is given, the user is prompted to name the output file. If only a filename is given, the extension of the file is used to identify the file format. If both a filename and a file format are given, the specified file format is used no matter what the extension of the filename.

File format can be one of:

Format Description
csv Comma-Separated Values file
mat Matlab MAT file
asf Analect Spectral File
spc Galactic SPC File
xml eXtended Markup Language file

If both filename and format are omitted, the user is prompted for a file name and format to save to.

See Also

autoimport, editds, encodexml, writeasf, writecsv