A detailed evaluation of heating processes in the middle atmosphere