Understanding solar temperature dynamics