working wavelenght and spectrum apis