Skip to content

Adjusted offsets for OMNIC Paradigm 2.8 #3

@DaXLR

Description

@DaXLR

In the off-chance this might help someone else in the future, I had to figure out new offsets for this code to work on .spa files output by OMNIC Paradigm version 2.8, here are the updated addresses

        f.seek(1588) #Original was 564
        Spectrum_Pts = np.fromfile(f, np.int32,1)[0]

        f.seek(1600) #Original was 576
        Max_Wavenum=np.fromfile(f, np.single, 1)[0]
        Min_Wavenum=np.fromfile(f, np.single, 1)[0]
        Wavenumbers = np.flip(np.linspace(Min_Wavenum, Max_Wavenum, Spectrum_Pts))

Thanks for that code btw, you saved us a lot of trouble!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions