What about to measure soy meal in a transmittance instrument like Infratec?. Infratec has a smaller range, but this range (850 to 1050 nm) penetrate most into the sample, so we can measure in transmittance with a certain path length to avoid saturation. With this purpose, a certain number of samples with known reference value for the parameters was analyzed in the instrument, putting the soy meal unground and directly into the conveyor.
Spectra of the samples was export in a spectra file and lab values added.
Spectra file was export into R software as raw spectra, and a multiple scatter correction was added.
wavelengths<-as.matrix(seq(850,1048,by=2))
matplot(wavelengths,t(X),type="l",
#Math Treatments
#Multiple Scatter Correction
library(pls)
X_msc<-msc(X)
#Mean Centering
#We can check in wich areas is the variation of the data.
X_msc_mc<-scale(X_msc,scale=FALSE)
#We can see the variation at every wavelength with a boxplot.
boxplot(X_msc)
No hay comentarios:
Publicar un comentario