Lecture notes in Earth system science