About the link between biodiversity and spectral variation