## Load example data
data(spectral_data)
## Resample to RapidEye
data_RE <- spectralResampling(spectral_data, "RapidEye",
response_function = TRUE)
## Plot resampled spectra
plot(data_RE)
## Compare different methods of spectral resampling
par(mfrow=c(1,3))
ga <- spectralResampling(spectral_data, "RapidEye",
response_function = FALSE)
plot(ga)
re <- spectralResampling(spectral_data, "RapidEye",
response_function = TRUE)
plot(re)
no <- spectralResampling(spectral_data, "RapidEye",
response_function = NA)
plot(no)
Run the code above in your browser using DataLab