Common OMNIC structures#
The SPA, SPG and SRS formats share a common container model and several block layouts. This page documents them once; the format pages (OMNIC SPA file format, OMNIC SPG file format, OMNIC SRS file format) describe only what is specific to each format. See Evidence and certainty levels for the certainty levels.
Unless stated otherwise, the evidence for the shared structures comes from
SPA files, which form by far the largest corpus. Their use in SPG and SRS
follows the rule for claims shared between formats: a structure is
[ESTABLISHED] for SPG or SRS only where the corresponding format page
says so. Scopes such as the validated spectral family or the validated
Raman variant refer to the SPA variants listed in the SPA evidence corpus.
Conventions#
Byte order.
[ESTABLISHED]All multi-byte integers and floats are little-endian.Types.
uint8,uint16,uint32anduint64are unsigned integers;float32is an IEEE 754 single-precision value.Offsets. File-relative offsets are written as plain decimal numbers (
offset 294). Offsets inside a block are written+N(decimal) and are relative to the block start, that is, the position stored in the block’s key record. Ranges+a..+binclude both ends.Keys and codes. Key values, subtypes and unit codes are written in hexadecimal (
0x02).Text. Strings are NUL-terminated and, in fixed-size regions, NUL-padded. Multi-line text uses CR LF line separators, and some history lines are indented with tab characters.
[OBSERVED]Non-ASCII text is stored in a single-byte Windows code page (for exampleéas0xe9, consistent with Windows-1252) and never as UTF-8 in the inspected files. Text content, such as history entries and date formats, follows the language of the OMNIC installation that wrote it.
File header#
Every OMNIC file starts with a fixed header followed by a counted table of 16-byte key records. The records point to blocks elsewhere in the file; the blocks are not required to be contiguous, and their order in the file is not a format guarantee.
Offset |
Size |
Type |
Meaning |
Certainty |
|---|---|---|---|---|
0 |
18 |
ASCII |
Signature: |
|
30 |
256 |
text |
Saved name/title text (SPA, SPG). |
|
294 |
2 |
|
|
|
296 |
4 |
|
Timestamp-like value in the OMNIC time encoding (see Timestamps); its meaning is format- and variant-dependent. |
See the format pages |
304 |
n × 16 |
records |
Key table. |
|
The remaining header bytes are not assigned meanings here; the format pages list the fields observed for each format. A recognizable signature does not imply that every producer uses the same complete header map.
Key table#
[ESTABLISHED] Each key record occupies 16 bytes:
Offset |
Type |
Role |
|---|---|---|
|
|
Key: identifies the kind of referenced block. |
|
|
Reserved/variant-dependent byte. |
|
|
File-relative position of the referenced block. |
|
|
Length of the referenced block in bytes. |
|
bytes |
Trailing/variant-dependent data. |
nlines counts the active records, not every byte between the table and
the first block. A key identifies a kind of block; it does not by itself
determine the signal interpretation of that block. A file may contain
several records with the same key (one per spectrum in SPG, for example).
Timestamps#
[ESTABLISHED] OMNIC timestamps are unsigned little-endian uint32
counts of seconds since 1899-12-31 00:00:00 UTC:
instant = 1899-12-31 00:00:00 UTC + raw seconds
The decoded value is an absolute UTC instant; files do not store a timezone.
The encoding is shared, but the event a timestamp represents (acquisition,
save, or another event) is format- and field-dependent and is documented on
the format pages. A uint32 count from this epoch overflows on
2036-02-06.
X-axis endpoints and sample order#
The data header stores two float32 X endpoints, at +16 and
+20. This reference names them after the OMNIC display terms: +16 is
Last X and +20 is First X. The X coordinate is linear between
the two endpoints over the stored point count (+4).
Which endpoint corresponds to the first stored sample is format-dependent:
SPA and SPG spectra:
[ESTABLISHED]for SPA, the payload is stored in descending wavenumber order, sample 0 corresponding to+16(Last X) (see OMNIC SPA file format);SRS series:
[OBSERVED]the samples are stored in ascending coordinate order, sample 0 corresponding to the smaller of the two endpoints (see OMNIC SRS file format).
Readers should therefore derive the sample order from the format and the endpoint values rather than from the field names alone.
Data header 0x02#
This reference calls the block referenced by key 0x02 the data
header: it describes the data stored in the payload (point count, X and Y
units, X endpoints) together with acquisition and transform settings, and it
is used for spectra and interferograms alike. OMNIC’s internal name for the
block is not known.
The data-header layout is shared by SPA and SPG spectra and by the SRS
series header (see OMNIC SRS file format). The following offsets are relative to
the block referenced by 0x02. The
table deliberately separates mature meanings from observations and unresolved
fields.
Offset |
Type |
Meaning |
Scope/certainty |
|---|---|---|---|
|
|
Stored point count. |
|
|
|
X-unit code. |
|
|
|
Y/data-unit code. |
|
|
|
OMNIC |
|
|
|
OMNIC |
|
|
|
Scan points. |
|
|
|
OMNIC interferogram peak position. |
|
|
|
Sample scans. |
|
|
|
Duplicate numeric peak position. |
|
|
|
FFT points. |
|
|
|
Transform/trailing geometry field. |
|
|
|
Background scans. |
|
|
|
Background gain where applicable. |
|
|
|
Collection duration multiplied by 100. |
|
|
|
Reference/HeNe-class frequency. |
|
|
|
Sample-spacing factor. |
|
|
|
Aperture where applicable. |
|
|
|
Raman excitation/laser frequency. |
|
Other numeric fields in the header are intentionally not assigned meanings by this reference. In particular, derived transform quantities must not be mistaken for stored fields.
Offsets beyond the 140-byte block#
[ESTABLISHED] The 0x02 block is 140 bytes long in every inspected file.
Header-relative offsets from +140 onwards therefore lie outside the block
and read the beginning of whichever block is stored next. [OBSERVED] In the
SPA corpus, the block stored immediately after 0x02 is:
0x80(128 zero bytes) in the newer-layout files;0x6ain a minority of files, in which case header-relative+188coincides with0x6a+48(optical velocity);0x03(the data payload) in the library/retrieved files.
Values read at +140..+188 may therefore look like a copy of 0x6a
or be blank, depending on the file; in both cases they belong to the next
block (0x6a or the zero-filled 0x80). These offsets are not
0x02 fields: their content depends on block placement, which is not a
format guarantee. 0x6a, located through its own key record, is the
canonical source of the parameters.
Spectrometer and acquisition parameters 0x6a#
[ESTABLISHED] The recurring 0x6a block is a 56-byte
spectrometer/acquisition parameter block in the validated variants. The
following relationships are mature enough to document generically:
Relative offset |
Meaning |
Certainty/scope |
|---|---|---|
|
Instrument-family and acquisition codes. |
|
|
Digitizer-bit field. |
|
|
High-pass filter. |
|
|
Low-pass filter. |
|
|
Sample gain. |
|
|
Optical velocity. |
|
Values read at header-relative offsets +140 and beyond coincide with
these parameters only when 0x6a happens to be stored right after
0x02 (see Offsets beyond the 140-byte block). A format consumer should locate
0x6a through its key record.
Unit codes#
X-unit codes#
Code |
Meaning |
Certainty/scope |
|---|---|---|
|
Wavenumbers, |
|
|
Data points. |
|
|
Raman shift, |
|
|
Wavelength, nm / wavelength, micrometres. |
|
Y/data-unit codes#
Code |
Meaning |
Certainty/scope |
|---|---|---|
|
Percent transmittance. |
|
|
Absorbance. |
|
|
Volts-labelled detector signal. |
|
|
Transmittance. |
|
|
Raman intensity. |
|
|
Reflectance, log(1/R), single beam, Kubelka–Munk, reflectance, and photoacoustic mappings respectively. |
|
Experiment Information 0x82#
Key 0x82 identifies Experiment Information blocks. Native subtype 0x79
has a fixed-anchor layout supported by multiple independent native blocks:
Relative anchor |
Generic content |
Certainty |
|---|---|---|
|
Experiment path/file text begins. |
|
|
Experiment title/name text. |
|
|
Descriptive or custom text. |
|
|
Accessory-related text anchor. |
|
|
Duplicate or prefixed path-like text. |
|
The strings are NUL-terminated and padded between the observed anchors.
+413..+670 also contains unresolved numeric or padding content.
[OBSERVED] Other subtypes occur in 0x82 blocks: 0x9e (the most
frequent, usually alongside a 0x79 block), 0xa6 (a small block), and,
rarely, 0x9d. They are structurally recognized but their semantics are
[UNKNOWN]; none of them is mandatory before a subtype 0x79 block.
The subtypes must not be collapsed into one universal record layout.
Auxiliary block 0x69 and history text 0x1b#
[ESTABLISHED] 0x69 is a recurring 12-byte block whose boundaries are
known in the acquired variants; its semantics are [UNKNOWN].
[ESTABLISHED] 0x1b references a processing/acquisition history text
block where present. Its content, length and presence vary with the save
operation and the processing history; no stable formal grammar is claimed.