{"id":1549,"date":"2020-03-09T17:41:58","date_gmt":"2020-03-09T17:41:58","guid":{"rendered":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/?page_id=1549"},"modified":"2022-05-22T15:06:24","modified_gmt":"2022-05-22T14:06:24","slug":"ants_on_jasmin","status":"publish","type":"page","link":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/","title":{"rendered":"ANTS on JASMIN"},"content":{"rendered":"<h3>ANTS on JASMIN<\/h3>\n<p>This should get you started with setting up your environment on JASMIN so that it can use ANcillary Tools and Suites (ANTS). This is not necessary to do to run JULES, but it could be useful for creating custom ancillary files that are used by JULES.<\/p>\n<ol>\n<li>You will need to apply for and receive the <code>ncas_generic<\/code> group workspace privilege if you haven&#8217;t already.<\/li>\n<li>Log out of <strong><code>sci*<\/code><\/strong> . It is important to log out, to make sure your <strong><code>PATH<\/code><\/strong> is clean and in its original state.<\/li>\n<li><code>ssh<\/code> in to one of the <strong><code>sci*<\/code><\/strong> Virtual Machines (VMs)<\/li>\n<li>Type:<br \/>\n<strong><code>source ~pmcguire\/from_valeriu\/env_ants.sh<\/code><\/strong><\/li>\n<li>Type:<br \/>\n<strong><code>which python<\/code><\/strong><\/li>\n<li>It should say:<br \/>\n<strong><code>\/gws\/nopw\/j04\/ncas_generic\/users\/pmcguire\/anaconda3\/envs\/ants_env\/bin\/python<\/code><\/strong><\/li>\n<li>Type:<br \/>\n<strong><code>ls -ltr \/gws\/nopw\/j04\/ncas_generic\/users\/pmcguire\/anaconda3\/envs\/ants_env\/bin\/python<\/code><\/strong><\/li>\n<li>It should say:<br \/>\n<strong><code>lrwxrwxrwx 1 pmcguire users 9 Mar 7 2019 \/gws\/nopw\/j04\/ncas_generic\/users\/pmcguire\/anaconda3\/envs\/ants_env\/bin\/python \u2192 python2.7<\/code><\/strong><br \/>\nNote: this is python2.7 not python3.7.<\/li>\n<li>Type:<br \/>\n<strong><code>python<\/code><\/strong><\/li>\n<li>Type:<br \/>\n<strong><code>import ants<\/code><\/strong><br \/>\nthis can sometimes take 5 minutes or so before you get back to the open Python prompt again, so be patient. Maybe someday we can try to speed-up this loading. But for the time being, we will work with the slow loading.<\/li>\n<li>Then you can run your Python commands that use ANTS from the Python command-line. Or you can submit a SLURM batch job that uses ANTS Python programs, etc.<\/li>\n<li>If you ever need to switch back to the regular version of Python instead of the one where the ANTS environment is set up, the easiest way is to log out of the <strong><code>sci*<\/code><\/strong> VM. The second easiest way is to change your <strong><code>.bash*<\/code><\/strong> script or your .profile script to remember your initial <strong><code>PATH<\/code><\/strong> variable prior to running the env_ants.sh script, and then invoke the command after the ANTS session to go back to the initial <strong><code>PATH<\/code><\/strong>.<\/li>\n<li>These instructions above will give you access to an older ANTS build (version 0.6dev). There is also an ANTS build working in a Singularity container that works on JASMIN and ARCHER2. It is version 0.15, which is newer. It\u2019s pretty easy to use. It is described at: <a href=\"https:\/\/cms.ncas.ac.uk\/miscellaneous\/ants-container\/\" target=\"_blank\" rel=\"noopener\">https:\/\/cms.ncas.ac.uk\/miscellaneous\/ants-container\/<\/a> <\/li>\n<\/ol>\n<p>The main WIKI for ANTS is at:<br \/>\n<a href=\"https:\/\/code.metoffice.gov.uk\/trac\/ancil\/wiki\/ANTS\" rel=\"noopener noreferrer\" target=\"_blank\">\u200bhttps:\/\/code.metoffice.gov.uk\/trac\/ancil\/wiki\/ANTS<\/a><br \/>\nand the user guide is here:<br \/>\n\u200b<a href=\"https:\/\/code.metoffice.gov.uk\/doc\/ancil\/\" rel=\"noopener noreferrer\" target=\"_blank\">https:\/\/code.metoffice.gov.uk\/doc\/ancil\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>ANTS on JASMIN  This should get you started with setting up your environment on JASMIN so that it can use ANcillary Tools and Suites (ANTS). This is not necessary to do to run JULES, but it could be useful for creating custom ancillary files that are used by JULES.     <\/p>\n","protected":false},"author":12,"featured_media":0,"parent":78,"menu_order":3,"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-1549","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>ANTS on JASMIN - 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\/ants_on_jasmin\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ANTS on JASMIN - Land Surface Processes Group\" \/>\n<meta property=\"og:description\" content=\"ANTS on JASMIN This should get you started with setting up your environment on JASMIN so that it can use ANcillary Tools and Suites (ANTS). This is not necessary to do to run JULES, but it could be useful for creating custom ancillary files that are used by JULES.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/\" \/>\n<meta property=\"og:site_name\" content=\"Land Surface Processes Group\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-22T14:06:24+00:00\" \/>\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=\"2 minutes\" \/>\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\/ants_on_jasmin\/\",\"url\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/\",\"name\":\"ANTS on JASMIN - Land Surface Processes Group\",\"isPartOf\":{\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/#website\"},\"datePublished\":\"2020-03-09T17:41:58+00:00\",\"dateModified\":\"2022-05-22T14:06:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/#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\":\"ANTS on JASMIN\"}]},{\"@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":"ANTS on JASMIN - 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\/ants_on_jasmin\/","og_locale":"en_GB","og_type":"article","og_title":"ANTS on JASMIN - Land Surface Processes Group","og_description":"ANTS on JASMIN This should get you started with setting up your environment on JASMIN so that it can use ANcillary Tools and Suites (ANTS). This is not necessary to do to run JULES, but it could be useful for creating custom ancillary files that are used by JULES.","og_url":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/","og_site_name":"Land Surface Processes Group","article_modified_time":"2022-05-22T14:06:24+00:00","twitter_card":"summary_large_image","twitter_misc":{"Estimated reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/","url":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/","name":"ANTS on JASMIN - Land Surface Processes Group","isPartOf":{"@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/#website"},"datePublished":"2020-03-09T17:41:58+00:00","dateModified":"2022-05-22T14:06:24+00:00","breadcrumb":{"@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/software-examples\/ants_on_jasmin\/#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":"ANTS on JASMIN"}]},{"@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\/1549","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=1549"}],"version-history":[{"count":10,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/1549\/revisions"}],"predecessor-version":[{"id":1729,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/1549\/revisions\/1729"}],"up":[{"embeddable":true,"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/pages\/78"}],"wp:attachment":[{"href":"https:\/\/research.reading.ac.uk\/landsurfaceprocesses\/wp-json\/wp\/v2\/media?parent=1549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}