{"id":1014,"date":"2018-01-22T19:45:48","date_gmt":"2018-01-22T19:45:48","guid":{"rendered":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/?page_id=1014"},"modified":"2018-01-22T19:45:48","modified_gmt":"2018-01-22T19:45:48","slug":"anomaly_1979_2012-scr","status":"publish","type":"page","link":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/","title":{"rendered":"anomaly_1979_2012.scr"},"content":{"rendered":"<p>#\u00a0anomaly_1979_2012.scr<\/p>\n<p># This csh scripting code (using CDO operators) was used on CEDA JASMIN to produce<br \/>\n# NETCDF files that contain the seasonal anomaly of various JULES parameters (i.e., soil moisture or NPP)<br \/>\n# over the whole globe from 1979-2012<br \/>\n# using (as input) monthly-averaged JULES land-only 1D data.<br \/>\n# The code was written in November 2017 by Patrick McGuire<br \/>\n# at the University of Reading (email: p.mcguire@reading.ac.uk )<br \/>\n#! \/bin\/csh<br \/>\nset path1=&#8217;\/work\/scratch\/pmcguire\/config\/outputs\/&#8217;<br \/>\nset prefix2=&#8217;Euro44_bvv_nancil_CTL-BCJ-GL_jules-vn4.9p_u-as052globeE_monmean_&#8217;<br \/>\n#N.B.: seasavg and seasmean treat missing values differently<br \/>\necho &#8216;Computing monthly average&#8217;<br \/>\ncdo ymonavg ${prefix2}1979_2012.nc ${prefix2}1979_2012_ymonavg.nc<br \/>\necho &#8216;Computing monthly standard deviation&#8217;<br \/>\ncdo ymonstd1 ${prefix2}1979_2012.nc ${prefix2}1979_2012_ymonstd1.nc<br \/>\n#echo &#8216;Computing monthly anomalies&#8217;<br \/>\n#cdo ymonsub ${prefix2}1979_2012.nc ${prefix2}1979_2012_ymonavg.nc ${prefix2}1979_2012_ymonanom.nc<br \/>\n#echo &#8216;Computing standardized seasonal anomalies&#8217;<br \/>\n#cdo ymondiv ${prefix2}1979_2012_ymonanom.nc ${prefix2}1979_2012_ymonstd1.nc ${prefix2}1979_2012_ymonstd1anom.nc<br \/>\nforeach yr (1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012)<br \/>\necho monmean ${yr}<br \/>\necho &#8216;Computing monthly anomalies&#8217;<br \/>\ncdo ymonsub ${prefix2}${yr}.nc ${prefix2}1979_2012_ymonavg.nc ${prefix2}${yr}__1979_2012_ymonanom.nc<br \/>\necho &#8216;Computing standardized monthly anomalies&#8217;<br \/>\ncdo ymondiv ${prefix2}${yr}__1979_2012_ymonanom.nc ${prefix2}1979_2012_ymonstd1.nc ${prefix2}${yr}__1979_2012_ymonstd1anom.nc<br \/>\nend<br \/>\nexit<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#\u00a0anomaly_1979_2012.scr    # This csh scripting code (using CDO operators) was used on CEDA JASMIN to produce  # NETCDF files that contain the seasonal anomaly of various JULES parameters (i.e., soil moisture or NPP)  # over the whole globe from 1979-2012  # using (as input) monthly-averaged JULES land-only 1D data.<\/p>\n","protected":false},"author":12,"featured_media":0,"parent":998,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"__cvm_playback_settings":[],"__cvm_video_id":"","footnotes":""},"class_list":["post-1014","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>anomaly_1979_2012.scr - Land Surface Processes Group<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"anomaly_1979_2012.scr - Land Surface Processes Group\" \/>\n<meta property=\"og:description\" content=\"#\u00a0anomaly_1979_2012.scr  # This csh scripting code (using CDO operators) was used on CEDA JASMIN to produce # NETCDF files that contain the seasonal anomaly of various JULES parameters (i.e., soil moisture or NPP) # over the whole globe from 1979-2012 # using (as input) monthly-averaged JULES land-only 1D data.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/\" \/>\n<meta property=\"og:site_name\" content=\"Land Surface Processes Group\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/\",\"url\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/\",\"name\":\"anomaly_1979_2012.scr - Land Surface Processes Group\",\"isPartOf\":{\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/#website\"},\"datePublished\":\"2018-01-22T19:45:48+00:00\",\"dateModified\":\"2018-01-22T19:45:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Running JULES\",\"item\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Library of Plotting Code Samples\",\"item\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"anomaly_1979_2012.scr\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/#website\",\"url\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/\",\"name\":\"Land Surface Processes Group\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"anomaly_1979_2012.scr - Land Surface Processes Group","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/","og_locale":"en_GB","og_type":"article","og_title":"anomaly_1979_2012.scr - Land Surface Processes Group","og_description":"#\u00a0anomaly_1979_2012.scr  # This csh scripting code (using CDO operators) was used on CEDA JASMIN to produce # NETCDF files that contain the seasonal anomaly of various JULES parameters (i.e., soil moisture or NPP) # over the whole globe from 1979-2012 # using (as input) monthly-averaged JULES land-only 1D data.","og_url":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/","og_site_name":"Land Surface Processes Group","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/","url":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/","name":"anomaly_1979_2012.scr - Land Surface Processes Group","isPartOf":{"@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/#website"},"datePublished":"2018-01-22T19:45:48+00:00","dateModified":"2018-01-22T19:45:48+00:00","breadcrumb":{"@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/anomaly_1979_2012-scr\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/"},{"@type":"ListItem","position":2,"name":"Running JULES","item":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/"},{"@type":"ListItem","position":3,"name":"Library of Plotting Code Samples","item":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/code-samples\/"},{"@type":"ListItem","position":4,"name":"anomaly_1979_2012.scr"}]},{"@type":"WebSite","@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/#website","url":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/","name":"Land Surface Processes Group","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/1014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/comments?post=1014"}],"version-history":[{"count":1,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/1014\/revisions"}],"predecessor-version":[{"id":1015,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/1014\/revisions\/1015"}],"up":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/998"}],"wp:attachment":[{"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/media?parent=1014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}