-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
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
Labels
No labels