<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://climate-cms.wikis.unsw.edu.au/index.php?action=history&amp;feed=atom&amp;title=Adding_New_Fields_to_STASH</id>
	<title>Adding New Fields to STASH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://climate-cms.wikis.unsw.edu.au/index.php?action=history&amp;feed=atom&amp;title=Adding_New_Fields_to_STASH"/>
	<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;action=history"/>
	<updated>2026-11-22T08:48:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=1771&amp;oldid=prev</id>
		<title>S.wales at 03:23, 12 December 2019</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=1771&amp;oldid=prev"/>
		<updated>2019-12-12T03:23:17Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:23, 12 December 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l86&quot; &gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You'll also have to tell the UMUI that there's a new output field, which you can do using a user STASHmaster file. The format of the file is described in detail in the [https://nf.nci.org.au/facilities/software/UM/8.0/umdoc_system/UM_docs/papers/html/C4/p_c4_stash.htm | STASH documentation], for the single level field used in this example the user STASHmaster file is shown below.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You'll also have to tell the UMUI that there's a new output field, which you can do using a user STASHmaster file. The format of the file is described in detail in the [https://nf.nci.org.au/facilities/software/UM/8.0/umdoc_system/UM_docs/papers/html/C4/p_c4_stash.htm | STASH documentation], for the single level field used in this example the user STASHmaster file is shown below.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lang=&amp;quot;text&amp;quot;&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;H1| SUBMODEL_NUMBER=1&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;H1| SUBMODEL_NUMBER=1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;H2| SUBMODEL_NAME=ATMOS&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;H2| SUBMODEL_NAME=ATMOS&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>S.wales</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=1718&amp;oldid=prev</id>
		<title>S.wales at 04:40, 5 December 2019</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=1718&amp;oldid=prev"/>
		<updated>2019-12-05T04:40:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 04:40, 5 December 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Needs Update}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Needs Update}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Duplication|dupe=User fields}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: Unified Model]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category: Unified Model]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>S.wales</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=738&amp;oldid=prev</id>
		<title>S.wales at 05:32, 18 March 2019</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=738&amp;oldid=prev"/>
		<updated>2019-03-18T05:32:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 05:32, 18 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Needs Update}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Needs Update}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Duplication|dupe=User fields}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category: Unified Model]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Adding a new output field to STASH= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Adding a new output field to STASH= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>S.wales</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=708&amp;oldid=prev</id>
		<title>S.wales at 05:09, 18 March 2019</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=708&amp;oldid=prev"/>
		<updated>2019-03-18T05:09:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 05:09, 18 March 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Needs Update}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Adding a new output field to STASH= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=Adding a new output field to STASH= &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>S.wales</name></author>
		
	</entry>
	<entry>
		<id>http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=44&amp;oldid=prev</id>
		<title>ScottWales: Imported from Wikispaces</title>
		<link rel="alternate" type="text/html" href="http://climate-cms.wikis.unsw.edu.au/index.php?title=Adding_New_Fields_to_STASH&amp;diff=44&amp;oldid=prev"/>
		<updated>2012-02-27T05:11:47Z</updated>

		<summary type="html">&lt;p&gt;Imported from Wikispaces&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Adding a new output field to STASH= &lt;br /&gt;
&lt;br /&gt;
It is possible to add new fields to STASH by modifying the UM source code. There are two output types that you can use - prognostic and diagnostic. Prognostic variables are passed around internally by the UM, so that you can use the field internally in different sections, while diagnostic outputs are only generated when requested.&lt;br /&gt;
&lt;br /&gt;
==Outputting data== &lt;br /&gt;
&lt;br /&gt;
To create a new diagnostic output you have to call the function COPYDIAG (or in the case of 3d fields COPYDIAG_3D), passing in your field and some STASH variables. An example function to output a field in section 8 with item id 500 is presented below:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=fortran&amp;gt;&lt;br /&gt;
SUBROUTINE test_field(row_length,rows,&amp;amp;&lt;br /&gt;
                      stashwork,si,sf,at_extremety,&amp;amp;&lt;br /&gt;
                      nitems,nsects)&lt;br /&gt;
implicit none&lt;br /&gt;
&lt;br /&gt;
! Provides:&lt;br /&gt;
!   internal_model_index&lt;br /&gt;
!   atmos_im&lt;br /&gt;
#include &amp;quot;csubmodl.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
! Field size&lt;br /&gt;
integer,intent(in)   :: row_length&lt;br /&gt;
integer,intent(in)   :: rows&lt;br /&gt;
&lt;br /&gt;
! Output for STASH&lt;br /&gt;
real,dimension(*),intent(inout) :: stashwork&lt;br /&gt;
&lt;br /&gt;
! Stash utility arrays &amp;amp; sizes&lt;br /&gt;
integer,intent(in)   :: nitems&lt;br /&gt;
integer,intent(in)   :: nsects&lt;br /&gt;
logical,intent(in),&amp;amp;&lt;br /&gt;
        dimension(0:nitems,0:nsects) :: sf&lt;br /&gt;
integer,intent(in),&amp;amp;&lt;br /&gt;
        dimension(nitems,0:nsects,n_internal_model) :: si&lt;br /&gt;
logical,intent(in),&amp;amp;&lt;br /&gt;
        dimension(4) :: at_extremety&lt;br /&gt;
