Synergy between middle infrared and millimeter-wave limb sounding of atmospheric temperature and minor constituents