normalize function

Normalize spectral data