A method for measuring optical properties of semitransparent materials at high temperatures