Click or drag to resize

NicoletSPAImporter Class

Imports Nicolet SPA spectra.
Inheritance Hierarchy
SystemObject
  Altaxo.SerializationDataFileImporterBase
    Altaxo.Serialization.NicoletSPANicoletSPAImporter

Namespace: Altaxo.Serialization.NicoletSPA
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3261.0 (4.8.3261.0)
Syntax
C#
public class NicoletSPAImporter : DataFileImporterBase, 
	IImmutable, IEquatable<NicoletSPAImporter>

The NicoletSPAImporter type exposes the following members.

Constructors
 NameDescription
Public methodNicoletSPAImporterInitializes a new instance of the NicoletSPAImporter 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)
(Inherited from DataFileImporterBase)
Public methodImport(Stream, DataTable) Imports the data of this Import(Stream, DataTable) instance into a DataTable.
Public methodImport(IReadOnlyListString, DataTable, Object, Boolean) Imports a couple of Nicolet 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