Thermal infrared measurements in the middle and upper atmosphere