Which of the following are the two main factors that determine climate?