You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% Reads a single binary file saved by Avantes AvaSoft8 software.
% include '.RAW8', '.RWD8', '.ABS8','.TRM8','.RFL8','.IRR8','.RIR8'.
function [Wavelength,Sample,Dark,Reference,Mode_data,h] = readRAW8(filename,specified_mode)
% Reads a single binary file saved by Avantes AvaSoft8 software.
% Yuanfei Jiang, 2022.02.05
% jiangyuanfei@jlu.edu.cn
% Institute of Atomic and Molecular Physics, Jilin University, P.R.China.
% specify_mode: 0 - 6
% 0 'Scope Mode'
% 1 'Scope minus Dark Mode'
% 2 'Absorbance Mode'
% 3 'Transmittance Mode'
% 4 'Reflectance Mode'
% 5 'Absolute Irradiance Mode'
% 6 'Relative Irradiance Mode'
% for example:
% [Wavelength,Sample,Dark,Reference,Mode_data,h] = readRAW8(filename)
% If the mode parameter is not specified, it will read the mode from data file.
% Returns the result calculated from the read mode.
%
% [Wavelength,Sample,Dark,Reference,Mode_data,h] = readRAW8(filename,specify_mode)
% If the mode parameter is specified, it will ignore the mode read from
% data file and use the specified mode parameter and returns the
% calculation result of the specified mode.
%
% The number of pixels settings by factory can be read from data file.
% If less number of pixels be used, the actual number of pixels will be
% calculated.
%
Cite As
Yuanfei Jiang (2026). Avantes8 to Matlab (https://www.mathworks.com/matlabcentral/fileexchange/98339-avantes8-to-matlab), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.0 (49.2 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
