R code for hyperspectral barley plant analysis