Energy transfer in the atmosphere