Read spectroscopic data ("data", "wavelengths" and "spectra") stored in 3 CSV files to hyperSpec object. These fileas are usually exported from Matlab.

read3csv2hy(FileName_base)

Arguments

FileName_base

A base of file name (a string). See section "Details".

Value

Object of class hyperSpec.

Details

If base name is "TD_2009", then CSV file names must be:
[1] "TD_2009 (wavelengths).csv"
[2] "TD_2009 (spectra).csv"
[3] "TD_2009 (data).csv"

Base name can be a path, e.g. "D:/spectra/TD_2009"

MATLAB code

The MATLAB code used to generate csv files: Save_DS_for_R.m

Author

Vilmantas Gegzna