Pyrometer wavelength function: its determination and error analysis