&lt;br /&gt;
! Error codes&lt;br /&gt;
integer :: icode&lt;br /&gt;
character(len=1024) :: cmessage&lt;br /&gt;
&lt;br /&gt;
! STASH code for this field&lt;br /&gt;
integer,parameter    :: item = 500&lt;br /&gt;
integer,parameter    :: section = 8&lt;br /&gt;
integer,parameter    :: model = atmos_im&lt;br /&gt;
integer              :: model_index&lt;br /&gt;
&lt;br /&gt;
real,dimension(row_length,rows) :: field&lt;br /&gt;
&lt;br /&gt;
model_index = internal_model_index(model)&lt;br /&gt;
&lt;br /&gt;
! Initialise the field&lt;br /&gt;
field = 0&lt;br /&gt;
&lt;br /&gt;
! Check if enabled in the interface&lt;br /&gt;
if (sf(item,section)) then&lt;br /&gt;
        ! Set the field values&lt;br /&gt;
        field = 1&lt;br /&gt;
&lt;br /&gt;
        ! Copy to STASH&lt;br /&gt;
        call copydiag(stashwork(si(item,section,model_index)),field,&amp;amp;&lt;br /&gt;
                        row_length,rows,&amp;amp;&lt;br /&gt;
                        0,0,0,0,at_extremety,&amp;amp;&lt;br /&gt;
                        model,section,item,&amp;amp;&lt;br /&gt;
                        icode,cmessage)&lt;br /&gt;
end if&lt;br /&gt;
&lt;br /&gt;
END SUBROUTINE test_field&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The arguments row_length, rows, si, sf, at_extremity, nitems and nsects are passed into most functions through header files, so you can just put in their names when you call the function. The stashwork array on the other hand needs to be traced from ATM_STEP, where arrays for each section are created. You'll need to add your data into the stashwork array before the call to STASH on that array or else the field won't actually be output.&lt;br /&gt;
&lt;br /&gt;
Section numbers can be anything from 0-99, with values of 0, 33 and 34 are reserved for prognostic variables. The item numbers can be any number 1-512 inclusive.&lt;br /&gt;
&lt;br /&gt;
==Calling the output function== &lt;br /&gt;
&lt;br /&gt;
Each section has its own stashwork array in ATM_STEP, eg. section 8 uses the array STASHwork8. To call the above function you should can add the below just after the call to ATMOS_PHYSICS2 in ATM_STEP:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=fortran&amp;gt;&lt;br /&gt;
! DEPENDS ON: test_field&lt;br /&gt;
        CALL test_field(row_length,rows,STASHwork8,si,sf,at_extremity, &amp;amp;&lt;br /&gt;
                        nitems,nsects)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==User STASHmaster files== &lt;br /&gt;
&lt;br /&gt;
You'll also have to tell the UMUI that there's a new output field, which you can do using a user STASHmaster file. The format of the file is described in detail in the [https://nf.nci.org.au/facilities/software/UM/8.0/umdoc_system/UM_docs/papers/html/C4/p_c4_stash.htm | STASH documentation], for the single level field used in this example the user STASHmaster file is shown below.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
H1| SUBMODEL_NUMBER=1&lt;br /&gt;
H2| SUBMODEL_NAME=ATMOS&lt;br /&gt;
H3| UM_VERSION=7.3&lt;br /&gt;
#&lt;br /&gt;
#|Model |Sectn | Item |Name                               |&lt;br /&gt;
#|Space |Point | Time | Grid |LevelT|LevelF|LevelL|PseudT|PseudF|PseudL|LevCom|&lt;br /&gt;
#| Option Codes                   | Version Mask         | Halo |&lt;br /&gt;
#|DataT |DumpP | PC1  PC2  PC3  PC4  PC5  PC6  PC7  PC8  PC9  PCA |&lt;br /&gt;
#|Rotate| PPFC | USER | LBVC | BLEV | TLEV |RBLEVV| CFLL | CFFF |&lt;br /&gt;
#&lt;br /&gt;
1|    1 |    8 |  500 |TEST FIELD                          |&lt;br /&gt;
2|    0 |    0 |    1 |    1 |    5 |   -1 |   -1 |    0 |    0 |    0 |    0 |&lt;br /&gt;
3| 000000000000000000000000000000 | 11111111111111111111 |    3 |&lt;br /&gt;
4|    1 |    2 | -99  -99  -99  -99  -99  -99  -99  -99  -99  -99 |&lt;br /&gt;
5|    0 |    0 |    0 |    0 |    0 |    0 |    0 | 9999 |  000 |&lt;br /&gt;
#&lt;br /&gt;
1|   -1 |   -1 |   -1 |END OF FILE MARK                    |&lt;br /&gt;
2|    0 |    0 |    0 |    0 |    0 |    0 |    0 |    0 |    0 |    0 |    0 |&lt;br /&gt;
3| 000000000000000000000000000000 | 00000000000000000000 |    0 |&lt;br /&gt;
4|    0 |    0 | -99  -99  -99  -99  -30  -99  -99  -99  -99  -99 |&lt;br /&gt;
5|    0 |    0 |    0 |    0 |    0 |    0 |    0 |    0 |    0 |&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setting up the run== &lt;br /&gt;
&lt;br /&gt;
To run a job which outputs your field add the source to '''FCM Configuration-&amp;gt;FCM Options for Atmosphere''' and the user STASHmaster file to '''Atmosphere-&amp;gt;STASH-&amp;gt;User-STASHmaster files'''. Once you've done this you can add the new diagnostic in '''Atmosphere-&amp;gt;STASH-&amp;gt;STASH Specification of Diagnostic requirements'''. A run that uses the example given in this document is located in the job '''uaevb'''.&lt;br /&gt;
&lt;br /&gt;
==Resources== &lt;br /&gt;
[https://nf.nci.org.au/facilities/software/UM/8.0/umdoc_system/UM_docs/papers/html/C4/p_c4_stash.htm | STASH documentation]&lt;br /&gt;
[https://access-svn.nci.org.au/trac/um/browser/branches/dev/saw562/VN7.3_add_stash | UM Branch with example output]&lt;/div&gt;</summary>
		<author><name>ScottWales</name></author>
		
	</entry>
</feed>