% 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.
%
인용 양식
Yuanfei Jiang (2024). Avantes8 to Matlab (https://www.mathworks.com/matlabcentral/fileexchange/98339-avantes8-to-matlab), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2016a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!