Title: Computation of the refraction of wave spectra