getSpectralFlux function

Get spectral flux