Shen Kuo (; 1031–1095) or Shen Gua, courtesy name Cunzhong (存中) and pseudonym Mengqi (now usually given as Mengxi) Weng (夢溪翁), was a Chinese polymathic scientist and statesman of the Song dynasty (960–1279). Shen was a master in many fields of study including mathematics, optics, and horology. In his career as a civil servant, he became a finance minister, governmental state inspector, head official for the Bureau of Astronomy in the Song court, Assistant Minister of Imperial Hospitality, and also served as an academic chancellor. At court his political allegiance was to the Reformist faction known as the New Policies Group, headed by Chancellor Wang Anshi (1021–1085). In his Dream Pool Essays or Dream Torrent Essays (; Mengxi Bitan) of 1088, Shen was the first to describe the magnetic needle compass, which would be used for navigation (first described in Europe by Alexander Neckam in 1187). Shen discovered the concept of true north in terms of magnetic declination towards the north pole, with experimentation of suspended magnetic needles and "the improved meridian determined by Shen's [astronomical] measurement of the distance between the pole star and true north". This was the decisive step in human history to make compasses more useful for navigation, and may have been a concept unknown in Europe for another four hundred years (evidence of German sundials made circa 1450 show markings similar to Chinese geomancers' compasses in regard to declination). Alongside his colleague Wei Pu, Shen planned to map the orbital paths of the Moon and the planets in an intensive five-year project involving daily observations, yet this was thwarted by political opponents at court. To aid his work in astronomy, Shen Kuo made improved designs of the armillary sphere, gnomon, sighting tube, and invented a new type of inflow water clock. Shen Kuo devised a geological hypothesis for land formation (geomorphology), based upon findings of inland marine fossils, knowledge of soil erosion, and the deposition of silt. He also proposed a hypothesis of gradual climate change, after observing ancient petrified bamboos that were preserved underground in a dry northern habitat that would not support bamboo growth in his time. He was the first literary figure in China to mention the use of the drydock to repair boats suspended out of water, and also wrote of the effectiveness of the relatively new invention of the canal pound lock. Although not the first to invent camera obscura,