A detailed evaluation of the heating efficiency in the middle atmosphere