Ensure that the spectra matrix has the wavelengths in column names
.fix_spc_colnames(spc)
spc
hyperSpec object
hyperSpec object with wavelengths in column names of $spc
$spc