I have a spectrum CSV file and I have tried using the spliceCorrection function in R package "prospect" to fix it, but the result is not good. Can anyone please guide me on a method (Software) to do a splice correction (de-stepping) for a spectrum.
The R Code:
library(prospectr)
data = read.csv("E:\\1\\SG.csv")
tran_data = t(data)
wave = t(data[1])
corr_data = spliceCorrection(tran_data,wave,splice = c(998.1, 1831.6),interpol.bands = 10)
corr_data_end = t(corr_data)
out_file = paste0("E:\\1\\Corr_SG_",998.1,".csv")
write.csv(corr_data_end,out_file,row.names = FALSE)