spc-parser
    Preparing search index...

    Interface TheOldHeader

    Old-format (LabCalc) file header.

    interface TheOldHeader {
        axes: Axes;
        codes: HeaderCodes;
        customLabels: CustomLabels;
        customLabelsApplied: boolean;
        date?: string;
        dateLayout?: DateLayout;
        drawAsSticks: boolean;
        endingX: number;
        exponentY: number;
        fileVersion: number;
        invertedPeaks: boolean;
        isChromatogram: boolean;
        kind: "old";
        memo: string;
        memoFragments: string[];
        modifications: Modification[];
        numberPoints: number;
        parameters: FlagParameters;
        peakPointNumber: number;
        postingLabel: string;
        processingLabels: string[];
        rawDate: number[];
        resolutionDescription: string;
        scans: number;
        spare: number[];
        spectra?: number;
        startingX: number;
        trailingText?: string[];
        xDirection?: XDirection;
        xUnitsType: string;
        xyzLabels: string;
        yUnitsType: string;
        zpdIndex?: number;
        zSpacing?: "even" | "ordered" | "random";
        zUnitsType: string;
    }

    Hierarchy

    • CommonHeader
      • TheOldHeader
    Index

    Properties

    axes: Axes

    Label and units of each axis, from the codes and the custom labels.

    The raw codes of the header.

    customLabels: CustomLabels

    The custom X, Y and Z labels, whether or not the file enables them.

    customLabelsApplied: boolean

    Whether at least one axis label comes from the custom labels.

    date?: string

    Acquisition date as an ISO string. Local-time layouts have no Z suffix; undefined when the file has no date or an invalid one.

    undefined
    
    dateLayout?: DateLayout

    Layout the date was decoded with, undefined when no date was decoded.

    undefined
    
    drawAsSticks: boolean

    TXYXYS data (e.g. mass spectrum centroids) are drawn as sticks.

    endingX: number
    exponentY: number
    fileVersion: number
    invertedPeaks: boolean

    Y types from 128 on have inverted (downward) peaks.

    isChromatogram: boolean

    The experiment is a chromatogram (TCGRAM with the general experiment code, or a chromatography experiment code).

    kind: "old"
    memo: string

    Memo, decoded and cut at its first NUL.

    memoFragments: string[]

    Readable text left after the first NUL of the memo by the writer.

    modifications: Modification[]

    Modifications applied to the data, in letter order.

    numberPoints: number
    parameters: FlagParameters
    peakPointNumber: number
    postingLabel: string

    Meaning of the DDE posting disposition (fpost).

    processingLabels: string[]

    Processing steps recorded in fprocs, empty when unspecified.

    rawDate: number[]

    The raw date fields: oyear (with the Z unit code in its high 4 bits), omonth, oday, ohour and ominute.

    resolutionDescription: string
    scans: number
    spare: number[]
    spectra?: number

    Number of subfiles, computed from the file size (the old format does not store it). Set by the data block reader.

    undefined
    
    startingX: number
    trailingText?: string[]

    Readable strings found after the last complete subfile, if any.

    undefined
    
    xDirection?: XDirection

    Order of the X values in the file, set when the data are read.

    undefined
    
    xUnitsType: string
    xyzLabels: string

    The custom-label area with its NUL separators removed.

    yUnitsType: string
    zpdIndex?: number

    Index of the zero path difference point of an interferogram (Y type 1). Absent when fpeakpt is 0 (unknown) or the file is not an interferogram.

    undefined
    
    zSpacing?: "even" | "ordered" | "random"

    Spacing of the Z values of a multifile (set by the data block reader).

    undefined
    
    zUnitsType: string

    Z unit, from the high 4 bits of oyear.