Click or drag to resize

OmnicSPAImporter Class

Imports Omnic SPA spectra.
Inheritance Hierarchy
SystemObject
  Altaxo.SerializationDataFileImporterBase
    Altaxo.Serialization.OmnicOmnicSPAImporter

Namespace: Altaxo.Serialization.Omnic
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public class OmnicSPAImporter : DataFileImporterBase, 
	IImmutable, IEquatable<OmnicSPAImporter>

The OmnicSPAImporter type exposes the following members.

Constructors
 NameDescription
Public methodOmnicSPAImporterInitializes a new instance of the OmnicSPAImporter class
Top
Methods
 NameDescription
Public methodCheckOrCreateImportOptions Checks the import options. If the provided object is a valid import options object, then this object is returned. Otherwise, a new import options object is created.
(Overrides DataFileImporterBaseCheckOrCreateImportOptions(Object))
Public methodCreateTableDataSource Creates the table data source.
(Overrides DataFileImporterBaseCreateTableDataSource(IReadOnlyListString, Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetFileExtensions Gets the file extensions.
(Overrides DataFileImporterBaseGetFileExtensions)
Public methodGetProbabilityForBeingThisFileFormat Gets the probability for being this file format.
(Overrides DataFileImporterBaseGetProbabilityForBeingThisFileFormat(String))
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodImport(IReadOnlyListString, ImportOptionsInitial) Imports the provided files using the given initial options, optionally distributing the result into separate tables.
(Inherited from DataFileImporterBase)
Public methodImport(Stream, DataTable) Imports SPA data from a stream into a DataTable.
Public methodImport(IReadOnlyListString, DataTable, Object, Boolean) Imports a couple of Omnic SPA files into a table. The spectra are added as columns to the (one and only) table. If the x column of the rightmost column does not match the x-data of the spectra, a new x-column is also created.
(Overrides DataFileImporterBaseImport(IReadOnlyListString, DataTable, Object, Boolean))
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberValuesMatch Compare the values in a double array with values in a double column and see if they match.
Top
Remarks
See Ref1: https://stackoverflow.com/questions/2887151/how-to-read-data-from-a-nicolet-ftir-spectral-file-with-extension-of-spa Ref2: https://github.com/aitap/spa2txt/blob/master/spa.c Ref3: https://gist.github.com/mgaitan/53ea9f5ff47781f34c153c433474ea51 SPA file format:

The comment is at position 30:255. It is UTF8 coded.

At position 564, there is an integer designating the offset to the data. (little endian)

See Also