The fringe file the WPOCT processor toolkit reads in can be generated by a Octave/Matlab script and is unique to each spectrometer based on the wavelength calibration coefficients. It is used to characterize the pixel space into a k-linearized wavenumber space as part of the OCT processing which will help to get more consistent axial resolution at different depths after numerical dispersion compensation. The wavelength is converted to wavenumber and then spline interpolated into a range of 1-2048 pixel values.
c=[
8.10582E+02
3.16944E-02
-1.37746E-06
9.40811E-12
]
n=linspace(0,2047,2048);
n2048=linspace(1,2048,2048);
wl=c(1)+c(2)*n+c(3)*n.*n+c(4)*n.*n.*n;
wn=2*pi./wl;
rwn=linspace(wn(1),wn(2048),2048);
cal=interp1(wn,n2048,rwn,'spline');
cal=transpose(cal);
figure;plot(cal);
save calibration_C-0XXXX_MM-DD-YY.txt cal -ascii;
msgbox("Finished!");