solve error by calculation the  wavelength for a spectrum