res function

Spectral resolution