探索性土壤光谱分析
在土壤光谱分析中,完成光谱数据的加载、组织和预处理后,就可以进行进一步的探索性分析。本文将介绍如何直接从土壤可见 - 近红外(vis - NIR)光谱中识别土壤的物理和化学性质,以及如何使用主成分分析(PCA)降低光谱数据的维度,还会给出相关的应用示例。
1. 所需包的安装
在进行分析之前,需要安装一些必要的包,代码如下:
# specify all the packages used in the analysis and install them if they are not already
myPackages <- c("SDMTools", "tripack", "resemble", "splancs", "sp")
# define which packages are not installed in the current computer
notInstalled <- myPackages[!(myPackages %in% installed.packages()[ , "Package"])]
# install the missing packages
if(length(notInstalled)) install.packages(notInstalled)
2. 特征选择
2.1 识别次生粘土矿物和铁氧化物
粘土矿物和铁氧化物在 vis - NIR 范围内的特定波长处有吸收。通过比较参考光谱和土壤样品在诊断波长处的反射率,可以评估土壤的矿物组成。主要的诊断波长如下表所示: