save the wavelength unit in the header in the key WAVEUNIT if it could be read