{"id":14568,"date":"2019-12-05T17:25:45","date_gmt":"2019-12-05T17:25:45","guid":{"rendered":"http:\/\/www.wjst.de\/blog\/?p=14568"},"modified":"2019-12-15T13:25:05","modified_gmt":"2019-12-15T13:25:05","slug":"correlation-of-earth-temperature-and-global-mean-co2","status":"publish","type":"post","link":"https:\/\/www.wjst.de\/blog\/sciencesurf\/2019\/12\/correlation-of-earth-temperature-and-global-mean-co2\/","title":{"rendered":"Correlation of earth temperature and global mean CO2"},"content":{"rendered":"<p>For teaching purposes I need the CO<sub>2 <\/sub>concentration vs earth temperature by year (<a href=\"https:\/\/en.wikipedia.org\/wiki\/Keeling_Curve\">Keeling curve<\/a>). For that purpose we can use the <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2019\/10\/a-new-animation-of-the-famous-hadcrut4-climate-dataset\/\">Hadcrut 4 dataset created earlier <\/a>while the global mean CO<sub>2<\/sub>\u00a0mix ratios (ppm) can be found at <a href=\"https:\/\/data.giss.nasa.gov\/modelforce\/ghgases\/Fig1A.ext.txt\">https:\/\/data.giss.nasa.gov\/modelforce\/ghgases\/Fig1A.ext.txt<\/a>.<br \/>\nAfter unscrambling that file and merging it to Hadcrut4 we can plot it<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\nlibrary(patchwork)\r\np1 &lt;- ggplot(temp, aes(x=year, y=annual)) + geom_point() + stat_smooth(method=&quot;loess&quot;, span = .6) +\r\n  scale_y_continuous( name=&quot;difference from baseline  &#x5B; oC ]&quot;, limits=c(-1,1) )\r\n\r\np2 &lt;- ggplot(temp, aes(x=year, y=ppm )) +  geom_point() + stat_smooth(method=&quot;loess&quot;, span = .6) +\r\n  scale_y_continuous( name=expression('ppm CO'&#x5B;2]) )\r\np1+p2\r\n<\/pre>\n<p>Here are the two time courses<\/p>\n<figure id=\"attachment_14576\" aria-describedby=\"caption-attachment-14576\" style=\"width: 620px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot01.png\" data-rel=\"key-image-0\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14576 size-medium\" src=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot01-620x413.png\" alt=\"\" width=\"620\" height=\"413\" srcset=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot01-620x413.png 620w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot01-750x500.png 750w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot01-768x512.png 768w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot01.png 1200w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><figcaption id=\"caption-attachment-14576\" class=\"wp-caption-text\">Time course of earth temperature (1850-2018) and CO<sub>2<\/sub> (1850-2011)<\/figcaption><\/figure>\n<p>while the correlation is higher than I expected<\/p>\n<figure id=\"attachment_14575\" aria-describedby=\"caption-attachment-14575\" style=\"width: 210px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1.png\" data-rel=\"key-image-1\" data-rl_title=\"\" data-rl_caption=\"\" title=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-14575 \" src=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1-620x620.png\" alt=\"\" width=\"210\" height=\"210\" srcset=\"https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1-620x620.png 620w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1-500x500.png 500w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1-150x150.png 150w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1-768x768.png 768w, https:\/\/www.wjst.de\/blog\/wp-content\/uploads\/2019\/12\/Rplot-1.png 800w\" sizes=\"auto, (max-width: 210px) 100vw, 210px\" \/><\/a><figcaption id=\"caption-attachment-14575\" class=\"wp-caption-text\">Correlation of earth temperature and CO2<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>References<\/p>\n<ul>\n<li>1850-1957: D.M. Etheridge, L.P. Steele, R.L. Langenfelds, R.J. Francey, J.-M. Barnola and V.I. Morgan, 1996, J. Geophys. Res., 101, 4115-4128,&#8221;Natural and anthroupogenic changes in atmospheric CO2 over the last 1000 years from air in Antarctic ice and firn&#8221;.<\/li>\n<li>1958-1974: Means of Scripps Institution of Oceanography Continuous Data at Mauna Loa and South Pole provided by KenMaarie (personal communication)<\/li>\n<li>1975-1982: Means of NOAA\/CMDL in-situ data at Mauna Loa and South Pole. (P. Tans and K.W. Thoning, ftp:\/\/ftp.cmdl.noaa.gov\/ccg\/co2\/in-situ)<\/li>\n<li>1983-2003: Global means constructed using about 70 CMDL CCGG Sampling Network station data. (P.P. Tans and T.J. Conway, ftp:\/\/ftp.cmdl.noaa.gov\/ccg\/co2\/flask)<\/li>\n<li>2004-2007: Global mean growth rates. (T. Conway, ftp:\/\/ftp.cmdl.noaa.gov\/ccg\/co2\/trends)<\/li>\n<\/ul>\n\n<p>&nbsp;<\/p>\n<div class=\"bottom-note\">\n  <span class=\"mod1\">CC-BY-NC Science Surf , accessed 05.04.2026<\/span>\n <\/div>","protected":false},"excerpt":{"rendered":"<p>For teaching purposes I need the CO2 concentration vs earth temperature by year (Keeling curve). For that purpose we can use the Hadcrut 4 dataset created earlier while the global mean CO2\u00a0mix ratios (ppm) can be found at https:\/\/data.giss.nasa.gov\/modelforce\/ghgases\/Fig1A.ext.txt. After unscrambling that file and merging it to Hadcrut4 we can plot it library(patchwork) p1 &lt;- &hellip; <a href=\"https:\/\/www.wjst.de\/blog\/sciencesurf\/2019\/12\/correlation-of-earth-temperature-and-global-mean-co2\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Correlation of earth temperature and global mean CO2<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3102],"tags":[3115,1184,3244,3245],"class_list":["post-14568","post","type-post","status-publish","format-standard","hentry","category-one-world","tag-co2","tag-climate","tag-crisis","tag-temperature"],"_links":{"self":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/14568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/comments?post=14568"}],"version-history":[{"count":13,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/14568\/revisions"}],"predecessor-version":[{"id":14703,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/posts\/14568\/revisions\/14703"}],"wp:attachment":[{"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/media?parent=14568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/categories?post=14568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wjst.de\/blog\/wp-json\/wp\/v2\/tags?post=14568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}