Simplify wavelength discrimination code
remove out dated scripts for wavelength discrimination