<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ukca.ac.uk/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nla27</id>
	<title>UKCA - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.ukca.ac.uk/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nla27"/>
	<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php/Special:Contributions/Nla27"/>
	<updated>2026-08-24T21:38:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.7</generator>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11163</id>
		<title>UKCA</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11163"/>
		<updated>2026-07-10T12:41:40Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===&#039;&#039;&#039;Welcome to the UKCA Wiki&#039;&#039;&#039;===&lt;br /&gt;
__NOTOC__&lt;br /&gt;
UKCA is a joint NCAS-Met Office programme part of the NERC-Met Office Joint Climate and Weather Research Programme (JWCRP). Project partners are the Hadley Centre and the Universities of Cambridge, Leeds and Oxford. Our objective is to develop, evaluate and make available a UK community atmospheric chemistry-aerosol global model suitable for a range of topics in climate and environmental change research.&lt;br /&gt;
&lt;br /&gt;
[[Image:NCAS_logo_RGB.png|221px]] [[Image:Ukmo_logo.gif]] [[Image:Leeds_uni_logo.gif]] [[Image:Unicam_logo.gif]][[Image:2274_ox_brand_blue_rev_rect.png|221px]]&lt;br /&gt;
&lt;br /&gt;
=== UKCA Science Meeting 2026 ===&lt;br /&gt;
&lt;br /&gt;
The [[UKCA_science_meeting_2026|UKCA Science Meeting]] and hackathon is being held in Leeds from the 15th-17th July. &lt;br /&gt;
&lt;br /&gt;
=== UKCA source code available on GitHub ===&lt;br /&gt;
&lt;br /&gt;
UKCA is available under a permissive open-source BSD-3 license and can be found on GitHub here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/MetOffice/ukca&lt;br /&gt;
&lt;br /&gt;
=== UKCA YouTube channel ===&lt;br /&gt;
&lt;br /&gt;
Please visit our YouTube channel at&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/@ukchemistryaerosols&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here you will find video walkthroughs of UKCA training, as well as lectures from previous UKCA training events.&lt;br /&gt;
&lt;br /&gt;
===UKCA Training - January 2026===&lt;br /&gt;
&lt;br /&gt;
The NCAS &#039;&#039;&#039;Introduction to UKCA&#039;&#039;&#039; course took place on the 14th-16th January 2026 at Fairbairn House in Leeds (NCAS HQ). This covered using [[UKCA_Chemistry_and_Aerosol_Tutorials_at_UMvn13.9|UKCA at UM13.9]], and photos from the course are available on [https://www.linkedin.com/posts/national-centre-for-atmospheric-science_studyscience-studywithus-activity-7423033850211053569-JMSq LinkedIn]&lt;br /&gt;
&lt;br /&gt;
===== See Also =====&lt;br /&gt;
&amp;lt;div style=&amp;quot;column-count:2;-moz-column-count:2;-webkit-column-count:2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [http://ncas.nerc.ac.uk NCAS]&lt;br /&gt;
* [http://www.metoffice.gov.uk The Met Office]&lt;br /&gt;
* [http://www.see.leeds.ac.uk/research/icas/ University of Leeds School of Earth and Environment]&lt;br /&gt;
* [http://www.atm.ch.cam.ac.uk/ University of Cambridge Centre for Atmospheric Science]&lt;br /&gt;
* [http://www.atm.ox.ac.uk/ University of Oxford Atmospheric, Oceanic and Planetary Physics]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11154</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11154"/>
		<updated>2026-07-09T10:06:55Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, AJ&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; NLA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG, MR&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; PMJ&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
#* DG hasn&#039;t had time due to UKESM1.3 etc. After Summer should have more time.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
#* AJH may put the 2 things together. At the moment are word documents. Lfric_apps documentation is moving along slowly and there are a lot of gaps, but is in markdown (.md) format. Should move science into UKCA, then smaller docs in UM and lfric_apps for interface documentation.&lt;br /&gt;
#* MR - readthedocs might be better received by the academic community.&lt;br /&gt;
#* RW - should be hosted in UKCA - GitHub good at doing static documentation that can be rebuilt in Actions.&lt;br /&gt;
#* AJ - ACP &#039;living papers&#039;?&lt;br /&gt;
#* Split into 2 actions - RADAER API (AJH) and wider documentation more generally (??)&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* MD: GitHub user guide for Monsoon – the Monsoon3 user guide is linked from the ‘Community’ tab on Monsoon Teams channel: [https://code.metoffice.gov.uk/doc/monsoon3/github.html GitHub — Monsoon3 User Guide 1.0 documentation]&lt;br /&gt;
#* &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing.&lt;br /&gt;
#* MD has asked May Chim whether she would be able to add the fix over the summer after the expected release.&lt;br /&gt;
#* ongoing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* periodic exercise - &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH has been assisting the AQ team with some issues. Will catch-up with PMJ offline.&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
RW is kindly doing the VM partner testing this release (UM14.2).&lt;br /&gt;
&lt;br /&gt;
Matt Naylor is developing 3D chunking.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || Error using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 || DG tried to turn it on but it didn&#039;t work. Potentially do with &#039;&#039;&#039;#128&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
MR - Helen Burns has been working with paeloscientists - may have found a bug, will investigate and may report it.&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;br /&gt;
&lt;br /&gt;
Please fill in the UKESM survey: https://forms.gle/KB9QJQEwJys2BSgWA&lt;br /&gt;
&lt;br /&gt;
Please fill the NERC/UKRI Atmospheric Science Forward Look review form: https://engagementhub.ukri.org/nerc-research-and-skills-directorate/atmospheric-science-forward-look/&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11153</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11153"/>
		<updated>2026-07-09T09:59:48Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, AJ&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; NLA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG, MR&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; PMJ&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
#* DG hasn&#039;t had time due to UKESM1.3 etc. After Summer should have more time.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
#* AJH may put the 2 things together. At the moment are word documents. Lfric_apps documentation is moving along slowly and there are a lot of gaps, but is in markdown (.md) format. Should move science into UKCA, then smaller docs in UM and lfric_apps for interface documentation.&lt;br /&gt;
#* MR - readthedocs might be better received by the academic community.&lt;br /&gt;
#* RW - should be hosted in UKCA - GitHub good at doing static documentation that can be rebuilt in Actions.&lt;br /&gt;
#* AJ - ACP &#039;living papers&#039;?&lt;br /&gt;
#* Split into 2 actions - RADAER API (AJH) and wider documentation more generally (??)&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* MD: GitHub user guide for Monsoon – the Monsoon3 user guide is linked from the ‘Community’ tab on Monsoon Teams channel: [https://code.metoffice.gov.uk/doc/monsoon3/github.html GitHub — Monsoon3 User Guide 1.0 documentation]&lt;br /&gt;
#* &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing.&lt;br /&gt;
#* MD has asked May Chim whether she would be able to add the fix over the summer after the expected release.&lt;br /&gt;
#* ongoing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* periodic exercise - &#039;&#039;&#039;closed&#039;&#039;&#039;&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH has been assisting the AQ team with some issues. Will catch-up with PMJ offline.&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
RW is kindly doing the VM partner testing this release (UM14.2).&lt;br /&gt;
&lt;br /&gt;
Matt Naylor is developing 3D chunking.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || Error using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 || DG tried to turn it on but it didn&#039;t work. Potentially do with &#039;&#039;&#039;#128&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;br /&gt;
&lt;br /&gt;
Please fill in the UKESM survey: https://forms.gle/KB9QJQEwJys2BSgWA&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11152</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11152"/>
		<updated>2026-07-09T08:58:27Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; PMJ&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* MD: GitHub user guide for Monsoon – the Monsoon3 user guide is linked from the ‘Community’ tab on Monsoon Teams channel: [https://code.metoffice.gov.uk/doc/monsoon3/github.html GitHub — Monsoon3 User Guide 1.0 documentation]&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing.&lt;br /&gt;
#* MD has asked May Chim whether she would be able to add the fix over the summer after the expected release.&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || rror using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11151</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11151"/>
		<updated>2026-07-09T08:57:39Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; PMJ&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* MD: GitHub user guide for Monsoon – the Monsoon3 user guide is linked from the ‘Community’ tab on Monsoon Teams channel: [https://code.metoffice.gov.uk/doc/monsoon3/github.html GitHub — Monsoon3 User Guide 1.0 documentation]&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testingChim whether she would be able to add the fix over the summer after the expected release.&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || rror using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Code_management_group_minutes&amp;diff=11150</id>
		<title>Code management group minutes</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Code_management_group_minutes&amp;diff=11150"/>
		<updated>2026-07-07T09:16:05Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Minutes_of_the_code_management_group_meeting_15/5/2012|Minutes of meeting held 15/5/2012 in Cambridge]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_19/7/2012|Minutes of teleconference meeting held 19/7/2012]]&lt;br /&gt;
* [http://www.ukca.ac.uk/wiki/images/b/b5/UKCA_CMG_06Sept2012_final_3.pdf Minutes of teleconference meeting held 06/9/2012] ([[File:UKCA_CMG_06Sept2012_final_3.pdf]])&lt;br /&gt;
* [[Code management group minutes 24Oct2012|Minutes of the meeting held on 24th Oct 2012]]&lt;br /&gt;
* [[Code management group minutes 4Dec2012|Minutes of the meeting held on 4 Dec 2012]]&lt;br /&gt;
* [[Notes_of_the_code_management_group_meeting_21/3/2013|Notes of the code management group meeting 21/3/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_22/5/2013|Minutes of teleconference meeting held on 22/5/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_9/7/2013|Minutes of teleconference meeting held on 9/7/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_3/9/2013|Minutes of teleconference meeting held on 3/9/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_17/10/2013|Minutes of teleconference meeting held on 17/10/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_14/02/2014|Minutes of teleconference meeting held on 14/02/2014]]&lt;br /&gt;
* [[Actions_from_the_code_management_group_meeting_18/03/2014|Actions from teleconference meeting held on 18/03/2014]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_26/06/2014|Minutes from teleconference meeting held on 26/06/2014]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_16/09/2014|Minutes from teleconference meeting held on 16/09/2014]]&lt;br /&gt;
* [[Minutes of the code management group meeting 11/12/2014]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-03-04]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-04-23: LFRic Coupling]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-05-06]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-09-18]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-01-12]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-07-22]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-09-23]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2017-07-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2017-10-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-02-21]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-04-17]] ({{pdf|jwcrp_workplan_v1.pdf|JWCRP Workplan}})&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-06-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-09-05]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-11-12]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-01-25]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-04-01]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-06-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-09-16]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-11-04]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-01-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-03-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-05-05]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-09-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-12-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-02-26]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-04-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-06-28]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-09-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-11-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-02-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-03-29]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-05-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-07-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-09-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-11-16]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-01-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-03-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-05-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-07-03]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-09-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-11-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-01-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-03-25]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-05-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-09-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-11-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-01-09]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-03-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-05-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-07-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-09-18]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-11-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-01-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-05-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-07-09]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Minutes]]&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-10&amp;diff=11149</id>
		<title>Minutes of the code management group meeting 2026-07-10</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-10&amp;diff=11149"/>
		<updated>2026-07-07T09:15:48Z</updated>

		<summary type="html">&lt;p&gt;Nla27: Nla27 moved page Minutes of the code management group meeting 2026-07-10 to Minutes of the code management group meeting 2026-07-09&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Minutes of the code management group meeting 2026-07-09]]&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11148</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11148"/>
		<updated>2026-07-07T09:15:48Z</updated>

		<summary type="html">&lt;p&gt;Nla27: Nla27 moved page Minutes of the code management group meeting 2026-07-10 to Minutes of the code management group meeting 2026-07-09&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || rror using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11147</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11147"/>
		<updated>2026-07-07T09:14:18Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || rror using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11146</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11146"/>
		<updated>2026-07-07T09:13:38Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Issues/PRs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || rror using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
DG - small bug in STASH diagnostics at chem version 132&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
PMJ - looking to send full domain and use ASAD/NR for RAQ, but taking time. Want to be able to use parallelisations there.&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
AJH hasn&#039;t got microplastics rose-stem test working yet, will make time later. Is not sure what is going on. CH can provide input on that.&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11145</id>
		<title>Minutes of the code management group meeting 2026-07-09</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-07-09&amp;diff=11145"/>
		<updated>2026-07-07T09:13:12Z</updated>

		<summary type="html">&lt;p&gt;Nla27: Created page with &amp;quot;Code management group minutes  ==Teleconference Details==  &amp;#039;&amp;#039;&amp;#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Meeting via Teams - see link in calendar invitation&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Met Office:&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;Cambridge:&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;Leeds:&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;Canterbury:&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;CSIRO:&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Apologies:&amp;#039;&amp;#039;&amp;#039;   &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&amp;#039;&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;  == Actions from this meeting ==    == Actions from the Last Meeting  ==  # (ongoing) GM/...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 9th July 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 10TH SEPTEMBER 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Generally, people have found GitHub OK to work with, but found trac easier to navigate.&lt;br /&gt;
&lt;br /&gt;
* Need to be on reviewers list to be able to make edits to other PRs and also add links. AJH to contact SSD team. May be due to UKCA being BSD-3 and open source. Could perhaps make a change to the CONTRIBUTORS.md and then add people to be able to edit once that has been done.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 161 || rror using diagnostic 50-332 with chem version 132 (&amp;quot;RXN NOT FOUND J H2SO4 PHOTON -&amp;gt; SO3 OH&amp;quot;) || || || Mohit says &amp;quot;I believe  this means that for chem_schemes=121+ the reaction no longer yields just SO3 and OH? This would mean that there is a bug in asad_flux_dat where this extra product is not included in set of reactions for chem_scheme 121+.&amp;quot; For 121+ the reaction now also yields H as well as SO3 and OH (see ukca_chem_master). &amp;lt;br/&amp;gt;Found in vn13.9 ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
DG - small bug in STASH diagnostics at chem version 132&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
PMJ - looking to send full domain and use ASAD/NR for RAQ, but taking time. Want to be able to use parallelisations there.&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
AJH hasn&#039;t got microplastics rose-stem test working yet, will make time later. Is not sure what is going on. CH can provide input on that.&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Code_management_group_minutes&amp;diff=11144</id>
		<title>Code management group minutes</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Code_management_group_minutes&amp;diff=11144"/>
		<updated>2026-07-07T09:04:17Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Minutes_of_the_code_management_group_meeting_15/5/2012|Minutes of meeting held 15/5/2012 in Cambridge]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_19/7/2012|Minutes of teleconference meeting held 19/7/2012]]&lt;br /&gt;
* [http://www.ukca.ac.uk/wiki/images/b/b5/UKCA_CMG_06Sept2012_final_3.pdf Minutes of teleconference meeting held 06/9/2012] ([[File:UKCA_CMG_06Sept2012_final_3.pdf]])&lt;br /&gt;
* [[Code management group minutes 24Oct2012|Minutes of the meeting held on 24th Oct 2012]]&lt;br /&gt;
* [[Code management group minutes 4Dec2012|Minutes of the meeting held on 4 Dec 2012]]&lt;br /&gt;
* [[Notes_of_the_code_management_group_meeting_21/3/2013|Notes of the code management group meeting 21/3/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_22/5/2013|Minutes of teleconference meeting held on 22/5/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_9/7/2013|Minutes of teleconference meeting held on 9/7/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_3/9/2013|Minutes of teleconference meeting held on 3/9/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_17/10/2013|Minutes of teleconference meeting held on 17/10/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_14/02/2014|Minutes of teleconference meeting held on 14/02/2014]]&lt;br /&gt;
* [[Actions_from_the_code_management_group_meeting_18/03/2014|Actions from teleconference meeting held on 18/03/2014]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_26/06/2014|Minutes from teleconference meeting held on 26/06/2014]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_16/09/2014|Minutes from teleconference meeting held on 16/09/2014]]&lt;br /&gt;
* [[Minutes of the code management group meeting 11/12/2014]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-03-04]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-04-23: LFRic Coupling]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-05-06]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-09-18]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-01-12]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-07-22]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-09-23]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2017-07-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2017-10-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-02-21]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-04-17]] ({{pdf|jwcrp_workplan_v1.pdf|JWCRP Workplan}})&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-06-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-09-05]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-11-12]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-01-25]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-04-01]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-06-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-09-16]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-11-04]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-01-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-03-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-05-05]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-09-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-12-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-02-26]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-04-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-06-28]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-09-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-11-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-02-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-03-29]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-05-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-07-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-09-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-11-16]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-01-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-03-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-05-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-07-03]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-09-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-11-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-01-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-03-25]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-05-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-09-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-11-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-01-09]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-03-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-05-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-07-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-09-18]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-11-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-01-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-05-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-07-10]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Minutes]]&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11143</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11143"/>
		<updated>2026-05-14T10:51:56Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Actions from this meeting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, PMJ, JCK,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; LA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; CH&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
#* Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
#* AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (this happened - not sure if follow up is required) NLA to mention MASS issues at the next MMG&lt;br /&gt;
#* Waiting for new MASS&lt;br /&gt;
# (new) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH to request UKCA tags for lfric_apps and UM , so that we are able to keep track of all UKCA GitHub pull requests and issues at the next CMG meeting.&lt;br /&gt;
#* Closed - done&lt;br /&gt;
# (new) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified.&lt;br /&gt;
#* Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (new) AJH has contacted the LFRic core team to inform them of the obsolete instructions for building lfric core with FCM.&lt;br /&gt;
#* There may be an automated system for making instructions.&lt;br /&gt;
#* Closed&lt;br /&gt;
# (new) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH and Pedro to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH, MD, PMJ to catch-up offline&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Generally, people have found GitHub OK to work with, but found trac easier to navigate.&lt;br /&gt;
&lt;br /&gt;
* Need to be on reviewers list to be able to make edits to other PRs and also add links. AJH to contact SSD team. May be due to UKCA being BSD-3 and open source. Could perhaps make a change to the CONTRIBUTORS.md and then add people to be able to edit once that has been done.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer || RW to double-check notes - bug we introduced. Can be &#039;&#039;&#039;closed&#039;&#039;&#039;. Need LFRic tests with dynamic scheduling.&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays || Fixed in LFRic, CLOSE - UM below.&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || Closed&lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
DG - small bug in STASH diagnostics at chem version 132&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
PMJ - looking to send full domain and use ASAD/NR for RAQ, but taking time. Want to be able to use parallelisations there.&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
AJH hasn&#039;t got microplastics rose-stem test working yet, will make time later. Is not sure what is going on. CH can provide input on that.&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|| AJH || LFRic PS49 milestone including aerosols (GLOMAP), deadline is Summer 2027. Lots of different groups now interested. Might be aiming to turn off the UM at the start of 2028.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;br /&gt;
&lt;br /&gt;
DG - UKCA meeting in July.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11142</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11142"/>
		<updated>2026-05-14T10:51:43Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, PMJ, JCK,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; LA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; CH&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke. Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it. AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (ongoing) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified. Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (ongoing) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
# (ongoing) AJH, MD, and PMJ to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
#* Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
#* AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (this happened - not sure if follow up is required) NLA to mention MASS issues at the next MMG&lt;br /&gt;
#* Waiting for new MASS&lt;br /&gt;
# (new) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH to request UKCA tags for lfric_apps and UM , so that we are able to keep track of all UKCA GitHub pull requests and issues at the next CMG meeting.&lt;br /&gt;
#* Closed - done&lt;br /&gt;
# (new) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified.&lt;br /&gt;
#* Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (new) AJH has contacted the LFRic core team to inform them of the obsolete instructions for building lfric core with FCM.&lt;br /&gt;
#* There may be an automated system for making instructions.&lt;br /&gt;
#* Closed&lt;br /&gt;
# (new) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH and Pedro to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH, MD, PMJ to catch-up offline&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Generally, people have found GitHub OK to work with, but found trac easier to navigate.&lt;br /&gt;
&lt;br /&gt;
* Need to be on reviewers list to be able to make edits to other PRs and also add links. AJH to contact SSD team. May be due to UKCA being BSD-3 and open source. Could perhaps make a change to the CONTRIBUTORS.md and then add people to be able to edit once that has been done.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer || RW to double-check notes - bug we introduced. Can be &#039;&#039;&#039;closed&#039;&#039;&#039;. Need LFRic tests with dynamic scheduling.&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays || Fixed in LFRic, CLOSE - UM below.&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || Closed&lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
DG - small bug in STASH diagnostics at chem version 132&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
PMJ - looking to send full domain and use ASAD/NR for RAQ, but taking time. Want to be able to use parallelisations there.&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
AJH hasn&#039;t got microplastics rose-stem test working yet, will make time later. Is not sure what is going on. CH can provide input on that.&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|| AJH || LFRic PS49 milestone including aerosols (GLOMAP), deadline is Summer 2027. Lots of different groups now interested. Might be aiming to turn off the UM at the start of 2028.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;br /&gt;
&lt;br /&gt;
DG - UKCA meeting in July.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11141</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11141"/>
		<updated>2026-05-14T10:49:57Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, PMJ, JCK,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; LA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; CH&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
#* Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
#* AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (this happened - not sure if follow up is required) NLA to mention MASS issues at the next MMG&lt;br /&gt;
#* Waiting for new MASS&lt;br /&gt;
# (new) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH to request UKCA tags for lfric_apps and UM , so that we are able to keep track of all UKCA GitHub pull requests and issues at the next CMG meeting.&lt;br /&gt;
#* Closed - done&lt;br /&gt;
# (new) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified.&lt;br /&gt;
#* Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (new) AJH has contacted the LFRic core team to inform them of the obsolete instructions for building lfric core with FCM.&lt;br /&gt;
#* There may be an automated system for making instructions.&lt;br /&gt;
#* Closed&lt;br /&gt;
# (new) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH and Pedro to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH, MD, PMJ to catch-up offline&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Generally, people have found GitHub OK to work with, but found trac easier to navigate.&lt;br /&gt;
&lt;br /&gt;
* Need to be on reviewers list to be able to make edits to other PRs and also add links. AJH to contact SSD team. May be due to UKCA being BSD-3 and open source. Could perhaps make a change to the CONTRIBUTORS.md and then add people to be able to edit once that has been done.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer || RW to double-check notes - bug we introduced. Can be &#039;&#039;&#039;closed&#039;&#039;&#039;. Need LFRic tests with dynamic scheduling.&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays || Fixed in LFRic, CLOSE - UM below.&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || Closed&lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
DG - small bug in STASH diagnostics at chem version 132&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
PMJ - looking to send full domain and use ASAD/NR for RAQ, but taking time. Want to be able to use parallelisations there.&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
AJH hasn&#039;t got microplastics rose-stem test working yet, will make time later. Is not sure what is going on. CH can provide input on that.&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|| AJH || LFRic PS49 milestone including aerosols (GLOMAP), deadline is Summer 2027. Lots of different groups now interested. Might be aiming to turn off the UM at the start of 2028.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;br /&gt;
&lt;br /&gt;
DG - UKCA meeting in July.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11140</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11140"/>
		<updated>2026-05-14T10:22:28Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, PMJ, JCK,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; LA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; CH&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
#* Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
#* AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (this happened - not sure if follow up is required) NLA to mention MASS issues at the next MMG&lt;br /&gt;
#* Waiting for new MASS&lt;br /&gt;
# (new) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH to request UKCA tags for lfric_apps and UM , so that we are able to keep track of all UKCA GitHub pull requests and issues at the next CMG meeting.&lt;br /&gt;
#* Closed - done&lt;br /&gt;
# (new) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified.&lt;br /&gt;
#* Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (new) AJH has contacted the LFRic core team to inform them of the obsolete instructions for building lfric core with FCM.&lt;br /&gt;
#* There may be an automated system for making instructions.&lt;br /&gt;
#* Closed&lt;br /&gt;
# (new) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH and Pedro to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH, MD, PMJ to catch-up offline&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Generally, people have found GitHub OK to work with, but found trac easier to navigate.&lt;br /&gt;
&lt;br /&gt;
* Need to be on reviewers list to be able to make edits to other PRs and also add links. AJH to contact SSD team. May be due to UKCA being BSD-3 and open source. Could perhaps make a change to the CONTRIBUTORS.md and then add people to be able to edit once that has been done.&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer || RW to double-check notes - bug we introduced. Can be &#039;&#039;&#039;closed&#039;&#039;&#039;. Need LFRic tests with dynamic scheduling.&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays || Fixed in LFRic, CLOSE - UM below.&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || Closed&lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
DG - small bug in STASH diagnostics at chem version 132&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
PMJ - looking to send full domain and use ASAD/NR for RAQ, but taking time. Want to be able to use parallelisations there.&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
AJH hasn&#039;t got microplastics rose-stem test working yet, will make time later. Is not sure what is going on. CH can provide input on that.&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|| AJH || LFRic PS49 milestone including aerosols (GLOMAP), deadline is Summer 2027. Lots of different groups now interested. Might be aiming to turn off the UM at the start of 2028.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11138</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11138"/>
		<updated>2026-05-14T09:22:23Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Actions from the Last Meeting */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, PMJ, JCK,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; LA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; CH&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
#* Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
#* AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (this happened - not sure if follow up is required) NLA to mention MASS issues at the next MMG&lt;br /&gt;
#* Waiting for new MASS&lt;br /&gt;
# (new) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH to request UKCA tags for lfric_apps and UM , so that we are able to keep track of all UKCA GitHub pull requests and issues at the next CMG meeting.&lt;br /&gt;
#* Closed - done&lt;br /&gt;
# (new) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified.&lt;br /&gt;
#* Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (new) AJH has contacted the LFRic core team to inform them of the obsolete instructions for building lfric core with FCM.&lt;br /&gt;
#* There may be an automated system for making instructions.&lt;br /&gt;
#* Closed&lt;br /&gt;
# (new) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH and Pedro to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* AJH, MD, PMJ to catch-up offline&lt;br /&gt;
#* ongoing&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer ||&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays ||&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11137</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11137"/>
		<updated>2026-05-14T09:21:49Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; MS, MD, AJH, PMJ, JCK,&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; LA, RW&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039; DG&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039; CH&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
#* Coding needed to get changes in. Have a way forward.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
#* AJH working on the RADAER API. Have made notes in a different document, and then will merge into single document. Expected around September&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (this happened - not sure if follow up is required) NLA to mention MASS issues at the next MMG&lt;br /&gt;
#* Waiting for new MASS&lt;br /&gt;
# (new) NLA / MD to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH to request UKCA tags for lfric_apps and UM , so that we are able to keep track of all UKCA GitHub pull requests and issues at the next CMG meeting.&lt;br /&gt;
#* Closed - done&lt;br /&gt;
# (new) MD is developing workaround for Bug in Lfric copy of ukca_volcanic_so2. However, this will not add functionality in lfric. A developer for this needs to be identified.&lt;br /&gt;
#* Lodged in LFRic, confirmed with May Chim and is happy to do for UM, but may have issues with testing&lt;br /&gt;
# (new) AJH has contacted the LFRic core team to inform them of the obsolete instructions for building lfric core with FCM.&lt;br /&gt;
#* There may be an automated system for making instructions.&lt;br /&gt;
#* Closed&lt;br /&gt;
# (new) AJH to tidy up the priority table. Some items are now complete and should be marked as such.&lt;br /&gt;
#* Ongoing&lt;br /&gt;
# (new) AJH and Pedro to discuss method for checking diagnostic KGOs with NetCDF files.&lt;br /&gt;
#* Closed&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer ||&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays ||&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11133</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11133"/>
		<updated>2026-05-11T12:48:03Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Round (virtual) Table of current activities, plans */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (new) AJH to chair next meeting&lt;br /&gt;
# (new) NLA to mention MASS issues at the next MMG&lt;br /&gt;
# (new) NLA to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer ||&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays ||&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || NLA &amp;amp; RW are submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11132</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11132"/>
		<updated>2026-05-11T12:47:37Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Open Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (new) AJH to chair next meeting&lt;br /&gt;
# (new) NLA to mention MASS issues at the next MMG&lt;br /&gt;
# (new) NLA to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side &amp;lt;br/&amp;gt; Also has problems with GLOMAP-clim ||&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. &amp;lt;br/&amp;gt; AJH will make some time to run it with the thread santizer ||&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays ||&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || Submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11131</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11131"/>
		<updated>2026-05-11T12:47:08Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Open Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (new) AJH to chair next meeting&lt;br /&gt;
# (new) NLA to mention MASS issues at the next MMG&lt;br /&gt;
# (new) NLA to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side || Also has problems with GLOMAP-clim&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. || AJH will make some time to run it with the thread santizer&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays ||&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || Submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11130</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11130"/>
		<updated>2026-05-11T12:46:30Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Bugs/Bugfixes (NLA) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (new) AJH to chair next meeting&lt;br /&gt;
# (new) NLA to mention MASS issues at the next MMG&lt;br /&gt;
# (new) NLA to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side || Also has problems with GLOMAP-clim&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. || AJH will make some time to run it with the thread santizer&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || Mohit Dalvi || Since lfric_apps-vn2.2 &amp;lt;br/&amp;gt; Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; &amp;lt;br/&amp;gt; [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays ||&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || Alan J Hewitt || Since lfric vn2.2 &amp;lt;br/&amp;gt; FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] &amp;lt;br/&amp;gt; aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || May Chim? || Since UM vn13.9 &amp;lt;br/&amp;gt; Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  &lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes || || In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. &amp;lt;br/&amp;gt; Since UM vn11.x &amp;lt;br/&amp;gt; Should be turned Off in rose metadata for Strat schemes ||   &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Mismatch in tracer names indexing across UKCA API. || || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output &amp;lt;br/&amp;gt; Since UM vn10.6? ||  &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || Submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11129</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11129"/>
		<updated>2026-05-11T12:42:36Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Open Bugs */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (new) AJH to chair next meeting&lt;br /&gt;
# (new) NLA to mention MASS issues at the next MMG&lt;br /&gt;
# (new) NLA to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side || Also has problems with GLOMAP-clim&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. || AJH will make some time to run it with the thread santizer&lt;br /&gt;
|-&lt;br /&gt;
|| 156 || Bug in Lfric copy of &#039;&#039;ukca_volcanic_so2&#039;&#039;, &amp;lt;tt&amp;gt;true_latitude, true_longitude&amp;lt;/tt&amp;gt; used without allocating. Fails on ARCHER2 with CCE compiler || [https://github.com/MetOffice/lfric_apps/pull/133 lfric_apps:PR133] || || Since lfric_apps-vn2.2 || Temporarily allocate &#039;&#039;true-latitude&#039;&#039;, &#039;&#039;true_longitude&#039;&#039;, &#039;&#039;weight_volc_vertdist&#039;&#039; || [https://code.metoffice.gov.uk/trac/lfric_apps/changeset/9670/main/trunk/interfaces/physics_schemes_interface/source/legacy/ukca_interface/ukca_volcanic_so2.F90 lfric_apps:#965] removed UM dependencies i.e. &#039;&#039;trignometric_mod&#039;&#039; without providing alternative source for the arrays  || &#039;&#039;&#039;OPEN&#039;&#039;&#039; || Mohit Dalvi&lt;br /&gt;
|-&lt;br /&gt;
|| 157 || Bug in calculation of aerosol AOD from LFRic || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/1089 lfric_apps:#1089] &amp;lt;br/&amp;gt; GitHub [https://github.com/MetOffice/lfric_apps/issues/41 lfric_apps:#41] || || Since lfric vn2.2 || FCM [https://code.metoffice.gov.uk/trac/lfric_apps/log/main/branches/dev/alanjhewitt/git_migration_AOD_bug git_migration_AOD_bug] &amp;lt;br/&amp;gt; Github [https://github.com/alanjhewitt/lfric_apps/tree/AOD_bug AOD_bug] || aerosol AOD was developed in [https://code.metoffice.gov.uk/trac/lfric_apps/ticket/440 lfric_apps:#440] and it looked fine at low resolution. &amp;lt;br/&amp;gt; Running at high resolution identified an addressing error. &amp;lt;br/&amp;gt; Fix has been developed and will be in review for Jan 2026 deadline. || &#039;&#039;&#039;OPEN&#039;&#039;&#039; || Alan J Hewitt&lt;br /&gt;
|-&lt;br /&gt;
|| 158 || While analysing #156, it was noticed that in the UM version of `ukca_volcanic_SO2` the array &#039;&#039;weight_volc_vertdist&#039;&#039; is being populated without being allocated. || || || Since UM vn13.9 || Needs to be allocated as &#039;&#039;weight_volc_vertdist(l2-l1+1)&#039;&#039; and deallocated in each iteration over &#039;&#039;nreupt&#039;&#039; ||  || &#039;&#039;&#039;OPEN&#039;&#039;&#039; || May Chim?&lt;br /&gt;
|-&lt;br /&gt;
|| 159 || Logical &#039;&#039;&#039;l_ukca_prescribech4&#039;&#039;&#039; should not be active in &#039;&#039;Strat&#039;&#039; schemes.&amp;lt;br/&amp;gt; In &#039;&#039;ukca_add_emiss&#039;&#039; the logical enables overwriting of CH4 surface values with prescribed concentrations. However, later on in the routine this action is repeated in a section specific to &#039;Strat&#039; schemes, where use of prescribed vs emitted CH4 is governed by &#039;&#039;l_ukca_emisdrvn_ch4&#039;&#039;, thus over-ridding the first logical. || || || Since UM vn11.x || Should be turned Off in rose metadata for Strat schemes ||  || &#039;&#039;&#039;OPEN&#039;&#039;&#039; || &lt;br /&gt;
|-&lt;br /&gt;
|| 160 || Could be related to &#039;&#039;&#039;#143&#039;&#039;&#039;. Mismatch in tracer names indexing across UKCA API. Printing from &#039;&#039;UKCA_TRACER_COPY_TO/FROM_UM&#039;&#039;, and comparing &#039;&#039;all_tracers_names&#039;&#039; vs &#039;&#039;tr_names&#039;&#039; shows {{pdf|ukca_tracer_name_index.pdf|misalignment}} in names of species. &#039;&#039;Note:&#039;&#039; this may be just limited to the population of &#039;&#039;tr_names&#039;&#039; array as any actual misalignment would have been noticed for radiative feedback as well as tracers/ diagnostics in output || || || Since UM vn10.6? ||  ||  || &#039;&#039;&#039;OPEN&#039;&#039;&#039; || &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || Submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11128</id>
		<title>Minutes of the code management group meeting 2026-05-14</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Minutes_of_the_code_management_group_meeting_2026-05-14&amp;diff=11128"/>
		<updated>2026-05-11T12:40:26Z</updated>

		<summary type="html">&lt;p&gt;Nla27: Created page with &amp;quot;Code management group minutes  ==Teleconference Details==  &amp;#039;&amp;#039;&amp;#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Meeting via Teams - see link in calendar invitation&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Met Office:&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;Cambridge:&amp;#039;&amp;#039;&amp;#039;   &amp;#039;&amp;#039;&amp;#039;Leeds:&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Canterbury:&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;CSIRO:&amp;#039;&amp;#039;&amp;#039;  &amp;#039;&amp;#039;&amp;#039;Apologies:&amp;#039;&amp;#039;&amp;#039;   &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&amp;#039;&amp;#039;&amp;#039;&amp;lt;/span&amp;gt;  == Actions from this meeting ==    == Actions from the Last Meeting  ==  # (ongoing) GM/DG to up...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Code management group minutes]]&lt;br /&gt;
&lt;br /&gt;
==Teleconference Details==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Thursday 14th May 2026, 10.00am - 11.30am GMT&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Meeting via Teams - see link in calendar invitation&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Met Office:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Cambridge:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Leeds:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Canterbury:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;CSIRO:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Apologies:&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;&#039;&#039;NEXT MEETING WILL BE THURSDAY 9TH JULY 2026, 10.00-11.30 GMT&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Actions from this meeting ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Actions from the Last Meeting  ==&lt;br /&gt;
&lt;br /&gt;
# (ongoing) GM/DG to update table on UKCA wiki documenting [[GLOMAP versions]]. DG/GM to consider the code and lodging process for GLOMAP developments and consider a suitable rose-stem test supported by NLA. GM Will work with DG to get a subset to commit. AJH to review. Graham has found code needed for meteoric smoke.&lt;br /&gt;
# (ongoing) AJH on update API document to UM13.6 release. NLA to provide feedback before it is be circulated. There is a comprehensive overhaul for 13.7. AJH to make document available for wider information/comment - see [https://code.metoffice.gov.uk/trac/ukca/wiki/APIandUnifiedModelDependencies here]. AJH won&#039;t do anything with API until GitHub release is out, and then will add some things to it.&lt;br /&gt;
# (ongoing) ALL look at [https://code.metoffice.gov.uk/trac/um/ticket/6203 um:#6203 showing other unprotected rose-stem options] and think about any code/settings they are interested in. May be able to use GitHub actions.&lt;br /&gt;
# (ongoing) ALL to consider ordering of the [[Priorities|Progress with Priorities table]] and highlight things that should be higher priority, and any other tasks that need to be included.&lt;br /&gt;
# (new) AJH to chair next meeting&lt;br /&gt;
# (new) NLA to mention MASS issues at the next MMG&lt;br /&gt;
# (new) NLA to put a link to Monsoon3 guide to GitHub in the minutes&lt;br /&gt;
&lt;br /&gt;
== Issues/PRs ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;REMEMBER TO LINK UKCA IN YOUR UM AND LFRIC_APPS (&amp;amp; OTHER REPO) ISSUES/PRs&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Issues ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/issues UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
=== Pull Requests ===&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/MetOffice/ukca/pulls UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/um/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 UM - Linked UKCA]&lt;br /&gt;
* [https://github.com/MetOffice/lfric_apps/pulls?q=is%3Aissue%20state%3Aopen%20label%3A%22Linked%20UKCA%22 lfric_apps - Linked UKCA]&lt;br /&gt;
&lt;br /&gt;
== Progress with Priorities (NLA) ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;ACTION REQUEST FROM UKCA SCIENCE &amp;amp; MANAGEMENT BOARD:&#039;&#039;&#039; CMG to provide list of priorities &amp;amp; their status, with particular thought to UKESM2 changes that will be required.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;[[Priorities|Progress with Priorities table]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Bugs/Bugfixes (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== [[Bugfixes_(new_approach)|Open Bugs]] ====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Description &lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Owner&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan=2&amp;quot;;|Comments from this meeting&lt;br /&gt;
|-&lt;br /&gt;
| 124 || H2 and N2 cannot be set for RCP and WMOA1 scenario routines || [https://code.metoffice.gov.uk/trac/um/ticket/5620 UM:#5620]  [https://code.metoffice.gov.uk/trac/um/log/main/branches/dev/mohitdalvi/vn13.8.1_ukca_rcp_read_h2_n2 vn13.8.1_ukca_rcp_read_h2_n2] || Mohit || Values are hard-wired in the code and cannot be changed without a branch. &amp;lt;br/&amp;gt; N2 values seem to be read from namelist (for UM, and RCP scenarios). Branch adds possibility to read H2 from either RCP or namelist. Will probably require updating all UKCA-chem apps to maintain KGO. &#039;&#039;More testing required&#039;&#039; &amp;lt;br/&amp;gt; MD has done a little bit of work. N2 is read from namelist, but can now read from RCP file for H2 ||&lt;br /&gt;
|-&lt;br /&gt;
| 128 || Bug in UKCA stratospheric chemistry diagnostics || [https://code.metoffice.gov.uk/trac/um/ticket/5839 UM:#5839] || Luke Abraham ||  The indexing/values of diagnostics m01s50i101-i104 are incorrect. Fixes provided for vn11.1 and vn11.7. May affect CMIP6 diagnostics &amp;lt;br/&amp;gt; Does this need fixing for CMIP7? &amp;lt;br/&amp;gt; Need to discuss with CDDS/diagnostics team as might break existing workflow. || &lt;br /&gt;
|-&lt;br /&gt;
|| 143 || Error in print statements from UKCA_TRACERS_COPY_FROM_UM || Not yet || ??? ||  The final species listed in the diagnostic print statement seems to have very large concentrations (O(1E+08)) compared to others in the ppm-ppt range. Does not seem to affect model output. Reported by James Weber. || &lt;br /&gt;
|-&lt;br /&gt;
|| 144 || interchangeable use of specific humidity and water vapour mixing ratio || [https://code.metoffice.gov.uk/trac/um/ticket/6813 #6813] || John Hemmings and ??? ||UKCA includes calculations of relative humidity, clear-sky relative humidity and saturation vapour pressure. Relative humidity calculations should be based on water vapour mass mixing ratio but are in part based on specific humidity. Also, the calculation of saturation vapour pressure is derived from saturation mixing ratio but uses a formula for deriving SVP from saturation specific humidity. This interchangeable use of specific humidity (ratio for moist air) and mixing ratio (ratio for dry air) in existing configurations introduces small numerical errors in UM and LFRic model runs. These bugs were identified at UM version vn12.2 and have been highlighted by comments in code lodged with UM ticket [https://code.metoffice.gov.uk/trac/um/ticket/6660 #6660] (in ukca_main1-ukca_main1.F90 and atmos_ukca_humidity_mod.F90). All UKCA configurations are affected. &amp;lt;br/&amp;gt; Alan - This should be fixed by Met Office. &amp;lt;br/&amp;gt; I will speak with Anthony and Alistair about resourcing to fix this. &amp;lt;br/&amp;gt; It requires good understanding of humidity to work through this problem, otherwise I would have done this myself. &amp;lt;br/&amp;gt; When we pass stuff through the argument list, the name changes which makes things complicated. Should we pass a structure with all the humidity fields in? There is a UKCA bespoke version of humidity calculations for non-UM applications. Internal Met Office problem - will need to find someone to fix it. &amp;lt;br/&amp;gt; AJH to talk with AJ and Alistair Sellar. GM can cross-check. &amp;lt;br/&amp;gt;  Ticket has 2 parts. JH suggests doing it in 2 tickets, 1 technical, 1 bug fix. JH could do technical part (either as callback routines or separate fields). Then would need UM &amp;amp; LFRic tickets for the bug fix, as calculations could be done in the parent or as callback routine. &amp;lt;br/&amp;gt; Some work has been done - technical change has been done in ukca:#245. Went in at UM13.9. This option is now used by the UM and LFRic. Buggy calculations are now outside of UKCA - will require UM and LFRic changes to fix those. Might not be a large amount of work, but problem needs to be well understood. Also consider what field is being passed in the tracer list - currently q but should be mixing ratio. &amp;lt;br/&amp;gt; Some has been fixed - bug has been shifted outside of UKCA. Don&#039;t know of anyone working on it currently. Someone will need to go through and check we are passing the correct one - need someone on aerosol side and on chemistry side || Also has problems with GLOMAP-clim&lt;br /&gt;
|-&lt;br /&gt;
|| 153 || bug in 2D photolysis || || || While working on developments for the new photolysis API, we’ve noticed a likely error in the current implementation of the 2D photolysis. The 2D photolysis files are tabulated by day of year at 5-day resolution, amongst other variables. The interpolation to the actual day of year is currently done in the read subroutine ([https://code.metoffice.gov.uk/trac/um/browser/main/trunk/src/control/ukca_interface/ukca_phot2d.F90 read2d_opt or read2d_orig]). However, this subroutine is only called once on the first timestep. For multi-day runs, the photolysis rates will not be updated as the day of year increases. Since nobody is using the 2D photolysis at the moment this is likely of low to no impact. &amp;lt;br/&amp;gt; Might be used by NUAQ &amp;lt;br/&amp;gt; BD or VB will know more - PMJ will ask ||&lt;br /&gt;
|-&lt;br /&gt;
|| 154 || bug in tropospheric heterogeneous chemistry || || || Within GLOMAP the &amp;lt;tt&amp;gt;wetdp&amp;lt;/tt&amp;gt; variable is defined as the wet diameter in m. However, in &amp;lt;tt&amp;gt;ukca_trop_hetchem&amp;lt;/tt&amp;gt; this is used as a radius in cm. This results in a factor of 50x error. &amp;lt;br/&amp;gt; Steve Turnock might be using this. NLA to contact ST and YG about this. ||&lt;br /&gt;
|-&lt;br /&gt;
|| 155 || OMP dynamic scheduling race condition || [https://code.metoffice.gov.uk/trac/ukca/ticket/321 ukca:#321] || || When using OpenMP with dynamic, as opposed to the standard static, scheduling, checksums were failing with lfric_apps. This indicates a race condition likely within the ASAD chemical package and so would affect the UM as well as LFRic. Further testing is needed. || AJH will make some time to run it with the thread santizer&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== [[Redundant code|Redundant Code]] (NLA) ==&lt;br /&gt;
&lt;br /&gt;
==== Code for deletion ====&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant code|REDUNDANT CODE]] TABLE AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Desirable Science not tested ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PLEASE REMEMBER TO EDIT THE ORIGINAL [[Redundant_code#Table_of_code_still_desired_but_which_is_not_tested|SCIENCE NOT TESTED TABLE]] AND NOT THIS PAGE&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;See also the complete list of [[Unprotected_Options|unprotected rose-stem options]]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|# &lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
!style=&amp;quot;text-align:top;|Ticket&lt;br /&gt;
!style=&amp;quot;text-align:top;|Remarks&lt;br /&gt;
!style=&amp;quot;text-align:top;|Owner&lt;br /&gt;
|-&lt;br /&gt;
| 1 || Use of tropospheric (2D) look-up table photolysis ||  || Still useful to compare against FastJX. May be used for a &amp;quot;fast&amp;quot; configuration. Will be doen as part of photolysis refactoring ||  &lt;br /&gt;
|-&lt;br /&gt;
| 2 || TropIsop chemistry configuration ||  || May be useful in a &amp;quot;fast&amp;quot; configuration &amp;amp; to drive GLOMAP-mode. Useful for low-top configurations. ||  &lt;br /&gt;
|-&lt;br /&gt;
| 3 || Strat chemistry configuration ||  || Useful for stratospheric studies, particularly with a high model top. || Luke Abraham&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Round (virtual) Table of current activities, plans ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Person&lt;br /&gt;
!style=&amp;quot;text-align:top;rowspan:2&amp;quot;;|Activity&lt;br /&gt;
|-&lt;br /&gt;
|| NLA || Submitting to SSI RSMF for the Box Model&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== A.O.B. &amp;amp; D.N.M. (NLA) ==&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=Code_management_group_minutes&amp;diff=11127</id>
		<title>Code management group minutes</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=Code_management_group_minutes&amp;diff=11127"/>
		<updated>2026-05-11T12:33:04Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Minutes_of_the_code_management_group_meeting_15/5/2012|Minutes of meeting held 15/5/2012 in Cambridge]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_19/7/2012|Minutes of teleconference meeting held 19/7/2012]]&lt;br /&gt;
* [http://www.ukca.ac.uk/wiki/images/b/b5/UKCA_CMG_06Sept2012_final_3.pdf Minutes of teleconference meeting held 06/9/2012] ([[File:UKCA_CMG_06Sept2012_final_3.pdf]])&lt;br /&gt;
* [[Code management group minutes 24Oct2012|Minutes of the meeting held on 24th Oct 2012]]&lt;br /&gt;
* [[Code management group minutes 4Dec2012|Minutes of the meeting held on 4 Dec 2012]]&lt;br /&gt;
* [[Notes_of_the_code_management_group_meeting_21/3/2013|Notes of the code management group meeting 21/3/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_22/5/2013|Minutes of teleconference meeting held on 22/5/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_9/7/2013|Minutes of teleconference meeting held on 9/7/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_3/9/2013|Minutes of teleconference meeting held on 3/9/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_17/10/2013|Minutes of teleconference meeting held on 17/10/2013]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_14/02/2014|Minutes of teleconference meeting held on 14/02/2014]]&lt;br /&gt;
* [[Actions_from_the_code_management_group_meeting_18/03/2014|Actions from teleconference meeting held on 18/03/2014]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_26/06/2014|Minutes from teleconference meeting held on 26/06/2014]]&lt;br /&gt;
* [[Minutes_of_the_code_management_group_meeting_16/09/2014|Minutes from teleconference meeting held on 16/09/2014]]&lt;br /&gt;
* [[Minutes of the code management group meeting 11/12/2014]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-03-04]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-04-23: LFRic Coupling]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-05-06]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2015-09-18]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-01-12]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-07-22]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2016-09-23]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2017-07-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2017-10-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-02-21]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-04-17]] ({{pdf|jwcrp_workplan_v1.pdf|JWCRP Workplan}})&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-06-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-09-05]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2018-11-12]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-01-25]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-04-01]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-06-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-09-16]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2019-11-04]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-01-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-03-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-05-05]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-09-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2020-12-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-02-26]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-04-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-06-28]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-09-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2021-11-19]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-02-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-03-29]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-05-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-07-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-09-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2022-11-16]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-01-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-03-30]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-05-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-07-03]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-09-11]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2023-11-20]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-01-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-03-25]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-05-15]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-09-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2024-11-14]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-01-09]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-03-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-05-08]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-07-10]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-09-18]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2025-11-13]]&lt;br /&gt;
* [[Minutes of the code management group meeting 2026-05-14]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Minutes]]&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_17&amp;diff=11118</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 17</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_17&amp;diff=11118"/>
		<updated>2026-03-19T14:15:13Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;MEDIUM&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;1-2 hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=21009s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
Here you will learn more about working with the Met Office&#039;s [https://www.metoffice.gov.uk/research/news/2021/gungho-and-lfric-10th-anniversary next generation atmospheric model], &#039;&#039;&#039;LFRic&#039;&#039;&#039;, part of the Momentum framework. &lt;br /&gt;
&lt;br /&gt;
LFRic does not use a regular latitude-longitude grid like the UM, but instead uses a &#039;&#039;&#039;cubed-sphere&#039;&#039;&#039; mesh. This is similar to some football designs, and looks like a cube has been squashed into a sphere shape. This gives a much more even grid spacing across the whole world, unlike the UM grid which can have points very close together at the poles. These close points affect model stability and mean that the advection scheme has to do more work - having a more even grid spacing should mean that the model will be able to scale better to higher and higher resolutions.&lt;br /&gt;
&lt;br /&gt;
UKCA has been included within LFRic and can be used at a number of different resolutions. Equivalent LFRic configurations to the Global Atmosphere and UKESM Unified Model set-ups that you may be used to using are currently being developed.&lt;br /&gt;
&lt;br /&gt;
Example notebooks are provided, which can be also be viewed here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/theabro/ukca_scripts/tree/master/Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and can be found in the &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
directory on your virtual machine. Many thanks to &#039;&#039;&#039;Rob Waters&#039;&#039;&#039; for providing these scripts.&lt;br /&gt;
&lt;br /&gt;
You should work through the notebook to see how the plots are generated and become familiar with how to work with the data formats.&lt;br /&gt;
&lt;br /&gt;
In each notebook are some suggested examples which you should think about and complete.&lt;br /&gt;
&lt;br /&gt;
Connect to the notebooks using&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;&#039;&#039;&#039;http://localhost:4801/?token=UKCATraining&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: you may want to close your existing Jupyter lab instance and then restart it via &amp;lt;tt&amp;gt;cylc-gui&amp;lt;/tt&amp;gt;, as this may prevent any issues running high-memory python notebooks. You can either do this via &#039;&#039;File &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Shut Down&#039;&#039; or typing &#039;&#039;Ctrl-C&#039;&#039; within the terminal that is running the Cylc GUI server.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Exercise 1: The LFRic mesh==&lt;br /&gt;
 &lt;br /&gt;
Here we will investigate 3 different LFRic resolutions, &#039;&#039;&#039;C12&#039;&#039;&#039;, &#039;&#039;&#039;C48&#039;&#039;&#039;, and &#039;&#039;&#039;C192&#039;&#039;&#039;. The number here refers to the number of points along the side of each square face. This means that a C12 grid has 48 grid points around the equator and an effective resolution of around 800km. A C48 grid has 192 grid points around the equator and has an effective resolution of around 200km, and the C192 grid has 768 points around the equator and an effective resolution of around 50km. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_C12ortho.png|C12 grid (Orthographic projection)&lt;br /&gt;
Image:UM139_C48ortho.png|C48 grid (Orthographic projection)&lt;br /&gt;
Image:UM139_C192ortho.png|C192 grid (Orthographic projection)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;lfric_meshes.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/lfric_meshes.ipynb lfric_meshes.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this notebook you can change the mesh size used and look at the grid coverage of different countries using these meshes. Consider differences to the Unified Model grid currently used by UKESM.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the C192 full map plots take around 15 minutes to produce. You may want to skip these cells and just run the regional plots.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_C192pc.png|C192 grid (PlateCarree projection)&lt;br /&gt;
Image:UM139_C192rob.png|C192 grid (Robinson projection)&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Solution to Exercise 1a: The UK===&lt;br /&gt;
&lt;br /&gt;
You were asked to think about how many grid cells cover the UK at different resolutions. In the plots below we can see how the grid changes and how this affects coverage of the UK.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_C12_UK1.png|C12 grid over the UK&lt;br /&gt;
Image:UM139_C48_UK1.png|C48 grid over the UK&lt;br /&gt;
Image:UM139_C192_UK1.png|C192 grid over the UK&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Solution to Exercise 1b: Greenland===&lt;br /&gt;
&lt;br /&gt;
You were asked to plot the points for Greenland at different resolutions and consider how this would be different from the UM grid. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| Consider how this grid is different compared to the regular latitude-longitude grid used by the UM, and what this means for the grid spacing around the poles.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_C12_Greenland2.png|C12 grid over the UK&lt;br /&gt;
Image:UM139_C48_Greenland2.png|C48 grid over the UK&lt;br /&gt;
Image:UM139_C192_Greenland2.png|C192 grid over the UK&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
Try plotting other countries and see what the grid spacing is over each one.&lt;br /&gt;
&lt;br /&gt;
==Exercise 2: Plot atmospheric composition data from LFRic==&lt;br /&gt;
&lt;br /&gt;
During this exercise you will plot a number of composition fields from a C48 LFRic atmosphere simulation. The available fields are:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;specific humidity&#039;&#039;&#039; (variable &amp;lt;tt&amp;gt;qv&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* &#039;&#039;&#039;carbon monoxide&#039;&#039;&#039; (variable &amp;lt;tt&amp;gt;co&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* &#039;&#039;&#039;nitric oxide&#039;&#039;&#039; (variable &amp;lt;tt&amp;gt;no&amp;lt;/tt&amp;gt;)&lt;br /&gt;
* &#039;&#039;&#039;ozone&#039;&#039;&#039; (variable &amp;lt;tt&amp;gt;o3&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;lfric_plots.ipynb&amp;lt;/tt&amp;gt; file and change to use the appropriate variable:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/lfric_plots.ipynb lfric_plots.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Exercise 2a: specific humidity===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=150px heights=100px caption=&amp;quot;C48 specific humidity at the surface&amp;quot;&amp;gt;&lt;br /&gt;
Image:UM139_lfric_qv_1.png&lt;br /&gt;
Image:UM139_lfric_qv_2.png&lt;br /&gt;
Image:UM139_lfric_qv_3.png&lt;br /&gt;
Image:UM139_lfric_qv_4.png&lt;br /&gt;
Image:UM139_lfric_qv_5.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercise 2b: carbon monoxide===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=150px heights=100px caption=&amp;quot;C48 carbon monoxide at the surface&amp;quot;&amp;gt;&lt;br /&gt;
Image:UM139_lfric_co_1.png&lt;br /&gt;
Image:UM139_lfric_co_2.png&lt;br /&gt;
Image:UM139_lfric_co_3.png&lt;br /&gt;
Image:UM139_lfric_co_4.png&lt;br /&gt;
Image:UM139_lfric_co_5.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercise 2c: nitric oxide===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=150px heights=100px caption=&amp;quot;C48 nitric acid at the surface&amp;quot;&amp;gt;&lt;br /&gt;
Image:UM139_lfric_no_1.png&lt;br /&gt;
Image:UM139_lfric_no_2.png&lt;br /&gt;
Image:UM139_lfric_no_3.png&lt;br /&gt;
Image:UM139_lfric_no_4.png&lt;br /&gt;
Image:UM139_lfric_no_5.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Exercise 2d: ozone===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=150px heights=100px caption=&amp;quot;C48 ozone at the surface&amp;quot;&amp;gt;&lt;br /&gt;
Image:UM139_lfric_o3_1.png&lt;br /&gt;
Image:UM139_lfric_o3_2.png&lt;br /&gt;
Image:UM139_lfric_o3_3.png&lt;br /&gt;
Image:UM139_lfric_o3_4.png&lt;br /&gt;
Image:UM139_lfric_o3_5.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
This script is currently set-up to plot the surface (&amp;lt;tt&amp;gt;level = 1&amp;lt;/tt&amp;gt;), but you can also plot other levels.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_16&amp;diff=11117</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 16</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_16&amp;diff=11117"/>
		<updated>2026-03-19T14:14:52Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;MEDIUM&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;1-2 hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=19807s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
In this tutorial you will learn how to process UKCA data using the [https://github.com/NCAS-VISION/VISION-toolkit-v2-development VISION toolkit]. Further examples of what you can use VISION for can be seen in [https://doi.org/10.5194/gmd-18-181-2025 Russo et al. (2025)].&lt;br /&gt;
&lt;br /&gt;
VISION stands for the &#039;&#039;&#039;Virtual Integration of Satellite and In-situ Observation Networks&#039;&#039;&#039; and here we provide examples in how to use the in-situ observations simulator (ISO_simulator) functionality. Satellite functionality is also being developed.&lt;br /&gt;
&lt;br /&gt;
Here you will learn how to run the VISION toolkit and then plot VISION output in a variety of different ways. &lt;br /&gt;
&lt;br /&gt;
Example notebooks are provided, which can be also be viewed here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/theabro/ukca_scripts/tree/master/Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and can be found in the &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
directory on your virtual machine. Many thanks to &#039;&#039;&#039;Maria Russo&#039;&#039;&#039; for providing these scripts.&lt;br /&gt;
&lt;br /&gt;
You should work through the notebook to see how the plots are generated and become familiar with how to work with the data formats.&lt;br /&gt;
&lt;br /&gt;
At the end of each notebook are some suggested examples which you should think about and complete. If you think of any other visualisation or processing methods, you could also give these a try.&lt;br /&gt;
&lt;br /&gt;
Connect to the notebooks using&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;&#039;&#039;&#039;http://localhost:4801/?token=UKCATraining&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: you may want to close your existing Jupyter lab instance and then restart it via &amp;lt;tt&amp;gt;cylc-gui&amp;lt;/tt&amp;gt;, as this may prevent any issues running high-memory python notebooks. You can either do this via &#039;&#039;File &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Shut Down&#039;&#039; or typing &#039;&#039;Ctrl-C&#039;&#039; within the terminal that is running the Cylc GUI server.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Russo, M. R., Bartholomew, S. L., Hassell, D., Mason, A. M., Neininger, E., Perman, A. J., Sproson, D. A. J., Watson-Parris, D., and Abraham, N. L.: Virtual Integration of Satellite and In-situ Observation Networks (VISION) v1.0: In-Situ Observations Simulator (ISO_simulator), Geosci. Model Dev., 18, 181–191, https://doi.org/10.5194/gmd-18-181-2025, 2025.&lt;br /&gt;
&lt;br /&gt;
== Data ==&lt;br /&gt;
&lt;br /&gt;
Here you will compare hourly gridded 3D UKESM ozone to observations made by the BAe-146 research aircraft of the [https://www.faam.ac.uk/ FAAM Airborne Laboritory]. These aircraft observations have been made between 2010 and 2020 and have a very high time resolution of 1 second, although they are only defined at a single point in space. In contrast, UKESM has a chemical timestep of 1 hour (i.e. 3600 seconds) and a horizontal resolution of 1.25 x 1.875 degrees (around 100km or so at the equator). VISION is designed to quickly and efficiently co-locate the coarse model data onto the sparse and high-frequency observational data to better enable comparisons and to aid model development and evaluation.&lt;br /&gt;
&lt;br /&gt;
[https://catalogue.ceda.ac.uk/uuid/8df2e81dbfc2499983aa87781fb3fd5a/ Pre-processed FAAM data] has been provided for you along with example UKESM data (a similar dataset can be found [https://catalogue.ceda.ac.uk/uuid/300046500aeb4af080337ff86ae8e776/ here], and this is a very similar model to the ACSIS data from [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_15|Tutorial 15]]). We have also provided a small amount of raw model output to allow you to run the toolkit.&lt;br /&gt;
&lt;br /&gt;
== Exercise 1: run the VISION toolkit ==&lt;br /&gt;
&lt;br /&gt;
The VISION toolkit is run on the command line. To do this you will need to find the files within the &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/Run_VISION&lt;br /&gt;
&lt;br /&gt;
directory. This contains&lt;br /&gt;
&lt;br /&gt;
 cli.py&lt;br /&gt;
 constants.py&lt;br /&gt;
 input.json&lt;br /&gt;
 README&lt;br /&gt;
 visiontoolkit.py&lt;br /&gt;
&lt;br /&gt;
These files can also be found here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/theabro/ukca_scripts/tree/master/Tutorials/UMvn13.9/notebooks/Run_VISION&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;README&amp;lt;/tt&amp;gt; contains some basic instructions. In normal usage you will need to (copy and/or) edit the &amp;lt;tt&amp;gt;input.json&amp;lt;/tt&amp;gt; file to point to the data of interest. This file currently is&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
     &amp;quot;obs-data-path&amp;quot;:&amp;quot;/home/vagrant/Tutorials/UMvn13.9/data/Task16/VISION_input/Obs/core_faam_20140704_b860_MAGIC.nc&amp;quot;,&lt;br /&gt;
     &amp;quot;model-data-path&amp;quot;:&amp;quot;/home/vagrant/Tutorials/UMvn13.9/data/Task16/VISION_input/Model/cq626a.pp20140704.pp&amp;quot;,&lt;br /&gt;
     &amp;quot;orography&amp;quot;:&amp;quot;/home/vagrant/Tutorials/UMvn13.9/data/Task16/VISION_input/Obs/orography.pp&amp;quot;,&lt;br /&gt;
     &amp;quot;chosen-obs-field&amp;quot;:false,&lt;br /&gt;
     &amp;quot;chosen-model-field&amp;quot;:false,&lt;br /&gt;
     &amp;quot;outputs-dir&amp;quot;:&amp;quot;/home/vagrant/VISION_output/&amp;quot;,&lt;br /&gt;
     &amp;quot;output-file-name&amp;quot;:&amp;quot;ukca_colocated_to_faam_b860.nc&amp;quot;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
So this will read-in observations from &amp;lt;tt&amp;gt;obs-data-path&amp;lt;/tt&amp;gt; and model data from &amp;lt;tt&amp;gt;model-data-path&amp;lt;/tt&amp;gt; before outputting the co-located file to the file &amp;lt;tt&amp;gt;output-file-name&amp;lt;/tt&amp;gt; located in &amp;lt;tt&amp;gt;outputs-dir&amp;lt;/tt&amp;gt;. You should not need to make any changes to this file. &lt;br /&gt;
&lt;br /&gt;
To be able to run the VISION toolkit, you will first need to activate the conda python environment you are using in a terminal, either using an &amp;lt;tt&amp;gt;lxterminal&amp;lt;/tt&amp;gt; or from within a terminal in Jupyter. First you should get the conda command by&lt;br /&gt;
&lt;br /&gt;
 . &amp;quot;/opt/deployment/miniforge/etc/profile.d/conda.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
then activate the &amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt; environment&lt;br /&gt;
&lt;br /&gt;
 conda activate ukca&lt;br /&gt;
&lt;br /&gt;
Now you can run the toolkit from within the directory by&lt;br /&gt;
&lt;br /&gt;
 python3 visiontoolkit.py --config-file=&amp;quot;input.json&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This will produce the following output&lt;br /&gt;
&lt;br /&gt;
 .______________________________________________.&lt;br /&gt;
 |   _     _  _   ______  _  _______  _______   |&lt;br /&gt;
 |  (_)   (_)| | / _____)| |(_______)(_______)  |&lt;br /&gt;
 |   _     _ | |( (____  | | _     _  _     _   |&lt;br /&gt;
 |  | |   | || | \____ \ | || |   | || |   | |  |&lt;br /&gt;
 |   \ \ / / | | _____) )| || |___| || |   | |  |&lt;br /&gt;
 |    \___/  |_|(______/ |_| \_____/ |_|   |_|  |&lt;br /&gt;
 |   _______             _   _      _           |&lt;br /&gt;
 |  (_______)           | | | |    (_)   _      |&lt;br /&gt;
 |      _   ___    ___  | | | |  _  _  _| |_    |&lt;br /&gt;
 |     | | / _ \  / _ \ | | | |_/ )| |(_   _)   |&lt;br /&gt;
 |     | || |_| || |_| || | |  _ ( | |  | |_    |&lt;br /&gt;
 |     |_| \___/  \___/  \_)|_| \_)|_|   \__)   |&lt;br /&gt;
 .______________________________________________.&lt;br /&gt;
     &lt;br /&gt;
 final_config_namespace is Namespace(verbose=0, config_file=&#039;input.json&#039;, preprocess_mode_obs=None, preprocess_mode_model=None, orography=&#039;/home/vagrant/Tutorials/UMvn13.9/data/Task16/VISION_input/Obs/orography.pp&#039;, start_time_override=False, obs_data_path=&#039;/home/vagrant/Tutorials/UMvn13.9/data/Task16/VISION_input/Obs/core_faam_20140704_b860_MAGIC.nc&#039;, model_data_path=&#039;/home/vagrant/Tutorials/UMvn13.9/data/Task16/VISION_input/Model/cq626a.pp20140704.pp&#039;, chosen_obs_field=False, chosen_model_field=False, outputs_dir=&#039;/home/vagrant/VISION_output/&#039;, output_file_name=&#039;ukca_colocated_to_faam_b860.nc&#039;, history_message=&#039;Processed using the NCAS VISION Toolkit to co-locate from model data to the observational data spatio-temporal location.&#039;, halo_size=1, spatial_colocation_method=&#039;linear&#039;, vertical_colocation_coord=&#039;air_pressure&#039;, source_axes=False, plotname_start=&#039;vision_toolkit&#039;, plot_mode=0, cfp_cscale=&#039;plasma&#039;, cfp_mapset_config={}, cfp_input_levs_config={}, cfp_input_general_config={&#039;legend&#039;: True, &#039;markersize&#039;: 5, &#039;linewidth&#039;: 0.0, &#039;title&#039;: &#039;Input: observational field (path, to be used for co-location, with its corresponding data, to be ignored)&#039;}, cfp_input_track_only_config={&#039;legend&#039;: True, &#039;colorbar&#039;: False, &#039;markersize&#039;: 0.5, &#039;linewidth&#039;: 0.0, &#039;title&#039;: &#039;Input: flight track from observational field to co-locate model field onto&#039;}, cfp_output_levs_config={}, cfp_output_general_config={&#039;legend&#039;: True, &#039;markersize&#039;: 5, &#039;linewidth&#039;: 0.0, &#039;title&#039;: &#039;Result: model co-located onto observational path&#039;}, satellite_plugin_config=None, regrid_z_coord=None, regrid_method=None, chosen_obs_fields=None, chosen_model_fields=None, plot_of_input_obs_track_only=False, skip_all_plotting=False, show_plot_of_input_obs=False)&lt;br /&gt;
&lt;br /&gt;
along with information on what the script is doing and how long it is taking. When it has successfully completed the last line should be something like&lt;br /&gt;
&lt;br /&gt;
 _____ Time taken (in s) for &#039;main&#039; to run: 32.9553 _____&lt;br /&gt;
&lt;br /&gt;
When you have finished you may want to deactivate this environment as it may not work with Rose and Cylc commands&lt;br /&gt;
&lt;br /&gt;
 conda deactivate&lt;br /&gt;
&lt;br /&gt;
Now you can try plotting the data.&lt;br /&gt;
&lt;br /&gt;
== Exercise 2: plot your co-located data ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T162_faam.png|FAAM flight for 4th July 2014.&lt;br /&gt;
Image:UM139_T162_ukesm.png|UKESM data along the flight of 4th July 2014.&lt;br /&gt;
Image:UM139_T162_alts.png|Comparison of FAAM and UKESM data vs altitude.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;VISION_flight.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/VISION_flight.ipynb VISION_flight.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Nothing should need to be changed, but you should read through the script and try to understand what it is doing at each point.&lt;br /&gt;
&lt;br /&gt;
== Exercise 3: Plot plot the full FAAM and co-located UKESM dataset ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T163_faam.png|All FAAM flights 2010-2020&lt;br /&gt;
Image:UM139_T163_ukesm.png|UKESM data along FAAM flights&lt;br /&gt;
Image:UM139_T163_diff.png|Difference between UKESM and FAAM&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
While it was quick to co-locate a single flight, it is longer to co-locate many years of data, although using the VISION toolkit is still relatively fast even for this large amount of hourly data. Rather than have you run VISION on the full dataset, we have provided this for you at&lt;br /&gt;
&lt;br /&gt;
 /home/ubuntu/Tutorials/UMvn13.9/data/Task16/&lt;br /&gt;
&lt;br /&gt;
in the &lt;br /&gt;
&lt;br /&gt;
 FAAM_ozone_cf_compliant_2010_2020/&lt;br /&gt;
 UKCA_ozone_cf_compliant_2010_2020/&lt;br /&gt;
&lt;br /&gt;
directories. This dataset comprises around 552 separate flights over 471 days across 80 different months. &lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;VISION_maps.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
 &lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/VISION_maps.ipynb VISION_maps.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that this notebook will take a long time to run (approx. 20mins or more).&lt;br /&gt;
&lt;br /&gt;
== Exercise 4: Plot data only over a selected region ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T164_faam.png|All FAAM flights 2015-2020 in the North Atlantic region&lt;br /&gt;
Image:UM139_T164_ukesm.png|UKESM data along FAAM flights in the North Atlantic region&lt;br /&gt;
Image:UM139_T164_diff.png|Difference between UKESM and FAAM in the North Atlantic region&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the previous &amp;lt;tt&amp;gt;VISION_maps.ipynb&amp;lt;/tt&amp;gt; file you will have seen the following block of code:&lt;br /&gt;
&lt;br /&gt;
 # Select specific start/end year for the analysis (if required)&lt;br /&gt;
 l_subset_time=False ; start_t=&#039;2010-01-01&#039; ; end_t=&#039;2020-12-31&#039;&lt;br /&gt;
 # Select latitudes and altitudes for the analysis (if required).&lt;br /&gt;
 l_subset_lats= False ; selected_lats= [-30,30]&lt;br /&gt;
 l_subset_alts= False ; selected_alts=[5000,10000] # units = m&lt;br /&gt;
&lt;br /&gt;
and you can see that all these primary logical are set to &#039;&#039;&#039;False&#039;&#039;&#039;, meaning that these options are not used. Now you should edit this to:&lt;br /&gt;
&lt;br /&gt;
* Only consider flights from 2015 to the end of 2020&lt;br /&gt;
* Only consider flights between 30 and 60 degrees latitude&lt;br /&gt;
* Only consider flights between 5 and 10km&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should make your changes to this original script. A solution to this exercise can be found in the &amp;lt;tt&amp;gt;VISION_region.ipynb&amp;lt;/tt&amp;gt; file that is in the &amp;lt;tt&amp;gt;Solutions/&amp;lt;/tt&amp;gt; directory.&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/VISION_region.ipynb VISION_region.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Solution &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;l_subset_time=True ; start_t=&#039;2015-01-01&#039; ; end_t=&#039;2020-12-31&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;l_subset_lats= True ; selected_lats= [30,60]&amp;lt;/tt&amp;gt;     &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;l_subset_alts= True ; selected_alts=[5000,10000] # units = m&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this exercise, you should also experiment with plotting different time, region, and altitude ranges.&lt;br /&gt;
&lt;br /&gt;
== Exercise 5: Plot histograms of FAAM and UKESM VISION data ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=250px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T165_faam.png|Histogram of all FAAM flights, 2010-2020&lt;br /&gt;
Image:UM139_T165_ukesm.png|Histogram of UKESM data along FAAM flights&lt;br /&gt;
Image:UM139_T165_comp.png|Comparison of both histograms&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As well as plotting maps, you can also consider this data in other ways, for example histograms of data comparing e.g. ozone concentration and the number of counts within a specified range. This can be useful to see if the model is able to replicate the ozone distribution as has been observed.&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;VISION_histograms.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/VISION_histograms.ipynb VISION_histograms.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this exercise, you should also experiment with plotting different time, region, and altitude ranges as you did in [[#Exercise_4:_Plot_data_only_over_a_selected_region|Exercise 4]].&lt;br /&gt;
&lt;br /&gt;
== Exercise 6: Plot profiles of FAAM and UKESM VISION data ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=250px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T166_profiles.png|Plot comparing profiles of FAAM flights and corresponding UKESM output for 30S-30N, 2010-2020&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also plot these data as profiles to see how your model compares against observations in the vertical. This can be done by region and time as was shown earler. For this exercise we shall consider all data in the tropics, 30S-30N. &lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;VISION_profiles.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/VISION_profiles.ipynb VISION_profiles.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this exercise, you should also experiment with plotting different time, region, and altitude ranges as you did in [[#Exercise_4:_Plot_data_only_over_a_selected_region|Exercise 4]].&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Use the VISION toolkit to process model and observational data, and plot these data in a variety of different ways&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 17|Tutorial 17]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_15&amp;diff=11116</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 15</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_15&amp;diff=11116"/>
		<updated>2026-03-19T14:14:01Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;MEDIUM&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;1-2 hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=18847s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
In this tutorial you will learn how to plot and process UKCA data using the [https://scitools-iris.readthedocs.io/en/stable/ Iris] python package. Example notebooks are provided, which can be also be viewed here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/theabro/ukca_scripts/tree/master/Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
and can be found in the &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
directory on your virtual machine. &lt;br /&gt;
&lt;br /&gt;
You should work through the notebook to see how the plots are generated and become familiar with how to work with the data formats.&lt;br /&gt;
&lt;br /&gt;
At the end of each notebook are some suggested examples which you should think about and complete. If you think of any other visualisation or processing methods, you could also give these a try.&lt;br /&gt;
&lt;br /&gt;
Connect to the notebooks using&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;&#039;&#039;&#039;http://localhost:4801/?token=UKCATraining&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE: you may want to close your existing Jupyter lab instance and then restart it via &amp;lt;tt&amp;gt;cylc-gui&amp;lt;/tt&amp;gt;, as this may prevent any issues running high-memory python notebooks. You can either do this via &#039;&#039;File &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Shut Down&#039;&#039; or typing &#039;&#039;Ctrl-C&#039;&#039; within the terminal that is running the Cylc GUI server.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Data ==&lt;br /&gt;
&lt;br /&gt;
There are a number of different datasets in use in this Tutorial, all of which are Total Column Ozone (TCO). While all the data is gridded, there are a range of resolutions and file types used.&lt;br /&gt;
&lt;br /&gt;
=== Observations ===&lt;br /&gt;
&lt;br /&gt;
This tutorial also makes use of the [https://www.bodekerscientific.com/data/total-column-ozone Bodeker Scientific] version 3.4.1 TCO dataset. For ease of use this has been processed from annual files into a single file using the following commands:&lt;br /&gt;
&lt;br /&gt;
 for i in `ls *.nc`; do echo $i; ncks -O --mk_rec_dmn time $i $i; done&lt;br /&gt;
 for i in `ls *.nc`; do echo $i; ncatted -O -a created,global,d,, $i; done&lt;br /&gt;
 for i in `ls *.nc`; do echo $i; ncatted -O -a units,longitude,o,c,degrees_east $i; done&lt;br /&gt;
 for i in `ls *.nc`; do echo $i; ncatted -O -a units,latitude,o,c,degrees_north $i; done&lt;br /&gt;
 ncrcat BSFilledTCO_V3.4.1_????_Monthly.nc ../BSFilledTCO_V3.4.1_Monthly.nc&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;We would like to thank Bodeker Scientific, funded by the New Zealand Deep South National Science Challenge, for providing the combined NIWA-BS total column ozone database.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Model Output ===&lt;br /&gt;
&lt;br /&gt;
==== The NERC ACSIS Project ====&lt;br /&gt;
&lt;br /&gt;
The ACSIS project was a long-term, multi-centre project funded by NERC and as part of this we produced a series UKCA simulations. Model output from one of these simulations is provided in monthly-mean UM &amp;quot;pp&amp;quot; file format. The model configuration is an [https://ukesm.ac.uk/ N96eL85 UKESM1.0-AMIP (atmosphere-only) configuration] at UM version 11.5, where UM winds and temperatures were relaxed to the [https://www.ecmwf.int/en/forecasts/datasets/reanalysis-datasets/era5 ERA5] reanalysis dataset. The chemistry scheme used was the Stratosphere-Troposphere scheme that you have been working with in this tutorial, with some improvements to stratospheric chemistry included that are not in the standard UKESM1.0 release. This model simulation used a Gregorian calendar.&lt;br /&gt;
&lt;br /&gt;
==== Phase 1 of the Chemistry-Climate Model Initiative ==== &lt;br /&gt;
&lt;br /&gt;
UKCA output is submitted to a number of different international model inter-comparison projects, including the [https://blogs.reading.ac.uk/ccmi/ccmi-1/ first phase of the Chemistry-Climate Model Initiative] (CCMI1). Here we submitted data from an atmosphere-only simulation produced using UKCA run at UM version 7.3 at N48L60 resolution with the new dynamics grid, and used a stratospheric chemistry scheme with explicit treatment of CFCs. Output was processed and converted to CF-standard NetCDF files. As with most UM climate simulations, this model used a 360-day calendar, where each month has 30 days.&lt;br /&gt;
&lt;br /&gt;
==== Chemistry-Climate Model Initiative 2022 ==== &lt;br /&gt;
&lt;br /&gt;
An improved version of [https://ukesm.ac.uk/ UKESM1] was developed which reduced some of the high ozone biases, and was used to perform simulations for the [https://blogs.reading.ac.uk/ccmi/ccmi-2022/CCMI2022 project]. Here we submitted data from three atmosphere-only UKESM1.0-AMIP simulations (with to different initial conditions but other settings and forcings the same) run at UM version 11.1 at N96eL85 resolution and uses the improved Stratosphere-Troposphere chemistry and associated settings. Output was processed and converted to CF-standard NetCDF files. As with most UM climate simulations, this model used a 360-day calendar, where each month has 30 days.&lt;br /&gt;
&lt;br /&gt;
== Exercise 1: Plot zonal-mean total column ozone ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=600px heights=200px&amp;gt;&lt;br /&gt;
Image:Tco_iris_001.png|Total Column Ozone timeseries comparing UKCA and the Bodeker dataset produced using Iris.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;iris_toz01.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_toz01.ipynb iris_toz01.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this notebook, consider the following exercises to try:&lt;br /&gt;
&lt;br /&gt;
# Plot members from the CCMI2022 ensemble&lt;br /&gt;
# Produce a plot of the ensemble mean of the 3 ensemble members. How would you go about calculating the ensemble mean?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| You may need to delete the auxillary coordinates &amp;lt;tt&amp;gt;&#039;forecast_period&#039;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&#039;forecast_reference_time&#039;&amp;lt;/tt&amp;gt; in the CCMI2022 ensemble using the cf-python &amp;lt;tt&amp;gt;&#039;f.del_construct()&#039;&amp;lt;/tt&amp;gt; operation.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solutions&#039;&#039;&#039; to these exercises can be found here:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_toz01_ccmi2022.ipynb iris_toz01_ccmi2022.ipynb]&lt;br /&gt;
&lt;br /&gt;
== Exercise 2: Plot the regional time evolution of total column ozone ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
Image:Tco_iris_002.png|Total Column Ozone timeseries for September values over the south pole produced using Iris.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;iris_toz02.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
 &lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_toz02.ipynb iris_toz02.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this notebook, consider the following exercises to try:&lt;br /&gt;
&lt;br /&gt;
# Try plotting different months and regions, e.g. March for 60N to 90N&lt;br /&gt;
# Try plotting annual mean TCO from 60S to 60N. How would you go about producing an annual mean of each year?&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| Take a look at [https://ncas-cms.github.io/cf-python/field_analysis.html how to perform statistical collapses in cf].&lt;br /&gt;
|-&lt;br /&gt;
| Take a look at the [https://scitools-iris.readthedocs.io/en/stable/generated/api/iris/cube.html#iris.cube.Cube.aggregated_by  aggregated_by() method in Iris].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solutions&#039;&#039;&#039; to these exercises can be found here:&lt;br /&gt;
&lt;br /&gt;
* March 60N to 90N:&lt;br /&gt;
** [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_toz02_MarNH.ipynb iris_toz02_MarNH.ipynb]&lt;br /&gt;
* Annual mean 60S to 60N&lt;br /&gt;
** [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_toz02_Ann60S60N.ipynb iris_toz02_Ann60S60N.ipynb]&lt;br /&gt;
&lt;br /&gt;
== Exercise 3: Plot comparisons of total column ozone for specific months ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=200px heights=180px&amp;gt;&lt;br /&gt;
Image:Tco_iris_003a.png|UKCA Total Column Ozone for March 2011 over the north pole produced using Iris.&lt;br /&gt;
Image:Tco_iris_003b.png|Bodeker Total Column Ozone for March 2011 over the north pole produced using Iris.&lt;br /&gt;
Image:Tco_iris_003c.png|Absolute differences in Total Column Ozone between UKCA and Bodeker for March 2011 over the north pole produced using Iris.&lt;br /&gt;
Image:Tco_iris_003d.png|Percentage differences in Total Column Ozone between UKCA and Bodeker for March 2011 over the north pole produced using Iris.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;iris_toz03.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_toz03.ipynb iris_toz03.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this notebook, consider the following exercises to try:&lt;br /&gt;
&lt;br /&gt;
# Try plotting different dates, e.g. September 2002 over the south pole&lt;br /&gt;
# How do the CCMI1 and CCMI2022 similations compare. Rather than individual months, try considering decadal climatologies and compare ensemble members.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solutions&#039;&#039;&#039; to these exercises can be found here:&lt;br /&gt;
&lt;br /&gt;
* September 2002 over the south pole&lt;br /&gt;
** [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_toz03_SepSH.ipynb iris_toz03_SepSH.ipynb]&lt;br /&gt;
* CCMI plots&lt;br /&gt;
** [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_toz03_ccmi.ipynb iris_toz03_ccmi.ipynb]&lt;br /&gt;
&lt;br /&gt;
== Exercise 4: Plot climatological zonal-mean total column ozone ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=250px heights=200px&amp;gt;&lt;br /&gt;
Image:Tco_iris_004a.png|UKCA Total Column Ozone climatology for 1995-2005 produced using Iris.&lt;br /&gt;
Image:Tco_iris_004b.png|Absolute differences in Total Column Ozone for UKCA between 2000-2009 and 1960-1969 produced using Iris.&lt;br /&gt;
Image:Tco_iris_004c.png|Percentage differences in Total Column Ozone for UKCA between 2000-2009 and 1960-1969 produced using Iris.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the &amp;lt;tt&amp;gt;iris_toz04.ipynb&amp;lt;/tt&amp;gt; file:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_toz04.ipynb iris_toz04.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Further exercises ===&lt;br /&gt;
&lt;br /&gt;
When you have completed this notebook, consider the following exercises to try:&lt;br /&gt;
&lt;br /&gt;
# Try comparing the CCMI2022 ensemble members against the ensemble mean.&lt;br /&gt;
# Try comparing the nudged UM-UKCA ACSIS data against the CCMI2022 ensemble mean. Here the principal difference between the simulations is the use of nudging to constrain the winds and temperatures.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solutions&#039;&#039;&#039; to these exercises can be found here:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_toz04_ccmi.ipynb iris_toz04_ccmi.ipynb]&lt;br /&gt;
&lt;br /&gt;
== Further Reading: Processing UKCA Data ==&lt;br /&gt;
&lt;br /&gt;
You may want to process UKCA data in some way, perhaps to convert to NetCDF for inclusion in a model inter-comparison exercise. For CCMI2022, we processed UKESM1 data from UM pp format to cf-compliant NetCDF using the collection of Iris scripts located at &lt;br /&gt;
&lt;br /&gt;
* https://github.com/theabro/ccmi2022-ukca&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Due to the time taken to convert the data, which could take several hours, this was done on the [https://jasmin.ac.uk/ JASMIN data analysis platform] using the LOTUS batch system. &lt;br /&gt;
&lt;br /&gt;
The work is broken down into 3 main sections:&lt;br /&gt;
&lt;br /&gt;
# The [https://github.com/theabro/ccmi2022-ukca/blob/main/src/global_attrs.py global_attrs.py] that sets the necessary global attributes as defined by the MIP data request.&lt;br /&gt;
# The [https://github.com/theabro/ccmi2022-ukca/blob/main/src/convert_pp2nc.py convert_pp2nc.py] script that does the majority of the work via the [https://github.com/theabro/ccmi2022-ukca/blob/main/src/convert_pp2nc.py#L366 main function]. This reads-in data from the main [https://github.com/cedadev/ccmi-2022 JSON] tables for the MIP and then uses local JSON tables to define the [https://github.com/theabro/ccmi2022-ukca/tree/main/vars variables] and [https://github.com/theabro/ccmi2022-ukca/tree/main/ens ensemble members] that reference file locations on the JASMIN directory structure. &lt;br /&gt;
# Where necessary, data is converted from the model hybrid theta levels to pressure levels using the Fortran program [https://github.com/theabro/ccmi2022-ukca/blob/main/src/pressureconv.f90 pressureconv.f90] as this is more efficient than doing this regridding in python.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
There is also an additional script, [https://github.com/theabro/ccmi2022-ukca/blob/main/src/cly_bry.py cly_bry.py], which specifically considers the creation of the Cly and Bry diagnostic requests. These are quite specific and required the summing of several UKCA tracers.&lt;br /&gt;
&lt;br /&gt;
Take a look through these scripts to see how the data is processed and handled. Take a look at the CCMI2022 ensemble NetCDF files&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre;&amp;quot;&amp;gt;&lt;br /&gt;
 Tutorials/UMvn13.0/data/toz_Amon_UKESM1-StratTrop_refD1_r1i1p1f2_gn_19600101-20190101.nc&lt;br /&gt;
 Tutorials/UMvn13.0/data/toz_Amon_UKESM1-StratTrop_refD1_r2i1p1f2_gn_19600101-20190101.nc&lt;br /&gt;
 Tutorials/UMvn13.0/data/toz_Amon_UKESM1-StratTrop_refD1_r3i1p1f2_gn_19600101-20190101.nc&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ncdump&amp;lt;/tt&amp;gt;&#039;&#039;&#039; tool with the &#039;&#039;&#039;&amp;lt;tt&amp;gt;-h&amp;lt;/tt&amp;gt;&#039;&#039;&#039; option to only view the headers to take a look at the files, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre;&amp;quot;&amp;gt;&lt;br /&gt;
 ubuntu@ip-172-31-34-236:~/Tutorials/UMvn13.0/data$ ncdump -h toz_Amon_UKESM1-StratTrop_refD1_r1i1p1f2_gn_19600101-20190101.nc &lt;br /&gt;
 netcdf toz_Amon_UKESM1-StratTrop_refD1_r1i1p1f2_gn_19600101-20190101 {&lt;br /&gt;
 dimensions:&lt;br /&gt;
 	time = UNLIMITED ; // (708 currently)&lt;br /&gt;
 	lat = 144 ;&lt;br /&gt;
 	lon = 192 ;&lt;br /&gt;
 	bnds = 2 ;&lt;br /&gt;
 variables:&lt;br /&gt;
 	float toz(time, lat, lon) ;&lt;br /&gt;
 		toz:standard_name = &amp;quot;equivalent_thickness_at_stp_of_atmosphere_ozone_content&amp;quot; ;&lt;br /&gt;
 		toz:long_name = &amp;quot;Total Column Ozone&amp;quot; ;&lt;br /&gt;
 		toz:units = &amp;quot;m&amp;quot; ;&lt;br /&gt;
 		toz:um_stash_source = &amp;quot;m01s50i219&amp;quot; ;&lt;br /&gt;
 		toz:cell_measures = &amp;quot;area: areacella&amp;quot; ;&lt;br /&gt;
 		toz:comment = &amp;quot;Total ozone column calculated at 0 degrees C and 1 bar, such that 1m = 1e5 DU.&amp;quot; ;&lt;br /&gt;
 		toz:dimensions = &amp;quot;longitude latitude time&amp;quot; ;&lt;br /&gt;
 		toz:frequency = &amp;quot;mon&amp;quot; ;&lt;br /&gt;
 		toz:modeling_realm = &amp;quot;atmos&amp;quot; ;&lt;br /&gt;
 		toz:positive = &amp;quot;&amp;quot; ;&lt;br /&gt;
 		toz:type = &amp;quot;real&amp;quot; ;&lt;br /&gt;
 		toz:cell_methods = &amp;quot;area: time: mean&amp;quot; ;&lt;br /&gt;
 		toz:grid_mapping = &amp;quot;latitude_longitude&amp;quot; ;&lt;br /&gt;
 		toz:coordinates = &amp;quot;forecast_period forecast_reference_time level_height model_level_number sigma&amp;quot; ;&lt;br /&gt;
 	int latitude_longitude ;&lt;br /&gt;
 		latitude_longitude:grid_mapping_name = &amp;quot;latitude_longitude&amp;quot; ;&lt;br /&gt;
 		latitude_longitude:longitude_of_prime_meridian = 0. ;&lt;br /&gt;
 		latitude_longitude:earth_radius = 6371229. ;&lt;br /&gt;
 	double time(time) ;&lt;br /&gt;
 		time:axis = &amp;quot;T&amp;quot; ;&lt;br /&gt;
 		time:bounds = &amp;quot;time_bnds&amp;quot; ;&lt;br /&gt;
 		time:units = &amp;quot;days since 1960-01-01&amp;quot; ;&lt;br /&gt;
 		time:standard_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
 		time:long_name = &amp;quot;time&amp;quot; ;&lt;br /&gt;
 		time:calendar = &amp;quot;360_day&amp;quot; ;&lt;br /&gt;
 		time:stored_direction = &amp;quot;increasing&amp;quot; ;&lt;br /&gt;
 	double time_bnds(time, bnds) ;&lt;br /&gt;
 	double lat(lat) ;&lt;br /&gt;
 		lat:axis = &amp;quot;Y&amp;quot; ;&lt;br /&gt;
 		lat:units = &amp;quot;degrees_north&amp;quot; ;&lt;br /&gt;
 		lat:standard_name = &amp;quot;latitude&amp;quot; ;&lt;br /&gt;
 		lat:long_name = &amp;quot;Latitude&amp;quot; ;&lt;br /&gt;
 		lat:stored_direction = &amp;quot;increasing&amp;quot; ;&lt;br /&gt;
 	double lon(lon) ;&lt;br /&gt;
 		lon:axis = &amp;quot;X&amp;quot; ;&lt;br /&gt;
 		lon:units = &amp;quot;degrees_east&amp;quot; ;&lt;br /&gt;
 		lon:standard_name = &amp;quot;longitude&amp;quot; ;&lt;br /&gt;
 		lon:long_name = &amp;quot;Longitude&amp;quot; ;&lt;br /&gt;
 		lon:stored_direction = &amp;quot;increasing&amp;quot; ;&lt;br /&gt;
 	double forecast_period(time) ;&lt;br /&gt;
 		forecast_period:bounds = &amp;quot;forecast_period_bnds&amp;quot; ;&lt;br /&gt;
 		forecast_period:units = &amp;quot;days&amp;quot; ;&lt;br /&gt;
 		forecast_period:standard_name = &amp;quot;forecast_period&amp;quot; ;&lt;br /&gt;
 	double forecast_period_bnds(time, bnds) ;&lt;br /&gt;
 	double forecast_reference_time(time) ;&lt;br /&gt;
 		forecast_reference_time:units = &amp;quot;days since 1960-01-01&amp;quot; ;&lt;br /&gt;
 		forecast_reference_time:standard_name = &amp;quot;forecast_reference_time&amp;quot; ;&lt;br /&gt;
 		forecast_reference_time:calendar = &amp;quot;360_day&amp;quot; ;&lt;br /&gt;
 	float level_height ;&lt;br /&gt;
 		level_height:bounds = &amp;quot;level_height_bnds&amp;quot; ;&lt;br /&gt;
 		level_height:units = &amp;quot;m&amp;quot; ;&lt;br /&gt;
 		level_height:long_name = &amp;quot;level_height&amp;quot; ;&lt;br /&gt;
 		level_height:positive = &amp;quot;up&amp;quot; ;&lt;br /&gt;
 	float level_height_bnds(bnds) ;&lt;br /&gt;
 	int model_level_number ;&lt;br /&gt;
 		model_level_number:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 		model_level_number:standard_name = &amp;quot;model_level_number&amp;quot; ;&lt;br /&gt;
 		model_level_number:positive = &amp;quot;up&amp;quot; ;&lt;br /&gt;
 	float sigma ;&lt;br /&gt;
 		sigma:bounds = &amp;quot;sigma_bnds&amp;quot; ;&lt;br /&gt;
 		sigma:units = &amp;quot;1&amp;quot; ;&lt;br /&gt;
 		sigma:long_name = &amp;quot;sigma&amp;quot; ;&lt;br /&gt;
 	float sigma_bnds(bnds) ;&lt;br /&gt;
 &lt;br /&gt;
 // global attributes:&lt;br /&gt;
 		:activity_id = &amp;quot;CCMI2022&amp;quot; ;&lt;br /&gt;
 		:contact = &amp;quot;N. Luke Abraham &amp;lt;n.luke.abraham@ncas.ac.uk&amp;gt;, James Keeble &amp;lt;james.keeble@ncas.ac.uk&amp;gt;&amp;quot; ;&lt;br /&gt;
 		:creation_date = &amp;quot;2021-09-24-T17:49:47Z&amp;quot; ;&lt;br /&gt;
 		:data_specs_version = &amp;quot;01.00.00&amp;quot; ;&lt;br /&gt;
 		:data_version = &amp;quot;20210924&amp;quot; ;&lt;br /&gt;
 		:experiment = &amp;quot;Hindcast&amp;quot; ;&lt;br /&gt;
 		:experiment_id = &amp;quot;refD1&amp;quot; ;&lt;br /&gt;
 		:forcing_index = 2 ;&lt;br /&gt;
 		:frequency = &amp;quot;mon&amp;quot; ;&lt;br /&gt;
 		:grid = &amp;quot;N96L85 hybrid-theta (1.25 latitude by 1.875 longitude with 85 vertical levels up to 85km)&amp;quot; ;&lt;br /&gt;
 		:grid_label = &amp;quot;gn&amp;quot; ;&lt;br /&gt;
 		:history = &amp;quot;Model suite-ID(s) = u-cb159, u-cd315. Created using Iris version 2.4.0.&amp;quot; ;&lt;br /&gt;
 		:initialization_index = 1 ;&lt;br /&gt;
 		:institution = &amp;quot;National Centre for Atmospheric Science, Department of Chemistry, University of Cambridge, Lensfield Road, Cambridge, CB2 1EW, UK&amp;quot; ;&lt;br /&gt;
 		:institution_id = &amp;quot;NCAS-CAMBRIDGE&amp;quot; ;&lt;br /&gt;
 		:license = &amp;quot;CCMI2022 model data produced by NCAS-CAMBRIDGE is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (https://creativecommons.org/licenses). Consult http://blogs.reading.ac.uk/ccmi/ for terms of use governing CCMI output, including citation requirements and proper acknowledgment. The data producers and data providers make no warranty, either express or implied, including, but not limited to, warranties of merchantability and fitness for a particular purpose. All liabilities arising from the supply of the information (including any liability arising in negligence) are excluded to the fullest extent permitted by law.&amp;quot; ;&lt;br /&gt;
 		:mip_era = &amp;quot;CMIP6&amp;quot; ;&lt;br /&gt;
 		:nominal_resolution = &amp;quot;100 km&amp;quot; ;&lt;br /&gt;
 		:physics_index = 1 ;&lt;br /&gt;
 		:product = &amp;quot;model-output&amp;quot; ;&lt;br /&gt;
 		:realization_index = 1 ;&lt;br /&gt;
 		:realm = &amp;quot;atmos&amp;quot; ;&lt;br /&gt;
 		:source_id = &amp;quot;UKESM1-StratTrop&amp;quot; ;&lt;br /&gt;
 		:source_type = &amp;quot;AER AGCM CHEM&amp;quot; ;&lt;br /&gt;
 		:sub_experiment = &amp;quot;none&amp;quot; ;&lt;br /&gt;
 		:sub_experiment_id = &amp;quot;none&amp;quot; ;&lt;br /&gt;
 		:table_id = &amp;quot;Amon&amp;quot; ;&lt;br /&gt;
 		:tracking_id = &amp;quot;d3f54720-e799-4e0e-ab16-ffec9b0b3e2e&amp;quot; ;&lt;br /&gt;
 		:variable_id = &amp;quot;toz&amp;quot; ;&lt;br /&gt;
 		:variant_label = &amp;quot;r1i1p1f2&amp;quot; ;&lt;br /&gt;
 		:Conventions = &amp;quot;CF-1.7&amp;quot; ;&lt;br /&gt;
 		:conversion_factor = 1.e-05 ;&lt;br /&gt;
 		:in_units = &amp;quot;DU&amp;quot; ;&lt;br /&gt;
 		:source = &amp;quot;Data from Met Office Unified Model&amp;quot; ;&lt;br /&gt;
 		:um_version = &amp;quot;11.1&amp;quot; ;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Use cf-python or Iris to process and plot model and observational data&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 16|Tutorial 16]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_8&amp;diff=11115</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 8</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_8&amp;diff=11115"/>
		<updated>2026-03-19T14:11:48Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;MEDIUM&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;1-2 hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=10030s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will do in this tutorial==&lt;br /&gt;
&lt;br /&gt;
In this tutorial you will learn how to add new chemical reactions to UKCA. You will then include a reaction involving the chemical tracers you added in the last tutorial, ALICE and BOB.&lt;br /&gt;
&lt;br /&gt;
==Adding new Chemical Reactions==&lt;br /&gt;
&lt;br /&gt;
UKCA uses the ASAD chemical integration software package, which can be easily extended by a user. ASAD could in principle use many different solvers, although currently it uses a symbolic Backward Euler solver with Newton-Raphson iteration, which is known within UKCA as the &#039;&#039;&amp;quot;Newton Raphson&amp;quot;&#039;&#039;. Further details on the solver implementation can be found in [https://gmd.copernicus.org/articles/11/3089/2018/ Esentürk &#039;&#039;et al.&#039;&#039; (2018)][1].&lt;br /&gt;
&lt;br /&gt;
ASAD considers four different types of chemical reactions: bimolecular reactions, termolecular reactions, heterogeneous reactions, and photolysis reactions. During this tutorial you will be tasked with adding a new reaction into your UKCA branch.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
# Esentürk, E., Abraham, N. L., Archer-Nicholls, S., Mitsakou, C., Griffiths, P., Archibald, A., and Pyle, J.: Quasi-Newton methods for atmospheric chemistry simulations: implementation in UKCA UM vn10.8, Geosci. Model Dev., 11, 3089–3108, https://doi.org/10.5194/gmd-11-3089-2018, 2018.&lt;br /&gt;
&lt;br /&gt;
== Code Changes ==&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;src/science/core/chemistry/ukca_chem_master.F90&amp;lt;/tt&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
You will need to add your reaction(s) to the appropriate array within the &amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt; module. Details covering what is required for each reaction type are below.&lt;br /&gt;
&lt;br /&gt;
=== &amp;lt;tt&amp;gt;src/control/core/top_level/ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt; ===&lt;br /&gt;
&lt;br /&gt;
Within the &amp;lt;tt&amp;gt;IF&amp;lt;/tt&amp;gt; blocks for each chemistry scheme are variables called &#039;&#039;&#039;&amp;lt;tt&amp;gt;nr_therm&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (for all bimolecular, termolecular, and heterogeneous reactions) and &#039;&#039;&#039;&amp;lt;tt&amp;gt;nr_phot&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (for photolysis reactions). When adding reactions you should increment the appropriate variable for each chemistry scheme altered.&lt;br /&gt;
&lt;br /&gt;
==Biomolecular Reactions==&lt;br /&gt;
&lt;br /&gt;
For most bimolecular reactions, it is sufficient to provide the &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;, and &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt; coefficients that are used to compute the rate coefficient &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt; from the Arrhenius expression&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
k = k_{0} \left(\frac{T}{300}\right)^{\alpha} \textrm{exp} \left(\frac{-\beta}{T}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Bimolecular Reaction Definition===&lt;br /&gt;
&lt;br /&gt;
The bimolecular reactions are defined in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; module using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratb_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; Fortran type specification, and are held in arrays. At the end of this routine the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratb_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array is created from these, and if that scheme is selected in UKCA these reactions are copied across into the master &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratb_defs&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array.&lt;br /&gt;
&lt;br /&gt;
The format of this &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratb_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; type (defined in &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_chem_defs_mod.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039;) is&lt;br /&gt;
&lt;br /&gt;
 ratb_t1(N, &#039;Reactant 1&#039;,&#039;Reactant 2&#039;,&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Product 1 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Product 2 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;Product 3 &amp;lt;/span&amp;gt;&#039;,&amp;amp;&lt;br /&gt;
 &#039;&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Product 4 &amp;lt;/span&amp;gt;&#039;,  &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt;, &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Fraction of Product 1 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Fraction of Product 2 produced&amp;lt;/span&amp;gt;,  &lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;Fraction of Product 3 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Fraction of Product 4 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;, VN), &amp;amp; &lt;br /&gt;
&lt;br /&gt;
If fractional products are not required for a reaction, then the &#039;&#039;fraction of each product&#039;&#039; formed should be set to 0.00. If fractional products are required for any one of the products then the fraction of each product formed should be set to its correct value.&lt;br /&gt;
&lt;br /&gt;
The settings for &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;VN&amp;lt;/tt&amp;gt; are the same as in the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7#src.2Fscience.2Fcore.2Fchemistry.2Fukca_chem_master.F90|adding new tracers tutorial]], although here &#039;&#039;&#039;&amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;&#039;&#039;&#039; should be incremented for each new &#039;&#039;&#039;reaction&#039;&#039;&#039;, where there might be the same reaction specified several times with changes to reaction rates or even species.&lt;br /&gt;
&lt;br /&gt;
The specifications of the individual reactions are done as, e.g.&lt;br /&gt;
&lt;br /&gt;
 ! B060 JPL2011&lt;br /&gt;
 ratb_t1(60,&#039;HO2       &#039;,&#039;NO        &#039;,&#039;OH        &#039;,&#039;NO2       &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,3.30e-12,  0.00, -270.00, 0.00, 0.00, 0.00, 0.00,st+r,0,0,107),   &amp;amp;&lt;br /&gt;
 ! updates for 121 - st only&lt;br /&gt;
 ratb_t1(60,&#039;HO2       &#039;,&#039;NO        &#039;,&#039;OH        &#039;,&#039;NO2       &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,3.44e-12,  0.00, -260.00, 0.00, 0.00, 0.00, 0.00,st,0,0,121),     &amp;amp;&lt;br /&gt;
 ratb_t1(60,&#039;HO2       &#039;,&#039;NO        &#039;,&#039;OH        &#039;,&#039;NO2       &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,3.50e-12,  0.00, -250.00, 0.00, 0.00, 0.00, 0.00,s,0,0,107),      &amp;amp;&lt;br /&gt;
 ratb_t1(60,&#039;HO2       &#039;,&#039;NO        &#039;,&#039;OH        &#039;,&#039;NO2       &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,3.60e-12,  0.00, -270.00, 0.00, 0.00, 0.00, 0.00,ti+t+cs,0,0,107),&amp;amp;&lt;br /&gt;
 ! CS2&lt;br /&gt;
 ratb_t1(60,&#039;HO2       &#039;,&#039;NO        &#039;,&#039;OH        &#039;,&#039;NO2       &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,3.45e-12,  0.00, -270.00, 0.00, 0.00, 0.00, 0.00,cs,0,0,119),     &amp;amp;&lt;br /&gt;
 ! B060a added Alex&lt;br /&gt;
 ! Not in TI, S, ST and R schemes&lt;br /&gt;
 ratb_t1(60,&#039;HO2       &#039;,&#039;NO        &#039;,&#039;HONO2     &#039;,&#039;          &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,3.60e-12,  0.00, -270.00, 0.00, 0.00, 0.00, 0.00,t,0,0,107),      &amp;amp;&lt;br /&gt;
&lt;br /&gt;
 ! B062 IUPAC2001&lt;br /&gt;
 ratb_t1(62,&#039;HO2       &#039;,&#039;O3        &#039;,&#039;OH        &#039;,&#039;O2        &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,2.03e-16,  4.57, -693.00, 0.0, 0.0,0.0,0.0,ti+t+st+r+cs,0,0,107), &amp;amp;&lt;br /&gt;
 ! updates for 121 - st only&lt;br /&gt;
 ratb_t1(62,&#039;HO2       &#039;,&#039;O3        &#039;,&#039;OH        &#039;,&#039;O2        &#039;,&#039;          &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,1.00e-14,  0.00,  490.00, 0.0, 0.0,0.0,0.0,st,0,0,121),           &amp;amp;&lt;br /&gt;
 ratb_t1(62,&#039;HO2       &#039;,&#039;O3        &#039;,&#039;OH        &#039;,&#039;O2        &#039;,&#039;O2        &#039;,   &amp;amp;&lt;br /&gt;
 &#039;          &#039;,2.03e-16,  4.57, -693.00, 0.00, 0.00, 0.00, 0.00,s,0,0,107),      &amp;amp;&lt;br /&gt;
&lt;br /&gt;
 ! B204&lt;br /&gt;
 ratb_t1(204,&#039;DMSO      &#039;,&#039;OH        &#039;,&#039;SO2       &#039;,&#039;          &#039;,&#039;          &#039;,  &amp;amp;&lt;br /&gt;
 &#039;          &#039;,5.80e-11,  0.00,    0.00, 0.60, 0.00, 0.00, 0.00, ol+r,a,0,107),  &amp;amp;&lt;br /&gt;
 ratb_t1(204,&#039;DMSO      &#039;,&#039;OH        &#039;,&#039;SO2       &#039;,&#039;MSA       &#039;,&#039;          &#039;,  &amp;amp;&lt;br /&gt;
 &#039;          &#039;,5.80e-11,  0.00,    0.00, 0.60, 0.40, 0.00, 0.00, ti,a,0,107),    &amp;amp;&lt;br /&gt;
 ratb_t1(204,&#039;DMSO      &#039;,&#039;OH        &#039;,&#039;SO2       &#039;,&#039;MSA       &#039;,&#039;          &#039;,  &amp;amp;&lt;br /&gt;
 &#039;          &#039;,5.80e-11,  0.00,    0.00, 0.60, 0.40, 0.00, 0.00, st,a,0,117),    &amp;amp;&lt;br /&gt;
 ! updates for 121&lt;br /&gt;
 ratb_t1(204,&#039;DMSO      &#039;,&#039;OH        &#039;,&#039;SO2       &#039;,&#039;MSA       &#039;,&#039;          &#039;,  &amp;amp;&lt;br /&gt;
 &#039;          &#039;,6.10e-12,  0.00, -800.00, 0.60, 0.40, 0.00, 0.00, st,a,0,121),    &amp;amp;&lt;br /&gt;
&lt;br /&gt;
* The first reaction above takes its kinetic data from &#039;&#039;&#039;[http://jpldataeval.jpl.nasa.gov/ NASA&#039;s Jet Propulsion Laboratory]&#039;&#039;&#039;. The rate for this can be found on page 1-10 (with further description on page 1-51) of the [http://jpldataeval.jpl.nasa.gov/pdf/JPL%2010-6%20Final%2015June2011.pdf JPL2011 document]. &lt;br /&gt;
* The second reaction in these examples takes its kinetic data from &#039;&#039;&#039;[http://iupac.pole-ether.fr/ IUPAC]&#039;&#039;&#039;. Going to this website, this reaction is defined [http://iupac.pole-ether.fr/htdocs/datasheets/pdf/HOx15_HO2_O3.pdf here].  &lt;br /&gt;
* The third reaction shows the use of fractional products. &lt;br /&gt;
* Other reactions may take their rates from the &#039;&#039;&#039;[http://chmlin9.leeds.ac.uk/MCM/ Master Chemical Mechanism]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
You can see that in the instances above, different chemistry schemes use slightly different rates or species, as may be required by the scheme and species considered.&lt;br /&gt;
&lt;br /&gt;
When adding new reactions you will need to increment the size of the array holding the &amp;lt;tt&amp;gt;ratb_t1&amp;lt;/tt&amp;gt; type (&#039;&#039;&#039;&amp;lt;tt&amp;gt;n_bimol_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039;). Due to the large number of bimolecular reactions, the array containing them has been broken up into several blocks. If you are not adding new reactions to the last block (for instance, if you are adding a variation on an existing reaction) you will need to increment the &#039;&#039;&#039;stride&#039;&#039;&#039; as well, e.g.&lt;br /&gt;
&lt;br /&gt;
 n_ratb_s = n_ratb_e+1&lt;br /&gt;
 n_ratb_e = n_ratb_s+&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;49&amp;lt;/span&amp;gt;&lt;br /&gt;
 ratb_defs_master(n_ratb_s:n_ratb_e) = (/                                       &amp;amp;&lt;br /&gt;
&lt;br /&gt;
would become&lt;br /&gt;
&lt;br /&gt;
 n_ratb_s = n_ratb_e+1&lt;br /&gt;
 n_ratb_e = n_ratb_s+&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;50&amp;lt;/span&amp;gt;&lt;br /&gt;
 ratb_defs_master(n_ratb_s:n_ratb_e) = (/                                       &amp;amp;&lt;br /&gt;
&lt;br /&gt;
If there is a reaction that is an exception to the general Arrhenius equation then special code needs to be placed in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;asad_bimol.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; routine, which is held in the &amp;lt;tt&amp;gt;UKCA/&amp;lt;/tt&amp;gt; source-code directory.&lt;br /&gt;
&lt;br /&gt;
==Termolecular Reactions==&lt;br /&gt;
&lt;br /&gt;
As well as defining reactions involving a third body, the termolecular rate definition can also be used to define unimolecular reactions. &lt;br /&gt;
&lt;br /&gt;
The pressure and temperature dependent rate, &amp;lt;math&amp;gt;k&amp;lt;/math&amp;gt;, of a termolecular reaction is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
k = \left(\frac{k_{0}\left[M\right]}{1+k_{0}\left[M\right]/k_{\infty}}\right)F_{c}^{\left(1+\left[\textrm{log}_{10}\left(\frac{k_{0}\left[M\right]}{k_{\infty}}\right)\right]^{2}\right)^{-1}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where the low pressure rate constant &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
k_{0} = k_{1} \left(\frac{T}{300}\right)^{{\alpha}_{1}} \textrm{exp} \left(\frac{-{\beta}_{1}}{T}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the high pressure rate constant &amp;lt;math&amp;gt;k_{\infty}&amp;lt;/math&amp;gt; is given by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
k_{\infty} = k_{2} \left(\frac{T}{300}\right)^{{\alpha}_{2}} \textrm{exp} \left(\frac{-{\beta}_{2}}{T}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Termolecular Reaction Definition===&lt;br /&gt;
&lt;br /&gt;
The termolecular reactions are defined in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; module using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratt_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; Fortran type specification and are held in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratt_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array. &lt;br /&gt;
&lt;br /&gt;
To format of this &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratt_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; type is&lt;br /&gt;
&lt;br /&gt;
 ratt_t(N,&#039;Reactant 1&#039;,&#039;Reactant 2&#039;,&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Product 1 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Product 2 &amp;lt;/span&amp;gt;&#039;, &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt;, &amp;amp;&lt;br /&gt;
 &amp;lt;math&amp;gt;k_{1}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;{\alpha}_{1}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;{\beta}_{1}&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;k_{2}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;{\alpha}_{2}&amp;lt;/math&amp;gt;,  &amp;lt;math&amp;gt;{\beta}_{2}&amp;lt;/math&amp;gt;, &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Fraction of Product 1 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Fraction of Product 2 produced&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;,&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;,VN), &amp;amp; &lt;br /&gt;
&lt;br /&gt;
and as in &amp;lt;tt&amp;gt;rabt_t1&amp;lt;/tt&amp;gt;, where the fraction of a product should be set to 0.0 if this functionality does not need to be used. &lt;br /&gt;
&lt;br /&gt;
The settings for &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;VN&amp;lt;/tt&amp;gt; are the same as in the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7#src.2Fscience.2Fcore.2Fchemistry.2Fukca_chem_master.F90|adding new tracers tutorial]], although here &#039;&#039;&#039;&amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;&#039;&#039;&#039; should be incremented for each new &#039;&#039;&#039;reaction&#039;&#039;&#039;, where there might be the same reaction specified several times with changes to reaction rates or even species.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; value is used to define the &amp;lt;math&amp;gt;F_{c}&amp;lt;/math&amp;gt; value by&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
If &amp;lt;math&amp;gt;f &amp;lt; 1.0&amp;lt;/math&amp;gt; then &amp;lt;math&amp;gt;F_{c} = f&amp;lt;/math&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
else &amp;lt;math&amp;gt;F_{c} = \textrm{exp}\left(-T/f\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
as &amp;lt;math&amp;gt;F_{c}&amp;lt;/math&amp;gt; may or may not be highly temperature dependent.&lt;br /&gt;
&lt;br /&gt;
Examples of these reactions are&lt;br /&gt;
&lt;br /&gt;
 ! T004 JPL 2011&lt;br /&gt;
 ratt_t1(4,&#039;O(1D)     &#039;,&#039;N2        &#039;,&#039;N2O       &#039;,&#039;m         &#039;,     0.0,        &amp;amp;&lt;br /&gt;
   2.80e-36, -0.90, 0.00,  0.00e+00,  0.0, 0.0, 0.0, 0.0, st+cs,0,0,107),       &amp;amp;&lt;br /&gt;
 ! update for 121&lt;br /&gt;
 ratt_t1(4,&#039;O(1D)     &#039;,&#039;N2        &#039;,&#039;N2O       &#039;,&#039;m         &#039;,    0.60,        &amp;amp;&lt;br /&gt;
   2.80e-36, -0.90, 0.00,  0.00e+00,  0.0, 0.0, 0.0, 0.0, st+cs,0,0,121),       &amp;amp;&lt;br /&gt;
 ! JPL 2003&lt;br /&gt;
 ratt_t1(4,&#039;O(1D)     &#039;,&#039;N2        &#039;,&#039;N2O       &#039;,&#039;m         &#039;,     0.0,        &amp;amp;&lt;br /&gt;
   3.50e-37, -0.60, 0.00,  0.00e+00,  0.0, 0.0, 0.0, 0.0, s,0,0,107) ,          &amp;amp;&lt;br /&gt;
&lt;br /&gt;
To add new termolecular reactions you will need to append equivalent lines for the new reactions to the end of the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratt_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array (increasing the array size &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_ratt_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; accordingly). If there is any special code that needs to be added, this should be placed in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;asad_trimol.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; routine, which is held in the &amp;lt;tt&amp;gt;UKCA/&amp;lt;/tt&amp;gt; source-code directory.&lt;br /&gt;
&lt;br /&gt;
==Heterogeneous Reactions==&lt;br /&gt;
&lt;br /&gt;
Heterogeneous reactions are those that occur on aerosol surfaces. There is no functional form defined for these reactions, with special code needed to be added for each case.&lt;br /&gt;
&lt;br /&gt;
===Heterogeneous Reaction Definition===&lt;br /&gt;
&lt;br /&gt;
The heterogeneous reactions are defined in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; module using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;rath_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; Fortran type specification, usually in one array (&#039;&#039;&#039;&amp;lt;tt&amp;gt;rath_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
To format of this &#039;&#039;&#039;&amp;lt;tt&amp;gt;rath_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; type is&lt;br /&gt;
&lt;br /&gt;
 rath_t(N,&#039;Reactant 1&#039;,&#039;Reactant 2&#039;,&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Product 1 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Product 2 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;Product 3 &amp;lt;/span&amp;gt;&#039;,&amp;amp;&lt;br /&gt;
 &#039;&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Product 4 &amp;lt;/span&amp;gt;&#039;, &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Fraction of Product 1 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Fraction of Product 2 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;Fraction of Product 3 produced&amp;lt;/span&amp;gt;, &lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Fraction of Product 4 produced&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;,VN), &amp;amp; &lt;br /&gt;
&lt;br /&gt;
i.e. there is no rate information provided. For reactions on PSCs special code has been added to the routines in &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_hetero_mod.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, and for other reactions there is code in &#039;&#039;&#039;&amp;lt;tt&amp;gt;asad_hetero.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
The settings for &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;VN&amp;lt;/tt&amp;gt; are the same as in the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7#src.2Fscience.2Fcore.2Fchemistry.2Fukca_chem_master.F90|adding new tracers tutorial]], although here &#039;&#039;&#039;&amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;&#039;&#039;&#039; should be incremented for each new &#039;&#039;&#039;reaction&#039;&#039;&#039;, where there might be the same reaction specified several times with changes to reaction rates or even species.&lt;br /&gt;
&lt;br /&gt;
Examples of this type are&lt;br /&gt;
&lt;br /&gt;
 rath_t1(5,&#039;N2O5      &#039;,&#039;HCl       &#039;,&#039;Cl        &#039;,&#039;NO2       &#039;,&#039;HONO2     &#039;,    &amp;amp;&lt;br /&gt;
 &#039;          &#039;, 0.000, 0.000, 0.000, 0.000, s+st+cs,hp,0,107),                   &amp;amp;&lt;br /&gt;
 rath_t1(6,&#039;ClONO2    &#039;,&#039;HBr       &#039;,&#039;BrCl      &#039;,&#039;HONO2     &#039;,&#039;          &#039;,    &amp;amp;&lt;br /&gt;
 &#039;          &#039;, 0.000, 0.000, 0.000, 0.000, s+st+cs,eh,0,111),                   &amp;amp;&lt;br /&gt;
&lt;br /&gt;
To add new heterogeneous reactions you will need to append equivalent lines for the new reactions to the end of the &amp;lt;tt&amp;gt;rath_defs_master&amp;lt;/tt&amp;gt; array (increasing the array size &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_het_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; accordingly), before adding code to either &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_hetero_mod.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (for stratospheric reactions) or &#039;&#039;&#039;&amp;lt;tt&amp;gt;asad_hetero.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (for tropospheric reactions).&lt;br /&gt;
&lt;br /&gt;
In the above block you can also see the use of the chemical mechanism version specification.&lt;br /&gt;
&lt;br /&gt;
==Photolysis Reactions==&lt;br /&gt;
&lt;br /&gt;
These define a reaction where a chemical compound is broken down by photons. There is no functional form defined for this type of reaction. Instead, either (in the troposphere) input files are used to define the reaction rates for each species, while (in the stratosphere) on-line look-up tables are generated for the rates for each species, or a separate photolysis code, &#039;&#039;&#039;Fast-JX&#039;&#039;&#039;, is used to interactively calculate the rate of reaction throughout the the whole atmosphere (for Fast-JX). These interactive schemes are preferred as they take the effect of aerosols or clouds into account at each timestep, allowing for more feedbacks to be investigated. In the upper stratosphere there are some wavelength regions that Fast-JX does not consider, and so the 3D on-line look-up tables are also used for these regions.&lt;br /&gt;
&lt;br /&gt;
===Tropospheric Off-Line Photolysis=== &lt;br /&gt;
&lt;br /&gt;
If Fast-JX is not being used, then the off-line two-dimensional (zonally average) tropospheric photolysis is used (for all schemes). It is based on the work of Hough (1988)[2] and Law &#039;&#039;et al&#039;&#039; (1998)[3].&lt;br /&gt;
&lt;br /&gt;
This scheme makes use of datafiles which define the reaction rate for a particular species (e.g. H2O2), or if no rate is known, a &#039;&#039;&#039;nil&#039;&#039;&#039; rate can be used. For vn10.4 these files can be found in&lt;br /&gt;
 &lt;br /&gt;
 $UMDIR/vn11.8/ctldata/UKCA/tropdata/photol&lt;br /&gt;
&lt;br /&gt;
To use this scheme set the value of &amp;lt;tt&amp;gt;i_ukca_photol&amp;lt;/tt&amp;gt; by clicking &#039;&#039;&#039;2D Photolysis Scheme&#039;&#039;&#039;. You will then need to give the location of the files (above). The code controlling this scheme is held in &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_phot2d.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
It is advised that this scheme is no longer used, and Fast-JX interactive photolysis should be used instead. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
# Hough, A. M.: The calculation of photolysis rates for use in global modelling studies, Tech. rep., UK Atomic Energy Authority, Harwell, Oxon., UK, 1988&lt;br /&gt;
# Law, K., Plantevin, P., Shallcross, D., Rogers, H., Pyle, J., Grouhel, C., Thouret, V., and Marenco, A.: Evaluation of modeled O3 using Measurement of Ozone by Airbus In-Service Aircraft (MOZAIC) data, J. Geophys. Res., 103, 25721–25737, 1998&lt;br /&gt;
&lt;br /&gt;
===Stratospheric Look-Up Table Photolysis===&lt;br /&gt;
&lt;br /&gt;
In a chemistry scheme which has stratospheric chemistry, such as &#039;&#039;CheS/Strat&#039;&#039; and &#039;&#039;CheST/StratTrop&#039;&#039;, if interactive photolysis is not used, then above 300hPa the look-up table approach of Lary and Pyle (1991)[4] is used (below 300hPa the tropospheric scheme described above is used). To use this scheme set the value of &amp;lt;tt&amp;gt;i_ukca_photol&amp;lt;/tt&amp;gt; by clicking &#039;&#039;&#039;2D Photolysis Scheme&#039;&#039;&#039;. The code for this scheme is held in &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_strat_update.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
# &amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt; Lary, D. and Pyle, J.: Diffuse-radiation, twilight, and photochemistry, J. Atmos. Chem., 13, 393–406, 1991.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Interactive Photolysis===&lt;br /&gt;
&lt;br /&gt;
The original Fast-J scheme (Wild &#039;&#039;et al&#039;&#039;, 2000)[5] uses 7 different wavelength bins appropriate for the troposphere, and the updated Fast-JX scheme (Neu et al, 2007)[6] adds up to an extra 11 bins allowing use in the stratosphere. At present only Fast-JX is available, although some previous UM versions used the older Fast-J scheme as well.&lt;br /&gt;
&lt;br /&gt;
To use this scheme set the value of &#039;&#039;&#039;&amp;lt;tt&amp;gt;i_ukca_photol&amp;lt;/tt&amp;gt;&#039;&#039;&#039; by clicking &#039;&#039;&#039;FastJ-X&#039;&#039;&#039;. You will then need to give the location of several input data files used by this scheme. &lt;br /&gt;
&lt;br /&gt;
Further details on how the the Fast-JX scheme is used in UKCA, can be found in [http://www.geosci-model-dev.net/6/161/2013/gmd-6-161-2013.html Telford &#039;&#039;et al&#039;&#039; (2013)][7].&lt;br /&gt;
&lt;br /&gt;
The Fast-JX data files are held in &lt;br /&gt;
&lt;br /&gt;
 $UMDIR/vn11.8/ctldata/UKCA/fastj&lt;br /&gt;
&lt;br /&gt;
on ARCHER.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;References&#039;&#039;&#039;&lt;br /&gt;
# Wild, O., Zhu, X., and Prather, M.: Fast-J: accurate simulation of in- and below-cloud photolysis in tropospheric chemical models, J. Atmos. Chem., 37, 245–282, doi:10.1023/A:1006415919030, 2000&amp;lt;/li&amp;gt;&lt;br /&gt;
# Neu, J., Prather, M., and Penner, J.: Global atmospheric chemistry: integrating over fractional cloud cover, J. Geophys. Res., 112, D11306, 12 pp., doi:10.1029/2006JD008007, 2007&lt;br /&gt;
# Telford, P. J., Abraham, N. L., Archibald, A. T., Braesicke, P., Dalvi, M., Morgenstern, O., O&#039;Connor, F. M., Richards, N. A. D., and Pyle, J. A.: Implementation of the Fast-JX Photolysis scheme (v6.4) into the UKCA component of the MetUM chemistry-climate model (v7.3), Geosci. Model Dev., 6, 161-177, doi:10.5194/gmd-6-161-2013, 2013.&lt;br /&gt;
&lt;br /&gt;
===Photolysis Reaction Definition===&lt;br /&gt;
&lt;br /&gt;
The photolysis reactions are defined in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; module using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratj_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; Fortran type specification and held in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratj_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array.&lt;br /&gt;
&lt;br /&gt;
To format of this &#039;&#039;&#039;&amp;lt;tt&amp;gt;ratj_t1&amp;lt;/tt&amp;gt;&#039;&#039;&#039; type is&lt;br /&gt;
&lt;br /&gt;
 ratj_t1(N,&#039;Reactant 1&#039;,&#039;Reactant 2&#039;,&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Product 1 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Product 2 &amp;lt;/span&amp;gt;&#039;,&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;Product 3 &amp;lt;/span&amp;gt;&#039;,&amp;amp;&lt;br /&gt;
 &#039;&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Product 4 &amp;lt;/span&amp;gt;&#039;, &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;Fraction of Product 1 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;Fraction of Product 2 produced&amp;lt;/span&amp;gt;, &amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;Fraction of Product 3 produced&amp;lt;/span&amp;gt;, &lt;br /&gt;
 &amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;Fraction of Product 4 produced&amp;lt;/span&amp;gt;, Quantum Yield, Look-up Label,&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;,&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;,VN), &amp;amp; &lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;Look-Up Label&#039;&#039;&#039; is used to define the file used for the 2D photolysis, and is used by Fast-JX to find the correct values for each species in the input data files. This is a 10-character string, although only the first &#039;&#039;&#039;7&#039;&#039;&#039; characters are read by Fast-JX. &#039;&#039;Reactant 2&#039;&#039; will always be &#039;&#039;PHOTON&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The settings for &amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;VN&amp;lt;/tt&amp;gt; are the same as in the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7#src.2Fscience.2Fcore.2Fchemistry.2Fukca_chem_master.F90|adding new tracers tutorial]], although here &#039;&#039;&#039;&amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;&#039;&#039;&#039; should be incremented for each new &#039;&#039;&#039;reaction&#039;&#039;&#039;, where there might be the same reaction specified several times with changes to reaction rates or even species.&lt;br /&gt;
&lt;br /&gt;
Examples of this type are&lt;br /&gt;
&lt;br /&gt;
 ! 3&lt;br /&gt;
 ! This should produce H+ CHO -&amp;gt; H + HO2 + CO in ST scheme.&lt;br /&gt;
 ratj_t1(3,&#039;HCHO      &#039;,&#039;PHOTON    &#039;,&#039;HO2       &#039;,&#039;HO2       &#039;,&#039;CO        &#039;,    &amp;amp;&lt;br /&gt;
      &#039;          &#039;, 0.0,0.0,0.0,0.0, 100.000,&#039;jhchoa    &#039;,ti+t+st+r+cs,0,0,107),&amp;amp;&lt;br /&gt;
 ! CS2&lt;br /&gt;
 ratj_t1(3,&#039;HCHO      &#039;,&#039;PHOTON    &#039;,&#039;HO2       &#039;,&#039;HO2       &#039;,&#039;CO        &#039;,    &amp;amp;&lt;br /&gt;
      &#039;          &#039;, 0.0,0.0,0.0,0.0, 100.000,&#039;jforma    &#039;,cs,0,0,119),          &amp;amp;&lt;br /&gt;
 ratj_t1(3,&#039;HCHO      &#039;,&#039;PHOTON    &#039;,&#039;H         &#039;,&#039;CO        &#039;,&#039;HO2       &#039;,    &amp;amp;&lt;br /&gt;
      &#039;          &#039;, 0.0,0.0,0.0,0.0, 100.000,&#039;jhchoa    &#039;,s,0,0,107) ,          &amp;amp;&lt;br /&gt;
 ! 4&lt;br /&gt;
 ratj_t1(4,&#039;HCHO      &#039;,&#039;PHOTON    &#039;,&#039;H2        &#039;,&#039;CO        &#039;,&#039;          &#039;,    &amp;amp;&lt;br /&gt;
      &#039;          &#039;, 0.0,0.0,0.0,0.0, 100.0,&#039;jhchob    &#039;,ti+s+t+st+r+cs,0,0,107),&amp;amp;&lt;br /&gt;
 ! CS2&lt;br /&gt;
 ratj_t1(4,&#039;HCHO      &#039;,&#039;PHOTON    &#039;,&#039;H2        &#039;,&#039;CO        &#039;,&#039;          &#039;,    &amp;amp;&lt;br /&gt;
      &#039;          &#039;, 0.0,0.0,0.0,0.0, 100.0,&#039;jformb    &#039;,cs,0,0,119),            &amp;amp;&lt;br /&gt;
&lt;br /&gt;
To add new photolysis reactions you will need to append equivalent lines for the new reactions to the end of the &amp;lt;tt&amp;gt;ratj_defs_master&amp;lt;/tt&amp;gt; array (increasing the array size &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_ratj_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039; accordingly), adding new files/code as necessary as described above.&lt;br /&gt;
&lt;br /&gt;
==Task 8.1: Add a bimolecular reaction==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 8.1:&#039;&#039;&#039; You should now add in the bimolecular reaction of &#039;&#039;&#039;ALICE&#039;&#039;&#039; with &#039;&#039;&#039;OH&#039;&#039;&#039; to form &#039;&#039;&#039;BOB&#039;&#039;&#039; and an optional &#039;&#039;&#039;&#039;&#039;secondary organic compound&#039;&#039;&#039;&#039;&#039; (labelled in UKCA as &#039;&#039;&#039;Sec_Org&#039;&#039;&#039;) when aerosol chemistry is included. You should add this to both the StratTrop and CRI-Strat schemes using version &#039;&#039;&#039;131&#039;&#039;&#039;. &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;This reaction is given by:&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\textrm{ALICE} + \textrm{OH} \longrightarrow \textrm{BOB} + \textrm{Sec}\_\textrm{Org}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Parameter&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt;  || 2.70E-11&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;  || 0.00&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt;  || -390.00&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| As &amp;lt;tt&amp;gt;Sec_Org&amp;lt;/tt&amp;gt; is part of the aerosol chemistry, when it is included the reaction should be given the &#039;&#039;&#039;a&#039;&#039;&#039; qualifier.&amp;lt;br/&amp;gt;When it is not included the reaction should have the &#039;&#039;&#039;a&#039;&#039;&#039; as a disqualifier.&lt;br /&gt;
|-&lt;br /&gt;
| You should increment the value of &amp;lt;tt&amp;gt;n_bimol_master&amp;lt;/tt&amp;gt; by the number of different reaction lines added.&lt;br /&gt;
|-&lt;br /&gt;
| You should increment the value of &amp;lt;tt&amp;gt;nr_therm&amp;lt;/tt&amp;gt; accordingly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Python notebook ===&lt;br /&gt;
&lt;br /&gt;
The Jupyter notebook&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/BoxModel_T08.ipynb&lt;br /&gt;
&lt;br /&gt;
and can be viewed online here&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/BoxModel_T08.ipynb BoxModel_T08.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
can be used to plot ALICE and BOB for this exercise.&lt;br /&gt;
&lt;br /&gt;
===Solution to Task 8.1: Add a bimolecular reaction===&lt;br /&gt;
&lt;br /&gt;
You were asked to:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You should now add in the bimolecular reaction of &#039;&#039;&#039;ALICE&#039;&#039;&#039; with &#039;&#039;&#039;OH&#039;&#039;&#039; to form &#039;&#039;&#039;BOB&#039;&#039;&#039; and an optional &#039;&#039;&#039;&#039;&#039;secondary organic compound&#039;&#039;&#039;&#039;&#039; (labelled in UKCA as &#039;&#039;&#039;Sec_Org&#039;&#039;&#039;) when aerosol chemistry is included. You should add this to both the StratTrop and CRI-Strat schemes using version &#039;&#039;&#039;131&#039;&#039;&#039;. &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;This reaction is given by:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\textrm{ALICE} + \textrm{OH} \longrightarrow \textrm{BOB} + \textrm{Sec}\_\textrm{Org}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Parameter&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Value&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;k_{0}&amp;lt;/math&amp;gt;  || 2.70E-11&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;  || 0.00&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;math&amp;gt;\beta&amp;lt;/math&amp;gt;  || -390.00&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:T04_alicebob_001.png|Evolution of ALICE and BOB during the simulation&lt;br /&gt;
Image:T04_alicebobflux_001.png|Flux through the ALICE+OH-&amp;gt;BOB+Sec_Org reaction&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes to UKCA are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/changeset/7771/main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: src/control/core/top_level/ukca_config_defs_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7770)&lt;br /&gt;
 +++ src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7771)&lt;br /&gt;
 @@ -363,7 +363,7 @@&lt;br /&gt;
              &#039;C2H6      &#039;,&#039;C3H8      &#039;,&#039;Me2CO     &#039;,&#039;MeCHO     &#039;,               &amp;amp;&lt;br /&gt;
              &#039;C5H8      &#039;,&#039;MeOH      &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
        n_chem_tracers = 73         ! No chem tracers&lt;br /&gt;
 -      nr_therm       = 220        ! thermal reactions&lt;br /&gt;
 +      nr_therm       = 221        ! thermal reactions&lt;br /&gt;
        nr_phot        = 55         ! photolytic (ATA)&lt;br /&gt;
  &lt;br /&gt;
      ELSE  ! If using aerosol chemistry&lt;br /&gt;
 @@ -391,9 +391,9 @@&lt;br /&gt;
        END IF&lt;br /&gt;
        n_chem_tracers = 73         ! No chem tracers&lt;br /&gt;
        IF (ukca_config%l_ukca_trophet) THEN&lt;br /&gt;
 -        nr_therm     = 241        ! thermal reactions&lt;br /&gt;
 +        nr_therm     = 242        ! thermal reactions&lt;br /&gt;
        ELSE&lt;br /&gt;
 -        nr_therm     = 239        ! thermal reactions&lt;br /&gt;
 +        nr_therm     = 240        ! thermal reactions&lt;br /&gt;
        END IF&lt;br /&gt;
        nr_phot        = 59         ! photolytic (ATA)&lt;br /&gt;
  &lt;br /&gt;
 @@ -455,7 +455,7 @@&lt;br /&gt;
      IF (ukca_config%i_ukca_chem_version &amp;gt;= 119) THEN  ! CRI-Strat 2 w/o aerosol&lt;br /&gt;
        n_chem_tracers  = 173   ! advected chemical tracers (+9, -4)&lt;br /&gt;
        n_aero_tracers  = 0    ! DMS, SO2... aerosol precursor species&lt;br /&gt;
 -      nr_therm        = 625  ! thermal reactions (+45 bimol, +8 termol)&lt;br /&gt;
 +      nr_therm        = 626  ! thermal reactions (+45 bimol, +8 termol)&lt;br /&gt;
        nr_phot         = 135  ! photolytic reacs&lt;br /&gt;
      ELSE  ! CRI-Strat without aerosol&lt;br /&gt;
        n_chem_tracers  = 166    ! advected chemical tracers&lt;br /&gt;
 @@ -480,9 +480,9 @@&lt;br /&gt;
        n_aero_tracers  = 17    ! DMS, SO2... aerosol precursor species&lt;br /&gt;
        nr_phot         = 137     ! photolytic reacs&lt;br /&gt;
        IF (ukca_config%l_ukca_trophet) THEN&lt;br /&gt;
 -        nr_therm      = 644        ! thermal reactions  (+45 bimol, +8 termol)&lt;br /&gt;
 +        nr_therm      = 645        ! thermal reactions  (+45 bimol, +8 termol)&lt;br /&gt;
        ELSE&lt;br /&gt;
 -        nr_therm      = 646        ! thermal reactions  (+45 bimol, +8 termol)&lt;br /&gt;
 +        nr_therm      = 647        ! thermal reactions  (+45 bimol, +8 termol)&lt;br /&gt;
        END IF&lt;br /&gt;
      ELSE ! CRI-Strat with aerosol&lt;br /&gt;
        n_chem_tracers  = 166    ! advected chemical tracers&lt;br /&gt;
 Index: src/science/core/chemistry/ukca_chem_master.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/ukca_chem_master.F90	(revision 7770)&lt;br /&gt;
 +++ src/science/core/chemistry/ukca_chem_master.F90	(revision 7771)&lt;br /&gt;
 @@ -107,7 +107,7 @@&lt;br /&gt;
  INTEGER, PARAMETER :: n_het_master  =  18 ! number of heterogeneous reactions&lt;br /&gt;
  INTEGER, PARAMETER :: n_dry_master  = 162 ! number of dry deposition reactions&lt;br /&gt;
  INTEGER, PARAMETER :: n_wet_master  = 160 ! number of wet deposition reactions&lt;br /&gt;
 -INTEGER, PARAMETER :: n_bimol_master = 1212 ! number of bimolecular reactions&lt;br /&gt;
 +INTEGER, PARAMETER :: n_bimol_master = 1214 ! number of bimolecular reactions&lt;br /&gt;
  INTEGER, PARAMETER :: n_ratj_master = 183 ! number of photolysis reactions&lt;br /&gt;
  INTEGER, PARAMETER :: n_ratt_master = 116 ! number of termolecular reactions&lt;br /&gt;
  &lt;br /&gt;
 @@ -6237,7 +6237,13 @@&lt;br /&gt;
  &#039;          &#039;,3.93e-15,  0.00, 1913.00, 0.54, 0.00, 0.00, 0.00,r,0,0,107),      &amp;amp;&lt;br /&gt;
  ! B745 - updates for 121&lt;br /&gt;
  ratb_t1(745,&#039;HO2       &#039;,&#039;EtCO3     &#039;,&#039;OH        &#039;,&#039;EtOO      &#039;,&#039;CO2       &#039;,  &amp;amp;&lt;br /&gt;
 -&#039;          &#039;,1.89e-13,  0.00,  -1040.00, 0.00, 0.00, 0.00, 0.00,st,0,0,121)    &amp;amp;&lt;br /&gt;
 +&#039;          &#039;,1.89e-13,  0.00,  -1040.00, 0.00, 0.00, 0.00, 0.00,st,0,0,121),   &amp;amp;&lt;br /&gt;
 +! B746 - updates for 121 (ALICE &amp;amp; BOB tutorials) - aerosol chemistry&lt;br /&gt;
 +ratb_t1(746,&#039;ALICE     &#039;,&#039;OH        &#039;,&#039;BOB      &#039;,&#039;Sec_Org    &#039;,&#039;          &#039;,  &amp;amp;&lt;br /&gt;
 +&#039;          &#039;,2.70e-11,  0.00,   -390.00, 0.00, 0.00, 0.00, 0.00,st+cs,a,0,121),&amp;amp;&lt;br /&gt;
 +! B746 - updates for 121 (ALICE &amp;amp; BOB tutorials) - no aerosol chemistry&lt;br /&gt;
 +ratb_t1(746,&#039;ALICE     &#039;,&#039;OH        &#039;,&#039;BOB      &#039;,&#039;           &#039;,&#039;          &#039;,  &amp;amp;&lt;br /&gt;
 +&#039;          &#039;,2.70e-11,  0.00,   -390.00, 0.00, 0.00, 0.00, 0.00,st+cs,0,a,121) &amp;amp;&lt;br /&gt;
  ]&lt;br /&gt;
  &lt;br /&gt;
  !----------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task08.1/Task08.1_ukca.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task08.1/&lt;br /&gt;
&lt;br /&gt;
==Task 8.2: Change the initial condition of ALICE==&lt;br /&gt;
&lt;br /&gt;
As both ALICE and BOB were initialised to very small concentrations (1.0e-15) and there are no emissions in the Box Model, ALICE is converted to BOB almost immediately. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 8.2:&#039;&#039;&#039; You should now provide an initial conditions of &#039;&#039;&#039;ALICE&#039;&#039;&#039;, setting it to 1.0e-9.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| You will either need to edit the file specified by &#039;&#039;&#039;&amp;lt;tt&amp;gt;tracer_in_filename&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, or make a copy of this, edit it to add the initialisation, and then use this new file in your Rose suite.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
As this is just an input file change you do not need to recompile.&lt;br /&gt;
&lt;br /&gt;
===Solution to Task 8.2: Change the initial condition of ALICE===&lt;br /&gt;
&lt;br /&gt;
You were asked to:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You should now provide an initial conditions of &#039;&#039;&#039;ALICE&#039;&#039;&#039;, setting it to 1.0e-9.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:T04_alicebob_002.png|Evolution of ALICE and BOB during the simulation&lt;br /&gt;
Image:T04_alicebobflux_002.png|Flux through the ALICE+OH-&amp;gt;BOB+Sec_Org reaction&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The changes to Rose are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337644/d/s/0/4/2/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/ukca/file/chem_tracer_pars_STwGMaero_EqTropopause&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/ukca/file/chem_tracer_pars_STwGMaero_EqTropopause	(revision 337643)&lt;br /&gt;
 +++ app/ukca/file/chem_tracer_pars_STwGMaero_EqTropopause	(revision 337644)&lt;br /&gt;
 @@ -23,6 +23,7 @@&lt;br /&gt;
  3.0000e-22 Monoterp&lt;br /&gt;
  5.0000e-24 Sec_org&lt;br /&gt;
  5.0000e-23 SO3&lt;br /&gt;
 +1.0000e-09 ALICE&lt;br /&gt;
  2.0000e-15 Nuc_SOL_N&lt;br /&gt;
  4.0000e-11 Nuc_SOL_SU&lt;br /&gt;
  2.0000e-17 Ait_SOL_N&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task08.2/Task08.2_rose.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task08.2/&lt;br /&gt;
&lt;br /&gt;
==Task 8.3: Use this reaction with a different chemistry scheme==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 8.3:&#039;&#039;&#039; Now test that this reaction works with the CRI-Strat scheme without GLOMAP-mode aerosols included.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Solution &lt;br /&gt;
|-&lt;br /&gt;
| Change the value of &amp;lt;tt&amp;gt;i_ukca_chem&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;&amp;lt;tt&amp;gt;59&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (CRI-Strat)&lt;br /&gt;
|-&lt;br /&gt;
| (Optional) set the value of &amp;lt;tt&amp;gt;l_ukca_mode&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;False&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Change the value of &amp;lt;tt&amp;gt;l_ukca_chem_aero&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;False&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Change the value of &amp;lt;tt&amp;gt;l_ukca_het_psc&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;False&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This is just one example - you may also want to test this scheme with other combinations of StratTrop and CRI-Strat chemistry schemes, with and without GLOMAP-mode aerosols.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that changing these setting will automatically make lots of other changes to variables within Rose. &#039;&#039;&#039;&#039;&#039;You do not need to worry about these additional changes.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As this is just a namelist change you do not need to recompile. &lt;br /&gt;
&lt;br /&gt;
===Worked Solution to Task 8.3: Use this reaction with a different chemistry scheme===&lt;br /&gt;
&lt;br /&gt;
You were asked to:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Now test that this reaction works with the CRI-Strat scheme without GLOMAP-mode aerosols included.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:T04_alicebob_003.png|Evolution of ALICE and BOB during the simulation&lt;br /&gt;
Image:T04_alicebobflux_003.png|Flux through the ALICE+OH-&amp;gt;BOB reaction&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were given the hints:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Change the value of &amp;lt;tt&amp;gt;i_ukca_chem&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;&amp;lt;tt&amp;gt;59&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (CRI-Strat)&#039;&#039;&lt;br /&gt;
* &#039;&#039;(Optional) set the value of &amp;lt;tt&amp;gt;l_ukca_mode&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;False&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;Change the value of &amp;lt;tt&amp;gt;l_ukca_chem_aero&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;False&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;Change the value of &amp;lt;tt&amp;gt;l_ukca_het_psc&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;False&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that here &amp;lt;tt&amp;gt;Sec_Org&amp;lt;/tt&amp;gt; is now no longer a product of the reaction.&lt;br /&gt;
&lt;br /&gt;
The changes to Rose are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337645/d/s/0/4/2/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/ukca/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/ukca/rose-app.conf	(revision 337644)&lt;br /&gt;
 +++ app/ukca/rose-app.conf	(revision 337645)&lt;br /&gt;
 @@ -479,14 +479,14 @@&lt;br /&gt;
  !!i_ageair_reset_method=1&lt;br /&gt;
  !!i_inferno_emi=&lt;br /&gt;
  !!i_mode_bln_param_method=0&lt;br /&gt;
 -i_mode_nzts=15&lt;br /&gt;
 -i_mode_setup=2&lt;br /&gt;
 -i_ukca_activation_scheme=0&lt;br /&gt;
 -i_ukca_chem=51&lt;br /&gt;
 +!!i_mode_nzts=15&lt;br /&gt;
 +!!i_mode_setup=2&lt;br /&gt;
 +!!i_ukca_activation_scheme=0&lt;br /&gt;
 +i_ukca_chem=59&lt;br /&gt;
  i_ukca_chem_version=121&lt;br /&gt;
  i_ukca_conserve_method=3&lt;br /&gt;
 -i_ukca_dms_flux=1&lt;br /&gt;
 -i_ukca_hetconfig=0&lt;br /&gt;
 +!!i_ukca_dms_flux=1&lt;br /&gt;
 +!!i_ukca_hetconfig=0&lt;br /&gt;
  !!i_ukca_hiorder_scheme=0&lt;br /&gt;
  i_ukca_light_param=0&lt;br /&gt;
  !!i_ukca_nwbins=20&lt;br /&gt;
 @@ -510,8 +510,8 @@&lt;br /&gt;
  !!l_dust_mp_slinn_impc_scav=.false.&lt;br /&gt;
  l_environ_jo2=.false.&lt;br /&gt;
  l_environ_jo2b=.false.&lt;br /&gt;
 -l_mode_bhn_on=.true.&lt;br /&gt;
 -l_mode_bln_on=.false.&lt;br /&gt;
 +!!l_mode_bhn_on=.true.&lt;br /&gt;
 +!!l_mode_bln_on=.false.&lt;br /&gt;
  !!l_no3_prod_in_aero_step=.false.&lt;br /&gt;
  l_ukca=.true.&lt;br /&gt;
  l_ukca_ageair=.false.&lt;br /&gt;
 @@ -519,7 +519,7 @@&lt;br /&gt;
  !!l_ukca_aie2=.false.&lt;br /&gt;
  l_ukca_asad_columns=.true.&lt;br /&gt;
  l_ukca_asad_full=.false.&lt;br /&gt;
 -l_ukca_chem_aero=.true.&lt;br /&gt;
 +l_ukca_chem_aero=.false.&lt;br /&gt;
  !!l_ukca_classic_hetchem=.false.&lt;br /&gt;
  !!l_ukca_coarse_no3_prod=.true.&lt;br /&gt;
  l_ukca_ddep_lev1=.false.&lt;br /&gt;
 @@ -527,59 +527,59 @@&lt;br /&gt;
  l_ukca_debug_asad=.true.&lt;br /&gt;
  l_ukca_dry_dep_so2wet=.false.&lt;br /&gt;
  !!l_ukca_dust=.false.&lt;br /&gt;
 -l_ukca_emsdrvn_ch4=.false.&lt;br /&gt;
 +!!l_ukca_emsdrvn_ch4=.false.&lt;br /&gt;
  !!l_ukca_fine_no3_prod=.true.&lt;br /&gt;
  l_ukca_h2o_feedback=.false.&lt;br /&gt;
 -l_ukca_het_psc=.true.&lt;br /&gt;
 +l_ukca_het_psc=.false.&lt;br /&gt;
  l_ukca_ibvoc=.false.&lt;br /&gt;
 -l_ukca_inferno=.false.&lt;br /&gt;
 +!!l_ukca_inferno=.false.&lt;br /&gt;
  !!l_ukca_inferno_ch4=.false.&lt;br /&gt;
  l_ukca_intdd=.true.&lt;br /&gt;
  l_ukca_intph=.false.&lt;br /&gt;
 -l_ukca_limit_nat=.false.&lt;br /&gt;
 +!!l_ukca_limit_nat=.false.&lt;br /&gt;
  l_ukca_linox_scaling=.false.&lt;br /&gt;
 -l_ukca_mode=.true.&lt;br /&gt;
 +!!l_ukca_mode=.false.&lt;br /&gt;
  l_ukca_prescribech4=.false.&lt;br /&gt;
  !!l_ukca_prim_moc=.false.&lt;br /&gt;
 -l_ukca_primbcoc=.false.&lt;br /&gt;
 +!!l_ukca_primbcoc=.false.&lt;br /&gt;
  !!l_ukca_primdu=.false.&lt;br /&gt;
 -l_ukca_primss=.false.&lt;br /&gt;
 -l_ukca_primsu=.false.&lt;br /&gt;
 +!!l_ukca_primss=.false.&lt;br /&gt;
 +!!l_ukca_primsu=.false.&lt;br /&gt;
  l_ukca_qch4inter=.false.&lt;br /&gt;
  l_ukca_quasinewton=.false.&lt;br /&gt;
 -l_ukca_radaer=.false.&lt;br /&gt;
 +!!l_ukca_radaer=.false.&lt;br /&gt;
  !!l_ukca_radaer_sustrat=.false.&lt;br /&gt;
  l_ukca_radch4=.false.&lt;br /&gt;
 -l_ukca_radf11=.false.&lt;br /&gt;
 -l_ukca_radf113=.false.&lt;br /&gt;
 -l_ukca_radf12=.false.&lt;br /&gt;
 -l_ukca_radf22=.false.&lt;br /&gt;
 +!!l_ukca_radf11=.false.&lt;br /&gt;
 +!!l_ukca_radf113=.false.&lt;br /&gt;
 +!!l_ukca_radf12=.false.&lt;br /&gt;
 +!!l_ukca_radf22=.false.&lt;br /&gt;
  l_ukca_radn2o=.false.&lt;br /&gt;
  l_ukca_rado3=.false.&lt;br /&gt;
  l_ukca_ro2_ntp=.true.&lt;br /&gt;
  l_ukca_ro2_perm=.true.&lt;br /&gt;
 -l_ukca_sa_clim=.false.&lt;br /&gt;
 -l_ukca_scale_biom_aer_ems=.false.&lt;br /&gt;
 +!!l_ukca_sa_clim=.false.&lt;br /&gt;
 +!!l_ukca_scale_biom_aer_ems=.false.&lt;br /&gt;
  !!l_ukca_scale_marine_pom_ems=.false.&lt;br /&gt;
  !!l_ukca_scale_sea_salt_ems=.false.&lt;br /&gt;
 -l_ukca_scale_seadms_ems=.false.&lt;br /&gt;
 +!!l_ukca_scale_seadms_ems=.false.&lt;br /&gt;
  !!l_ukca_scale_soa_yield_isop=.false.&lt;br /&gt;
 -l_ukca_scale_soa_yield_mt=.false.&lt;br /&gt;
 +!!l_ukca_scale_soa_yield_mt=.false.&lt;br /&gt;
  l_ukca_set_trace_gases=.true.&lt;br /&gt;
  !!l_ukca_sfix=.false.&lt;br /&gt;
 -l_ukca_so2ems_expvolc=.false.&lt;br /&gt;
 +!!l_ukca_so2ems_expvolc=.false.&lt;br /&gt;
  !!l_ukca_so2ems_plumeria=.false.&lt;br /&gt;
  !!l_ukca_src_in_conservation=.true.&lt;br /&gt;
 -l_ukca_trophet=.false.&lt;br /&gt;
 +!!l_ukca_trophet=.false.&lt;br /&gt;
  !!l_ukca_use_background_aerosol=.false.&lt;br /&gt;
  lightnox_scale_fac=0.5&lt;br /&gt;
  !!marine_pom_ems_scaling=0&lt;br /&gt;
  !!max_ageair_reset_height=0.0&lt;br /&gt;
  !!max_ageair_reset_level=0&lt;br /&gt;
 -mode_activation_dryr=37.5&lt;br /&gt;
 -mode_aitsol_cvscav=0.5&lt;br /&gt;
 -mode_incld_so2_rfrac=0.25&lt;br /&gt;
 -mode_parfrac=2.5&lt;br /&gt;
 +!!mode_activation_dryr=37.5&lt;br /&gt;
 +!!mode_aitsol_cvscav=0.5&lt;br /&gt;
 +!!mode_incld_so2_rfrac=0.25&lt;br /&gt;
 +!!mode_parfrac=2.5&lt;br /&gt;
  !!nerupt=0&lt;br /&gt;
  !!nit=0&lt;br /&gt;
  nrsteps=45&lt;br /&gt;
 @@ -640,7 +640,7 @@&lt;br /&gt;
  l_fix_ukca_impscav=.false.&lt;br /&gt;
  !!l_fix_ukca_offox_h2o_fac=.false.&lt;br /&gt;
  l_fix_ukca_water_content=.false.&lt;br /&gt;
 -l_improve_aero_drydep=.false.&lt;br /&gt;
 +!!l_improve_aero_drydep=.false.&lt;br /&gt;
  !!l_improve_cv_cons=.false.&lt;br /&gt;
  l_methox_fix=.true.&lt;br /&gt;
  &lt;br /&gt;
 @@ -649,5 +649,5 @@&lt;br /&gt;
  !!a_convect_segments=-99&lt;br /&gt;
  !!a_convect_trac_seg_size=1&lt;br /&gt;
  ukca_chem_seg_size=1&lt;br /&gt;
 -ukca_mode_seg_size=1&lt;br /&gt;
 +!!ukca_mode_seg_size=1&lt;br /&gt;
  ussp_seg_size=1&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task08.3/Task08.3_rose.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task08.3/&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Add the new reaction into the correct reaction type array in &amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt;, incrementing the size of the array accordingly. &lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Increment the value of &amp;lt;tt&amp;gt;nr_therm&amp;lt;/tt&amp;gt; and/or &amp;lt;tt&amp;gt;nr_phot&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, add special code to the &amp;lt;tt&amp;gt;asad_bimol.F90&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;asad_trimol.F90&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ukca_hetero_mod.F90&amp;lt;/tt&amp;gt;, or &amp;lt;tt&amp;gt;asad_hetero.F90&amp;lt;/tt&amp;gt; routines.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; For photolysis reactions, further work is required to calculate new cross sections. Code will also need to be added to &amp;lt;tt&amp;gt;ukca_strat_update.F90&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Add initialisations of your new tracers if required.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Test your new chemistry with different chemistry schemes and aerosol options as necessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 9|Tutorial 9]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_6&amp;diff=11114</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 6</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_6&amp;diff=11114"/>
		<updated>2026-03-19T14:11:06Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;HARD&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;2 or more hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=6351s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
In this tutorial you will learn how to output and process aerosol diagnostics from UKCA.&lt;br /&gt;
&lt;br /&gt;
===Python===&lt;br /&gt;
&lt;br /&gt;
In this Tutorial you will make extensive use of Python to process the UM output. Instructions as to how to use this are in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5#Using_python_to_regrid_your_emissions|Tutorial 5]].&lt;br /&gt;
&lt;br /&gt;
Example python scripts are provided for each Task, and you should take the time to read through these and understand what they are doing. None of these scripts plot any of the output, so as an extension to these tasks you could try extending the scripts to plot the output from python directly, rather than visualising via Xconv. Further information (and examples) on how Iris plots can be found here:&lt;br /&gt;
&lt;br /&gt;
* https://scitools-iris.readthedocs.io/en/latest/userguide/plotting_a_cube.html&lt;br /&gt;
* https://scitools-iris.readthedocs.io/en/latest/generated/gallery/general/plot_global_map.html&lt;br /&gt;
&lt;br /&gt;
==Task 6.1: Output aerosol diagnostics==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 6.1:&#039;&#039;&#039; Output the following aerosol and radiation diagnostics to a new &#039;&#039;&#039;UPL&#039;&#039;&#039; output stream that reinitialises every 3 hours. You should make a new &#039;&#039;time profile&#039;&#039; (called TRAD) to only output these on &#039;&#039;&#039;radiation timesteps&#039;&#039;&#039;. You will also need to make a new &#039;&#039;domain profile&#039;&#039; (called D3DAR) for s02i530 and s02i540, to &#039;&#039;&#039;output these on both model levels and pseudo levels&#039;&#039;&#039;.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| Incoming and outgoing radiation are single-level fields that should be output using the DIAG profile.&lt;br /&gt;
|-&lt;br /&gt;
| Remember to output your aerosol diagnostics on the AOT pseudo levels using the DIAGAOT profile.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|STASH Section&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|STASH Item&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|STASH Name&lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    1 ||  207 || INCOMING SW RAD FLUX (TOA): ALL TSS &lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    1 ||  208 || OUTGOING SW RAD FLUX (TOA)          &lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  205 || OUTGOING LW RAD FLUX (TOA)          &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  285 || MINERAL DUST OPTICAL DEPTH IN RADN. &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  300 || AITKEN MODE (SOLUBLE) OPTICAL DEPTH &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  301 || ACCUM MODE (SOLUBLE) OPTICAL DEPTH  &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  302 || COARSE MODE (SOLUBLE) OPTICAL DEPTH &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  303 || AITKEN MODE (INSOL) OPTICAL DEPTH   &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  304 || ACCUM MODE (INSOL) OPTICAL DEPTH    &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  305 || COARSE MODE (INSOL) OPTICAL DEPTH   &lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  585 || MINERAL DUST ABS. OPICAL DEPTH   &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  240 || AITKEN (SOLUBLE) ABS OPTICAL DEPTH  &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot; &lt;br /&gt;
|    2 ||  241 || ACCUM (SOLUBLE) ABS OPTICAL DEPTH   &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  242 || COARSE (SOLUBLE) ABS OPTICAL DEPTH  &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  243 || AITKEN (INSOL) ABS OPTICAL DEPTH    &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot; &lt;br /&gt;
|    2 ||  244 || ACCUM (INSOL) ABS OPTICAL DEPTH     &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot; &lt;br /&gt;
|    2 ||  245 || COARSE (INSOL) ABS OPTICAL DEPTH               &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  530 || UKCA 3D AEROSOL EXTINCTION &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  540 || CLASSIC 3D AEROSOL EXTINCTION  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Radiation Timesteps==&lt;br /&gt;
&lt;br /&gt;
The number of shortwave radiation timesteps per day is given by &#039;&#039;&#039;&amp;lt;tt&amp;gt;i_sw_radstep_perday_prog&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, found in &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; UM Science Settings &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Section 01 - 02 Radiation  &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Shortwave&#039;&#039;&#039;. The equivalent for longwave is &#039;&#039;&#039;&amp;lt;tt&amp;gt;i_lw_radstep_perday_prog&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, found in &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; UM Science Settings &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Section 01 - 02 Radiation  &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Longwave&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the UKCA training suite, both of these are set to &#039;&#039;&#039;16&#039;&#039;&#039;, i.e. a call every 90 minutes. This value is very configuration dependent - sometimes radiation is called every hour (24), sometimes every 3 hours (8) etc. You should check the settings in your suite if you need to consider any of the radiation diagnostics.&lt;br /&gt;
&lt;br /&gt;
==Making new STASH profiles==&lt;br /&gt;
&lt;br /&gt;
While we have covered outputting and analysing diagnostics in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_4|Tutorial 4]] and [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]] you were only making use of existing settings for the different &amp;quot;profiles&amp;quot; that define how the diagnostics are considered in space and time. &lt;br /&gt;
&lt;br /&gt;
Here you will learn how to make new &#039;&#039;&#039;time&#039;&#039;&#039;, &#039;&#039;&#039;domain&#039;&#039;&#039;, and &#039;&#039;&#039;usage&#039;&#039;&#039; profiles. &lt;br /&gt;
&lt;br /&gt;
===Time profiles===&lt;br /&gt;
&lt;br /&gt;
[[Image:UM11.8_newtime.png|thumb|300px|right|The new time panel in Rose.]]&lt;br /&gt;
To make a new time profile, go to: &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Time Profiles&#039;&#039;&#039;. This contains a list of existing time profiles, with names like &#039;&#039;&amp;lt;tt&amp;gt;t3hmn_039ecafe&amp;lt;/tt&amp;gt;&#039;&#039; etc.&lt;br /&gt;
&lt;br /&gt;
To make a new time profile, you should:&lt;br /&gt;
&lt;br /&gt;
# Right-click anywhere on the list and click the green plus symbol (&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039;) named &#039;&#039;&#039;Add new section&#039;&#039;&#039;&lt;br /&gt;
#: This will make a new blank line (usually labelled &#039;&#039;&#039;1&#039;&#039;&#039;, the next &#039;&#039;&#039;2&#039;&#039;&#039; etc.) with a red &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt;&#039;&#039;&#039; next to it.&lt;br /&gt;
# Right-click this new line and click &#039;&#039;&#039;View namelist&#039;&#039;&#039;.&lt;br /&gt;
# Fill-in the values as required for what you want to do. &lt;br /&gt;
# When you have finished, you will need to run the When you have finished, you will need to run the &#039;&#039;&#039;stashindices.TidyStashTransform&#039;&#039;&#039; macro by going to the &#039;&#039;&#039;Metadata &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; um&#039;&#039;&#039; drop-down menu. This will rename the new profile into the correct format.&lt;br /&gt;
&lt;br /&gt;
====Example: Output on Radiation Timesteps====&lt;br /&gt;
&lt;br /&gt;
You will have discovered that there are 16 radiation timesteps per day, but to work out how to output diagnostics you need to know many model timesteps per day there are. This can be found at: &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Top Level Model Control &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Domain and Timestep&#039;&#039;&#039;. The number is given by the variable &#039;&#039;&#039;&amp;lt;tt&amp;gt;steps_per_periodim&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, which is defined as the number of steps per period given (in seconds) by &#039;&#039;&#039;&amp;lt;tt&amp;gt;secs_per_periodim&amp;lt;/tt&amp;gt;&#039;&#039;&#039;. For one day, this value is 86400 (24h x 60m x 60s).&lt;br /&gt;
&lt;br /&gt;
In the UKCA training suite, &amp;lt;tt&amp;gt;secs_per_periodim&amp;lt;/tt&amp;gt;=86400, and &amp;lt;tt&amp;gt;steps_per_periodim&amp;lt;/tt&amp;gt;=48. This means that there are 48 timesteps per day, i.e. each timestep is &#039;&#039;&#039;30 minutes&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
We can combine this with the number of radiation timesteps per day (16), to calculate that &#039;&#039;&#039;radiation is called every third model timestep&#039;&#039;&#039; (48/16 = 3) in this configuration. We can now fill-in the values in the new time profile accordingly, e.g.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ityp&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; No time processing&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;tim_name&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. TRAD&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;unt3&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Timesteps (1)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;iopt&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Regular intervals&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;istr&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; 1 (i.e. start on first timestep)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;iend&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; -1 (i.e. never stop outputting)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ifre&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; 3 (i.e. output every third timestep)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We need to start at timestep 1, as radiation is called on the first timestep, and then called every third model timestep after that. In contrast, the UKCA Newton-Raphson chemical solver is first called on the first hour, and then every hour after that. For the UKCA training suite this would mean that &amp;lt;tt&amp;gt;istr&amp;lt;/tt&amp;gt;=2 and &amp;lt;tt&amp;gt;ifre&amp;lt;/tt&amp;gt;=2, but for standard UKCA runs at N96eL85 with a 20-minute timestep this would have &amp;lt;tt&amp;gt;istr&amp;lt;/tt&amp;gt;=3 and &amp;lt;tt&amp;gt;ifre&amp;lt;/tt&amp;gt;=3.&lt;br /&gt;
&lt;br /&gt;
===Domain profiles===&lt;br /&gt;
&lt;br /&gt;
[[Image:Vn10.9_newdom.png|thumb|300px|right|The new domain panel in Rose.]]&lt;br /&gt;
To make a new domain profile, go to: &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Domain Profiles&#039;&#039;&#039;. This contains a list of existing domain profiles, with names like &#039;&#039;&amp;lt;tt&amp;gt;dallth_1e2e730d&amp;lt;/tt&amp;gt;&#039;&#039; etc.&lt;br /&gt;
&lt;br /&gt;
To make a new domain profile, you should:&lt;br /&gt;
&lt;br /&gt;
# Right-click anywhere on the list and click the green plus symbol (&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039;) named &#039;&#039;&#039;Add new section&#039;&#039;&#039;&lt;br /&gt;
#: This will make a new blank line (usually labelled &#039;&#039;&#039;1&#039;&#039;&#039;, the next &#039;&#039;&#039;2&#039;&#039;&#039; etc.) with a red &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt;&#039;&#039;&#039; next to it.&lt;br /&gt;
# Right-click this new line and click &#039;&#039;&#039;View namelist&#039;&#039;&#039;.&lt;br /&gt;
# Fill-in the values as required for what you want to do. &lt;br /&gt;
# When you have finished, you will need to run the When you have finished, you will need to run the &#039;&#039;&#039;stashindices.TidyStashTransform&#039;&#039;&#039; macro by going to the &#039;&#039;&#039;Metadata &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; um&#039;&#039;&#039; drop-down menu. This will rename the new profile into the correct format.&lt;br /&gt;
&lt;br /&gt;
====Example: Output AOT pseudo levels on all model theta levels====&lt;br /&gt;
&lt;br /&gt;
Aerosol diagnostics are defined on a series of 6 &#039;&#039;&#039;pseudo levels&#039;&#039;&#039;, corresponding to 0.38, 0.44, 0.55, 0.67, 0.87, and 1.02 microns. You will therefore need to output on your data on all of these. For some diagnostics, such as AOD, these are defined on a single level, but others, such as extinction, are a 3D field over the whole atmosphere. Therefore, to output the 3D aerosol extinction we need to make a new profile over all model (theta grid) levels, &#039;&#039;and&#039;&#039; all 6 pseudo levels.&lt;br /&gt;
&lt;br /&gt;
We can now fill-in the values in the new domain profile accordingly, e.g.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;dom_name&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. D3DAR&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;iopl&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Variable derived on model theta levels (Charney-Phillips Grid) (2)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ilevs&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; provide range &amp;lt;nowiki&amp;gt;[&amp;lt;/nowiki&amp;gt;bottom and top level numbers&amp;lt;nowiki&amp;gt;]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ilevb&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; 1 (i.e. 20m level)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ilevt&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; 38 (i.e. highest level)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;plt&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Radiation bands for calculating aerosol optical depth (4)&lt;br /&gt;
: This will then insert a new option below (&amp;lt;tt&amp;gt;pslist&amp;lt;/tt&amp;gt;) to allow you to specify the bands you require.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;pslist&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; press the green plus symbol (&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039;) 5 times, and enter the numbers 1 to 6 in each of the boxes to output all AOT pseudo levels.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;iopa&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Full model area (1) &lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;imsk&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Land and sea points&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;imn&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; None (0)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;iwt&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; None&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ts&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; false&lt;br /&gt;
&lt;br /&gt;
===Usage profiles===&lt;br /&gt;
&lt;br /&gt;
[[Image:Vn10.9_newuse.png|thumb|300px|right|The new usage panel in Rose.]]&lt;br /&gt;
Making new usage profiles is not as straight-forward as for time and domain profiles, as these are used to output diagnostics to different output files (and possibly to climate mean files). To see what output streams are available, go to: &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Output Streams&#039;&#039;&#039;. In the UKCA training suite, only &#039;&#039;&#039;pp0&#039;&#039;&#039; is active. As part of this tutorial you will need to make a new output stream. &lt;br /&gt;
&lt;br /&gt;
For most modern UM jobs, climate meaning is off. However, to look at climate meaning, go to: &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Dumping and Meaning&#039;&#039;&#039;. This is controlled by the logical &#039;&#039;&#039;&amp;lt;tt&amp;gt;l_meaning_sequence&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, which in the UKCA training suite is set to &#039;&#039;&#039;false&#039;&#039;&#039; (i.e. no climate meaning). If this is set to &#039;&#039;true&#039;&#039; then various settings will need to be chosen, such as the reference time, the frequency of files, and which files to output. &lt;br /&gt;
&lt;br /&gt;
To view the usage profiles, go to: &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Usage Profiles&#039;&#039;&#039;. This contains a list of existing domain profiles, with names like &#039;&#039;&amp;lt;tt&amp;gt;upa_ffb3f00b&amp;lt;/tt&amp;gt;&#039;&#039; etc. If you look at the &#039;&#039;&#039;upa&#039;&#039;&#039; namelist (by right-clicking on it and clicking &#039;&#039;&#039;view namelist&#039;&#039;&#039;) you can see that this corresponds with the &#039;&#039;pp0&#039;&#039; output stream. For this tutorial you will make a new usage profile and link it to your new output stream.&lt;br /&gt;
&lt;br /&gt;
It is also possible to write diagnostics to a &#039;&#039;&#039;tag&#039;&#039;&#039;, which can then be read by other parts of the code. This is how UKCA couples to the UM, via tag=98. This can be seen in the &#039;&#039;&#039;upukca&#039;&#039;&#039; usage profile.&lt;br /&gt;
&lt;br /&gt;
When you take a copy of an existing configuration it is unlikely that you will need to make any changes to any (or make new) usage profiles. However, if you do want to make a new usage profile, you should first make a new output stream:&lt;br /&gt;
&lt;br /&gt;
# Go to &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Output Streams&#039;&#039;&#039; and right-click anywhere on the list and click the green plus symbol (&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039;) named &#039;&#039;&#039;Add new section&#039;&#039;&#039;.&lt;br /&gt;
#: This will make a new blank line (usually labelled &#039;&#039;&#039;1&#039;&#039;&#039;, the next &#039;&#039;&#039;2&#039;&#039;&#039; etc.) with a red &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt;&#039;&#039;&#039; next to it.&lt;br /&gt;
# Right-click this new line and click &#039;&#039;&#039;View namelist&#039;&#039;&#039;.&lt;br /&gt;
# Fill-in the values as required for what you want to do.&lt;br /&gt;
# When you have finished, you will need to rename this output stream via the right-hand menu by right-clicking on the entry.&lt;br /&gt;
# Then go to &#039;&#039;&#039;um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Usage Profiles&#039;&#039;&#039;, right-click anywhere on the list and click the green plus symbol (&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039;) named &#039;&#039;&#039;Add new section&#039;&#039;&#039;.&lt;br /&gt;
#: This will make a new blank line (usually labelled &#039;&#039;&#039;1&#039;&#039;&#039;, the next &#039;&#039;&#039;2&#039;&#039;&#039; etc.) with a red &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color: red&amp;quot;&amp;gt;X&amp;lt;/span&amp;gt;&#039;&#039;&#039; next to it.&lt;br /&gt;
# Right-click this new line and click &#039;&#039;&#039;View namelist&#039;&#039;&#039;.&lt;br /&gt;
# Fill-in the values as required for what you want to do.&lt;br /&gt;
# When you have finished, you will need to run the When you have finished, you will need to run the &#039;&#039;&#039;stashindices.TidyStashTransform&#039;&#039;&#039; macro by going to the &#039;&#039;&#039;Metadata &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; um&#039;&#039;&#039; drop-down menu. This will rename the new profile into the correct format.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that if you are making a new usage profile that is not associated with a &#039;&#039;tag&#039;&#039;, you may also need to make changes to the output streams. This could be quite involved.&lt;br /&gt;
&lt;br /&gt;
====Example: Make a new UPL usage profile and corresponding pp11 output stream====&lt;br /&gt;
&lt;br /&gt;
You will need to make the model output stream first, as described above and then fill in the values as below to make a stream and reinitialises every 3 hours. Note that text beginning with &amp;lt;tt&amp;gt;$&amp;lt;/tt&amp;gt;, e.g. &amp;lt;tt&amp;gt;$ROSE_DATAC&amp;lt;/tt&amp;gt; are &#039;&#039;environment variables&#039;&#039; used within Rose that usually point to directory paths or auto-generated names. For example, ${RUNID} will resolve as the suite-id.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;file_id&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. pp11&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. $ROSE_DATAC/$RUNID.pp11&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;packing&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; (here we will use the same as UPA) &#039;New Climate&#039; (5)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;reserved_headers&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; here we will set this to a large enough number, e.g. 16000. Sometimes you will get error messages telling you that &amp;quot;the number of fields exceeds reserved headers&amp;quot;, and a solution to this is to increase this number further.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;l_reinit&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; True&lt;br /&gt;
: This will then give you the following options for reinitialisation of the file. It will also remove the &amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; attribute which may not be needed but is best to provide.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;filename_base&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. $DATAM/${RUNID}a.pl%C&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;reinit_unit&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; &#039;Hours&#039; (1)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;reinit_start&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; 0 (i.e. start straight away)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;reinit_end&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; -1 (i.e. never stop)&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;reinit_step&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; 3&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This will just have a name of e.g. &#039;1&#039; at this point. To rename this to e.g. &#039;pp11&#039; you will need to find it in the list on the right-hand panel under &amp;quot;Model Output Streams&amp;quot;, right-click it, select &amp;quot;rename a section&amp;quot;, and change the e.g.&lt;br /&gt;
&lt;br /&gt;
 namelist:nlstcall_pp(1)&lt;br /&gt;
&lt;br /&gt;
to be&lt;br /&gt;
&lt;br /&gt;
 namelist:nlstcall_pp(pp11)&lt;br /&gt;
&lt;br /&gt;
Now you need to make your new usage profile as described above, and fill in the values as below to use this new model output stream, e.g.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;use_name&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. UPL&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;locn&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; To be written to a FF output stream with supplied file ID (3)&lt;br /&gt;
: This will then give you the option below (&amp;lt;tt&amp;gt;file_id&amp;lt;/tt&amp;gt;) to allow you to specify the output stream ID you defined above&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;file_id&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; e.g. pp11 (as you defined above)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The run the TidyStashTransform macro to give this usage profile a correct name.&lt;br /&gt;
&lt;br /&gt;
===Using your new profiles===&lt;br /&gt;
&lt;br /&gt;
Once you have made your new profiles you should then use them in the usual way when outputting diagnostics, as covered in [[UKCA_Chemistry_and_Aerosol_vn11.8_Tutorial_3#STASH_Panel|Tutorial 3]].&lt;br /&gt;
&lt;br /&gt;
When all your new STASH is set-up, you can use the Validator Macros to check if the names are correct, or if there are any unused STASH items etc. To run this, go to &#039;&#039;&#039;Metadata &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Check all Validator Macros&#039;&#039;&#039; from the drop-down menu. You can also check for &#039;&#039;fail-if&#039;&#039; or &#039;&#039;warn-if&#039;&#039; issues. However, these won&#039;t warn of incorrect domain requests (i.e. requesting pressure-levels for diagnostics only defined on a single level), so some care should still be taken.&lt;br /&gt;
&lt;br /&gt;
==Solution to Task 6.1==&lt;br /&gt;
&lt;br /&gt;
You were given the task&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Output the following aerosol and radiation diagnostics to a new &#039;&#039;&#039;UPL&#039;&#039;&#039; output stream that reinitialises every 3 hours. You should make a new &#039;&#039;time profile&#039;&#039; (called TRAD) to only output these on &#039;&#039;&#039;radiation timesteps&#039;&#039;&#039;. You will also need to make a new &#039;&#039;domain profile&#039;&#039; (called D3DAR) for s02i530 and s02i540, to &#039;&#039;&#039;output these on both model levels and pseudo levels&#039;&#039;&#039;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|STASH Section&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|STASH Item&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|STASH Name&lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    1 ||  207 || INCOMING SW RAD FLUX (TOA): ALL TSS &lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    1 ||  208 || OUTGOING SW RAD FLUX (TOA)          &lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  205 || OUTGOING LW RAD FLUX (TOA)          &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  285 || MINERAL DUST OPTICAL DEPTH IN RADN. &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  300 || AITKEN MODE (SOLUBLE) OPTICAL DEPTH &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  301 || ACCUM MODE (SOLUBLE) OPTICAL DEPTH  &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  302 || COARSE MODE (SOLUBLE) OPTICAL DEPTH &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  303 || AITKEN MODE (INSOL) OPTICAL DEPTH   &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  304 || ACCUM MODE (INSOL) OPTICAL DEPTH    &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  305 || COARSE MODE (INSOL) OPTICAL DEPTH   &lt;br /&gt;
|-  style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  585 || MINERAL DUST ABS. OPICAL DEPTH   &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  240 || AITKEN (SOLUBLE) ABS OPTICAL DEPTH  &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot; &lt;br /&gt;
|    2 ||  241 || ACCUM (SOLUBLE) ABS OPTICAL DEPTH   &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  242 || COARSE (SOLUBLE) ABS OPTICAL DEPTH  &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot;&lt;br /&gt;
|    2 ||  243 || AITKEN (INSOL) ABS OPTICAL DEPTH    &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot; &lt;br /&gt;
|    2 ||  244 || ACCUM (INSOL) ABS OPTICAL DEPTH     &lt;br /&gt;
|- style=&amp;quot;background:lightgrey;&amp;quot; &lt;br /&gt;
|    2 ||  245 || COARSE (INSOL) ABS OPTICAL DEPTH               &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  530 || UKCA 3D AEROSOL EXTINCTION &lt;br /&gt;
|- &lt;br /&gt;
|    2 ||  540 || CLASSIC 3D AEROSOL EXTINCTION  &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
and were given the hints&lt;br /&gt;
&lt;br /&gt;
:* &#039;&#039;Incoming and outgoing radiation are single-level fields that should be output using the DIAG profile.&#039;&#039;&lt;br /&gt;
:* &#039;&#039;Remember to output your aerosol diagnostics on the AOT pseudo levels using the DIAGAOT profile.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The specific Rose changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337623/d/u/5/1/6/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specific Rose changes made are:&lt;br /&gt;
&lt;br /&gt;
 Index: app/um/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/um/rose-app.conf	(revision 337614)&lt;br /&gt;
 +++ app/um/rose-app.conf	(revision 337623)&lt;br /&gt;
 @@ -1679,6 +1679,18 @@&lt;br /&gt;
  reinit_unit=2&lt;br /&gt;
  reserved_headers=16000&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:nlstcall_pp(pp11)]&lt;br /&gt;
 +file_id=&#039;pp11&#039;&lt;br /&gt;
 +!!filename=&#039;$ROSE_DATAC/$RUNID.pp11&#039;&lt;br /&gt;
 +filename_base=&#039;$DATAM/${RUNID}a.pl%C&#039;&lt;br /&gt;
 +l_reinit=.true.&lt;br /&gt;
 +packing=5&lt;br /&gt;
 +reinit_end=-1&lt;br /&gt;
 +reinit_start=0&lt;br /&gt;
 +reinit_step=3&lt;br /&gt;
 +reinit_unit=1&lt;br /&gt;
 +reserved_headers=16000&lt;br /&gt;
 +&lt;br /&gt;
  [!namelist:nlstcall_pp(pp2)]&lt;br /&gt;
  file_id=&#039;pp2&#039;&lt;br /&gt;
  !!filename=&#039;$ROSE_DATAC/$RUNID.pp2&#039;&lt;br /&gt;
 @@ -3423,6 +3435,40 @@&lt;br /&gt;
  ukca_mode_seg_size=4&lt;br /&gt;
  ussp_seg_size=32&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_domain(d3dar_17f7e88a)]&lt;br /&gt;
 +dom_name=&#039;D3DAR&#039;&lt;br /&gt;
 +!!iest=0&lt;br /&gt;
 +ilevs=1&lt;br /&gt;
 +imn=0&lt;br /&gt;
 +imsk=1&lt;br /&gt;
 +!!inth=0&lt;br /&gt;
 +iopa=1&lt;br /&gt;
 +iopl=2&lt;br /&gt;
 +!!isth=0&lt;br /&gt;
 +!!iwst=0&lt;br /&gt;
 +iwt=0&lt;br /&gt;
 +!!l_spml_ts=.false.&lt;br /&gt;
 +levb=1&lt;br /&gt;
 +!!levlst=0&lt;br /&gt;
 +levt=38&lt;br /&gt;
 +plt=4&lt;br /&gt;
 +pslist=1,2,3,4,5,6&lt;br /&gt;
 +!!rlevlst=0&lt;br /&gt;
 +!!spml_bot=0&lt;br /&gt;
 +!!spml_ew=0&lt;br /&gt;
 +!!spml_ns=0&lt;br /&gt;
 +!!spml_top=0&lt;br /&gt;
 +!!tblim=0&lt;br /&gt;
 +!!tblimr=0&lt;br /&gt;
 +!!telim=0&lt;br /&gt;
 +!!tnlim=0&lt;br /&gt;
 +ts=.false.&lt;br /&gt;
 +!!tslim=0&lt;br /&gt;
 +!!tsnum=0&lt;br /&gt;
 +!!ttlim=0&lt;br /&gt;
 +!!ttlimr=0&lt;br /&gt;
 +!!twlim=0&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_domain(dallrh_0496a967)]&lt;br /&gt;
  dom_name=&#039;DALLRH&#039;&lt;br /&gt;
  !!iest=0&lt;br /&gt;
 @@ -3704,6 +3750,22 @@&lt;br /&gt;
  tim_name=&#039;TALLTS&#039;&lt;br /&gt;
  use_name=&#039;UPUKCA&#039;&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_streq(01207_a27dd756)]&lt;br /&gt;
 +dom_name=&#039;DIAG&#039;&lt;br /&gt;
 +isec=1&lt;br /&gt;
 +item=207&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(01208_3171c632)]&lt;br /&gt;
 +dom_name=&#039;DIAG&#039;&lt;br /&gt;
 +isec=1&lt;br /&gt;
 +item=208&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_streq(01235_3511dd9f)]&lt;br /&gt;
  dom_name=&#039;DIAG&#039;&lt;br /&gt;
  isec=1&lt;br /&gt;
 @@ -3712,6 +3774,78 @@&lt;br /&gt;
  tim_name=&#039;TALLTS&#039;&lt;br /&gt;
  use_name=&#039;UPUKCA&#039;&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_streq(02205_f31b05b3)]&lt;br /&gt;
 +dom_name=&#039;DIAG&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=205&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02240_428b5acd)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=240&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02241_83ebc205)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=241&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02242_5a8d74dc)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=242&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02243_b109987d)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=243&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02244_4874edcf)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=244&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02245_87d0662f)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=245&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02285_8370d4a7)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=285&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02300_4fd94c8e)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=300&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_streq(02301_0f7c5f4a)]&lt;br /&gt;
  dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
  isec=2&lt;br /&gt;
 @@ -3720,6 +3854,70 @@&lt;br /&gt;
  tim_name=&#039;T3HMN&#039;&lt;br /&gt;
  use_name=&#039;UPA&#039;&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_streq(02301_5045b5d3)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=301&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02302_3c823c55)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=302&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02303_875ad30f)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=303&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02304_a6a633dd)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=304&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02305_43befd1e)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=305&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02530_a52da11d)]&lt;br /&gt;
 +dom_name=&#039;D3DAR&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=530&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02540_025da8d5)]&lt;br /&gt;
 +dom_name=&#039;D3DAR&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=540&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
 +[namelist:umstash_streq(02585_c0486d2f)]&lt;br /&gt;
 +dom_name=&#039;DIAGAOT&#039;&lt;br /&gt;
 +isec=2&lt;br /&gt;
 +item=585&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_streq(03025_c8768f77)]&lt;br /&gt;
  dom_name=&#039;DIAG&#039;&lt;br /&gt;
  isec=3&lt;br /&gt;
 @@ -4190,6 +4388,25 @@&lt;br /&gt;
  !!unt2=2&lt;br /&gt;
  unt3=1&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_time(trad_acd872d3)]&lt;br /&gt;
 +!!iedt=0&lt;br /&gt;
 +iend=-1&lt;br /&gt;
 +ifre=3&lt;br /&gt;
 +!!intv=0&lt;br /&gt;
 +!!ioff=0&lt;br /&gt;
 +iopt=1&lt;br /&gt;
 +!!isam=0&lt;br /&gt;
 +!!isdt=0&lt;br /&gt;
 +!!iser=0&lt;br /&gt;
 +istr=1&lt;br /&gt;
 +!!itimes=0&lt;br /&gt;
 +ityp=1&lt;br /&gt;
 +!!lts0=.false.&lt;br /&gt;
 +tim_name=&#039;TRAD&#039;&lt;br /&gt;
 +!!unt1=1&lt;br /&gt;
 +!!unt2=1&lt;br /&gt;
 +unt3=1&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_use(upa_ffb3f00b)]&lt;br /&gt;
  file_id=&#039;pp0&#039;&lt;br /&gt;
  locn=3&lt;br /&gt;
 @@ -4256,6 +4473,12 @@&lt;br /&gt;
  !!macrotag=0&lt;br /&gt;
  use_name=&#039;UPK&#039;&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_use(upl_b3d59e31)]&lt;br /&gt;
 +file_id=&#039;pp11&#039;&lt;br /&gt;
 +locn=3&lt;br /&gt;
 +!!macrotag=0&lt;br /&gt;
 +use_name=&#039;UPL&#039;&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_use(upukca_bde064da)]&lt;br /&gt;
  !!file_id=&#039;&#039;&lt;br /&gt;
  locn=6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task06.1/Task06.1_ukca.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task06.1/&lt;br /&gt;
&lt;br /&gt;
If you open the &#039;&#039;&#039;.pl&#039;&#039;&#039; file in Xconv, you should see the following additional fields:&lt;br /&gt;
&lt;br /&gt;
 0    : 96    72    1     2     field200: INCOMING SW RAD FLUX (TOA): ALL TSS &lt;br /&gt;
 1    : 96    72    1     2     field201: OUTGOING SW RAD FLUX (TOA)          &lt;br /&gt;
 2    : 96    72    1     2     olr: OUTGOING LW RAD FLUX (TOA)&lt;br /&gt;
 3    : 96    72    6     2     unspecified: AITKEN (SOLUBLE) ABS OPTICAL DEPTH      &lt;br /&gt;
 4    : 96    72    6     2     unspecified: ACCUM (SOLUBLE) ABS OPTICAL DEPTH      &lt;br /&gt;
 5    : 96    72    6     2     unspecified: COARSE (SOLUBLE) ABS OPTICAL DEPTH&lt;br /&gt;
 6    : 96    72    6     2     unspecified: AITKEN (INSOL) ABS OPTICAL DEPTH &lt;br /&gt;
 7    : 96    72    6     2     unspecified: ACCUM (INSOL) ABS OPTICAL DEPTH &lt;br /&gt;
 8    : 96    72    6     2     unspecified: COARSE (INSOL) ABS OPTICAL DEPTH      &lt;br /&gt;
 9    : 96    72    6     2     unspecified: MINERAL DUST OPTICAL DEPTH IN RADN. &lt;br /&gt;
 10   : 96    72    6     2     unspecified: AITKEN MODE (SOLUBLE) OPTICAL DEPTH &lt;br /&gt;
 11   : 96    72    6     2     unspecified: ACCUM MODE (SOLUBLE) OPTICAL DEPTH  &lt;br /&gt;
 12   : 96    72    6     2     unspecified: COARSE MODE (SOLUBLE) OPTICAL DEPTH &lt;br /&gt;
 13   : 96    72    6     2     unspecified: AITKEN MODE (INSOL) OPTICAL DEPTH   &lt;br /&gt;
 14   : 96    72    6     2     unspecified: ACCUM MODE (INSOL) OPTICAL DEPTH    &lt;br /&gt;
 15   : 96    72    6     2     unspecified: COARSE MODE (INSOL) OPTICAL DEPTH   &lt;br /&gt;
 16   : 96    72    38    2     unspecified: UKCA 3D AEROSOL EXTINCTION&lt;br /&gt;
 17   : 96    72    38    2     unspecified: UKCA 3D AEROSOL EXTINCTION&lt;br /&gt;
 18   : 96    72    38    2     unspecified: UKCA 3D AEROSOL EXTINCTION&lt;br /&gt;
 19   : 96    72    38    2     unspecified: UKCA 3D AEROSOL EXTINCTION&lt;br /&gt;
 20   : 96    72    38    2     unspecified: UKCA 3D AEROSOL EXTINCTION&lt;br /&gt;
 21   : 96    72    38    2     unspecified: UKCA 3D AEROSOL EXTINCTION&lt;br /&gt;
 22   : 96    72    38    2     unspecified: CLASSIC 3D AEROSOL EXTINCTION&lt;br /&gt;
 23   : 96    72    38    2     unspecified: CLASSIC 3D AEROSOL EXTINCTION&lt;br /&gt;
 24   : 96    72    38    2     unspecified: CLASSIC 3D AEROSOL EXTINCTION&lt;br /&gt;
 25   : 96    72    38    2     unspecified: CLASSIC 3D AEROSOL EXTINCTION&lt;br /&gt;
 26   : 96    72    38    2     unspecified: CLASSIC 3D AEROSOL EXTINCTION&lt;br /&gt;
 27   : 96    72    38    2     unspecified: CLASSIC 3D AEROSOL EXTINCTION&lt;br /&gt;
 28   : 96    72    6     2     unspecified: MINERAL DUST ABS. OPICAL DEPTH&lt;br /&gt;
&lt;br /&gt;
==Task 6.2: Calculate aerosol optical depth==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 6.2:&#039;&#039;&#039; Calculate the aerosol optical depth at 0.55 microns on the second radiation timestep.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| The UM calculates optical depth diagnostics on 6 pseudo levels corresponding to 0.38, 0.44, 0.55, 0.67, 0.87, and 1.02 microns, therefore 0.55 microns is pseudo level 3.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; You will need to use the CLASSIC mineral dust optical depth diagnostic, as the configuration used in these tutorials does not use modal dust. Likewise, the insoluble accumulation and coarse mode diagnostics will be zero as these modes are not used in the configuration used here.&lt;br /&gt;
&lt;br /&gt;
===Python notebook===&lt;br /&gt;
&lt;br /&gt;
To calculate the total aerosol optical depth at 0.55 microns, you should sum up the contribution from the different aerosol components. &lt;br /&gt;
&lt;br /&gt;
Example python notebooks to do this have been provided at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T062.ipynb&lt;br /&gt;
&lt;br /&gt;
and can be seen online here&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T062.ipynb iris_UM-UKCA_T062.ipynb]&lt;br /&gt;
&lt;br /&gt;
==Solution to Task 6.2 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T062_aod.png|0.55 micron AOD calculated from the component aerosol AOD diagnostics.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were asked to&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Calculate the aerosol optical depth at 0.55 microns on the second radiation timestep.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
and were given the hint&lt;br /&gt;
&lt;br /&gt;
:* &#039;&#039;The UM calculates optical depth diagnostics on 6 pseudo levels corresponding to 0.38, 0.44, 0.55, 0.67, 0.87, and 1.02 microns, therefore 0.55 microns is pseudo level 3.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should make use of the python notebook provided to do this.&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task06.2/&lt;br /&gt;
&lt;br /&gt;
==Task 6.3: Calculate the single-scattering albedo==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 6.3:&#039;&#039;&#039; Calculate the single-scattering albedo at 0.55 microns on the second radiation timestep, defined as: &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
1 - \left(\frac{\textrm{Absorption}\ \textrm{Aerosol}\ \textrm{Optical}\ \textrm{Depth}}{\textrm{Aerosol}\ \textrm{Optical}\ \textrm{Depth}}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Python notebook===&lt;br /&gt;
&lt;br /&gt;
To calculate the single-scattering albedo at 0.55 microns, you should sum up the contribution to AAOD and AOD from the different aerosol components. &lt;br /&gt;
&lt;br /&gt;
Example python notebooks to do this have been provided at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T063.ipynb&lt;br /&gt;
&lt;br /&gt;
and can be seen online here&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T063.ipynb iris_UM-UKCA_T063.ipynb]&lt;br /&gt;
&lt;br /&gt;
==Solution to Task 6.3 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T063_ssa.png|0.55 micron single-scattering albedo.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were asked to&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Calculate the single-scattering albedo at 0.55 microns on the second radiation timestep, defined as:&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
1 - \left(\frac{\textrm{Absorption}\ \textrm{Aerosol}\ \textrm{Optical}\ \textrm{Depth}}{\textrm{Aerosol}\ \textrm{Optical}\ \textrm{Depth}}\right)&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should use the python notebook provided to do this.&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task06.3/&lt;br /&gt;
&lt;br /&gt;
==Task 6.4: Calculate the top of the atmosphere net downward radiative flux==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 6.4:&#039;&#039;&#039; Calculate the net downward top of the atmosphere radiative flux on the second radiation timestep.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Python notebook===&lt;br /&gt;
&lt;br /&gt;
To calculate the net TOA downward radiative flux, you should sum up the outgoing contributions from shortwave and longwave radiation, and take this away from the incoming shortwave radiative flux. &lt;br /&gt;
&lt;br /&gt;
Example python notebooks to do this have been provided at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T064.ipynb&lt;br /&gt;
&lt;br /&gt;
and can be seen online here&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T064.ipynb iris_UM-UKCA_T064.ipynb]&lt;br /&gt;
&lt;br /&gt;
==Solution to Task 6.4 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T064_toa.png|Net downward TOA radiative flux.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were asked to&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Calculate the net downward top of the atmosphere radiative flux on the second radiation timestep.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should use the python notebook provided to do this.&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task06.4/&lt;br /&gt;
&lt;br /&gt;
==Task 6.5: Calculate aerosol optical depth from the 3D aerosol extinction==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 6.5:&#039;&#039;&#039; Using the 3D aerosol extinction, calculate the 0.55 micron aerosol optical depth on the second radiation timestep, and compare this to your AOD from Task 6.2.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| You will need to include contributions from both UKCA and CLASSIC (due to the dust scheme).&lt;br /&gt;
|-&lt;br /&gt;
| Remember to correctly calculate the grid-cell heights.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Python notebook===&lt;br /&gt;
&lt;br /&gt;
To calculate the AOD from the aerosol extinction, you will need to integrate this in the column. To do this you should first multiply by the height of each grid-cell before summing-up. &lt;br /&gt;
&lt;br /&gt;
Example python notebooks to do this have been provided at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T065.ipynb&lt;br /&gt;
&lt;br /&gt;
and can be seen online here&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T065.ipynb iris_UM-UKCA_T065.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These scripts will also difference the two different methods.&lt;br /&gt;
&lt;br /&gt;
==Solution to Task 6.5 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T065_aod.png|0.55 micron AOD calculated from the 3D extinction diagnostics.&lt;br /&gt;
Image:UM139_T065_aod_diff.png|Difference in AODs calculated by the two methods.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were asked to&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Using the 3D aerosol extinction, calculate the 0.55 micron aerosol optical depth on the second radiation timestep, and compare this to your AOD from Task 6.2.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
and were given the hints&lt;br /&gt;
&lt;br /&gt;
:* &#039;&#039;You will need to include contributions from both UKCA and CLASSIC (due to the dust scheme).&#039;&#039;&lt;br /&gt;
:* &#039;&#039;Remember to correctly calculate the grid-cell heights.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You should use the python notebook provided to do this.&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task06.5/&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Make new time and domain profiles as needed.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run the TidyStashTransform transform macro.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Output your diagnostics in STASH at: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; When adding new aerosol diagnostics, remember to output on pseudo levels if appropriate.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run the TidyStashTransform transform macro again for the diagnostic requests.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save your suite.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In the &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, run &amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt; to commit your changes to the repository.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Python can be used to process and visualise Unified Model output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 7|Tutorial 7]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5&amp;diff=11113</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 5</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5&amp;diff=11113"/>
		<updated>2026-03-19T14:10:37Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;MEDIUM&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;1-2 hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=5304s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
During this tutorial you will learn how to make new UKCA netCDF emissions files. Then you will learn how to add this new emissions file in Rose UKCA so that it emits into an existing tracer.&lt;br /&gt;
&lt;br /&gt;
This tutorial will go through the steps needed to make an emission file for a tracer which UKCA may or may not currently emit into. If emissions are already expected for a tracer this is a simpler case and you do not need to make any code changes.&lt;br /&gt;
&lt;br /&gt;
This example only deals with a single field. For a more detailed examples on changing emissions for all species, please see the [[Emissions for ACSIS]] webpage.&lt;br /&gt;
&lt;br /&gt;
==Task 5.1: Create a new NetCDF emissions file ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;Task 5.1:&#039;&#039;&#039; In the &amp;lt;pre&amp;gt;Tutorials/UMvn13.9/data/Task05.1&amp;lt;/pre&amp;gt; directory there is the file &#039;&#039;&#039;Emissions_of_CO.nc&#039;&#039;&#039; which is a 0.5x0.5 degree resolution surface emission field. You should regrid this file to the &#039;&#039;&#039;N48 ENDGame grid&#039;&#039;&#039;, and output it as a netCDF file that has the required netCDF metadata for a climatological surface emission without any diurnal cycle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==The netCDF emissions system==&lt;br /&gt;
&lt;br /&gt;
UKCA uses netCDF files to specify the emissions into UKCA species. Using netCDF files means that the &#039;&#039;&#039;metadata&#039;&#039;&#039; in the file can be used to specify various options, such as which diurnal cycle to use.&lt;br /&gt;
&lt;br /&gt;
===Metadata===&lt;br /&gt;
&lt;br /&gt;
In Global Atmosphere 7.0 and above, UKCA emissions are prescribed using NetCDF files, rather than using the the UM ancillary file format as NetCDF files allow for more flexibility and include informative metadata. For further information also see the [https://code.metoffice.gov.uk/doc/um/latest/papers/umdp_084.pdf UKCA documentation paper].&lt;br /&gt;
&lt;br /&gt;
====Emission field metadata====&lt;br /&gt;
&lt;br /&gt;
Each emission field in the NetCDF files needs to include the following variable metadata attributes (there is no requirement for the netCDF variable names themselves except that they be no longer than 80 characters):&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;standard_name&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; It should be included if an appropriate name is present in the CF Standard Name Table (see http://cfconventions.org/standard-names.html). An example of a valid ‘standard name’ is &amp;lt;pre&amp;gt;“tendency_of_atmosphere_mass_content_of_nitrogen_monoxide_due_to_emission”&amp;lt;/pre&amp;gt; (note that all substrings have to be separated by underscores).&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;long_name&amp;lt;/tt&amp;gt;:&#039;&#039;&#039;  It is recommendable but only compulsory if there is no ‘standard_name’ available for that emission field. There are no specific CF conventions for standard names, but within the UKCA code all substrings should be separated by white space as shown in this example: &amp;lt;pre&amp;gt;“tendency of atmosphere mass content of nitrogen monoxide due to emission”. &amp;lt;/pre&amp;gt; The reason for this is given in the description of the attribute units.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;tracer_name&amp;lt;/tt&amp;gt;:&#039;&#039;&#039;  This attribute has to be equal to the name of a tracer (or of an emission field such as ‘NO - aircrft’) present in the list of emissions for the given chemical scheme that is held in the character array &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt;. This name is used by the subroutine UKCA_ADD_EMISS to add the emission field to the corresponding tracer. There should be at least one emission field in the NetCDF files (or alternatively an online emission field) with the value of tracer name equal to one of the items in &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt;, otherwise the subroutine UKCA_EMISS_INIT (in module UKCA_EMISS_MOD) will report a missing tracer in the emission files and the model will stop with error. You will learn more about how to add new emissions to &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt; in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_10|Tutorial 10]].&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;units&amp;lt;/tt&amp;gt;:&#039;&#039;&#039;  According to CF conventions, all emissions should be expressed in &amp;lt;math&amp;gt;kg\, {m}^{-2}\, {s}^{-1}&amp;lt;/math&amp;gt;. As a consequence, all files will contain the attribute &amp;lt;pre&amp;gt;units = &amp;quot;kg m-2 s-1&amp;quot;&amp;lt;/pre&amp;gt; However, under some circumstances emission fields need to be reported as kg of a given species (e.g. nitrogen, carbon, sulfur). When that is the case this needs to be indicated in the standard name attribute if possible (see example below), otherwise in the long name attribute. As an example, in the case of an emission field reported as kg of carbon, the attribute units will be “kg m-2 s-1” while the attribute standard name should contain the substring &amp;lt;tt&amp;gt;“expressed_as_carbon”&amp;lt;/tt&amp;gt; if that is accepted by CF conventions for standard names (see http://cf-pcmdi.llnl.gov/documents/cf-standard-names); otherwise the attribute long name should contain the substring &amp;lt;tt&amp;gt;“expressed as carbon”&amp;lt;/tt&amp;gt;. The UM subroutines BASE_EMISS_FACTORS and GET_BASE_SCALING will look for such substrings and apply some conversions if needed. It is therefore essential that the substrings in standard_name and long_name are separated by underscores and white spaces, respectively, as indicated above.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;hourly_scaling&amp;lt;/tt&amp;gt;: (optional)&#039;&#039;&#039; A character attribute used to apply a diurnal cycle to emissions data with daily or lower frequency. Allowed values:&lt;br /&gt;
** &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt; (or attribute not present): no scaling&lt;br /&gt;
** &amp;lt;tt&amp;gt;traffic_uk&amp;lt;/tt&amp;gt;: used for UK air quality studies&lt;br /&gt;
** &amp;lt;tt&amp;gt;TNO_MACC_EU_SNAPnn&amp;lt;/tt&amp;gt; (where nn=01 to 11): Hourly factors of emissions for Europe. Calculated by TNO for the MACC project.&lt;br /&gt;
** &amp;lt;tt&amp;gt;diurnal_isopems&amp;lt;/tt&amp;gt; (for isoprene emissions): use the routine UKCA DIURNAL ISOP EMS to calculate a diurnal cycle using solar zenith angle and latitude to compute the expected number of sunshine hours.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;daily_scaling&amp;lt;/tt&amp;gt; (optional):&#039;&#039;&#039; A character attribute used to apply a weekly cycle to emissions weekly or lower frequency. Only allowed when the model is using the Gregorian calendar. Allowed values:&lt;br /&gt;
** &amp;lt;tt&amp;gt;none&amp;lt;/tt&amp;gt; (or attribute not present): no scaling&lt;br /&gt;
** &amp;lt;tt&amp;gt;traffic_uk&amp;lt;/tt&amp;gt;: used for UK air quality studies&lt;br /&gt;
** &amp;lt;tt&amp;gt;TNO_MACC_GB_SNAPnn&amp;lt;/tt&amp;gt; (where nn=01 to 11): Hourly factors of emissions for Great Britain. Calculated by TNO for the MACC project.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;vertical_scaling&amp;lt;/tt&amp;gt; (optional):&#039;&#039;&#039; A character attribute defining the vertical distribution of the emission. This allows the user to supply a 2D field to be applied over multiple levels. Allowed values:&lt;br /&gt;
** &amp;lt;tt&amp;gt;surface&amp;lt;/tt&amp;gt; (or attribute not present): treat as surface emission&lt;br /&gt;
** &amp;lt;tt&amp;gt;all_levels&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;3D&amp;lt;/tt&amp;gt;: field is three-dimensional and is provided on model levels (must have the same number of levels as the model)&lt;br /&gt;
** &amp;lt;tt&amp;gt;high_level&amp;lt;/tt&amp;gt;: spread a 2D field over multiple model levels, weighting by model layer thickness to achieve a uniform distribution in height. Must be accompanied by variable attributes &amp;lt;tt&amp;gt;lowest_level&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;highest_level&amp;lt;/tt&amp;gt; to indicate the model levels over which to distribute the emission.&lt;br /&gt;
** &amp;lt;tt&amp;gt;step1&amp;lt;/tt&amp;gt;: used for air quality simulations, spreads emission over lowest 3 layers of the model; only allowed with 38 model levels.&lt;br /&gt;
** &amp;lt;tt&amp;gt;EMEP_modified_SNAPnn&amp;lt;/tt&amp;gt; (where nn=01 to 11): Average vertical profiles for SNAP sectors, similar to implementation for EMEP model. See routine vertical emiss factors for details.&lt;br /&gt;
** &amp;lt;tt&amp;gt;Bieser_modified_SNAPnn&amp;lt;/tt&amp;gt; (where nn=01 to 11): Average vertical profiles for SNAP sectors, similar to implementation of Bieser et al. (2011) with the SMOKE model and including fugitive emissions. See routine vertical_emiss_factors for details. In addition, each NetCDF file has to include two global attributes with information that is valid for all emission fields present in the file:&lt;br /&gt;
&lt;br /&gt;
====Time coordinate metadata====&lt;br /&gt;
&lt;br /&gt;
These metadata items are associated with the &amp;lt;tt&amp;gt;time&amp;lt;/tt&amp;gt; dimension coordinate:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;calendar&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; A string indicating the calendar used, e.g. &amp;lt;tt&amp;gt;gregorian&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;360day&amp;lt;/tt&amp;gt; etc.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;calendar_flexible&amp;lt;/tt&amp;gt; (optional)&#039;&#039;&#039;: Integer number indicating whether or not the emission field can be used with other calendar types. This is typically allowed when used with monthly mean values.&lt;br /&gt;
** 0: Cannot be used with other calendar types&lt;br /&gt;
** 1: Can be used with other calendar types (i.e. a field designated as a &amp;lt;tt&amp;gt;360day&amp;lt;/tt&amp;gt; could also be used in a simulation using the Gregorian calendar, e.g. when nudging).&lt;br /&gt;
&lt;br /&gt;
====Global metadata====&lt;br /&gt;
&lt;br /&gt;
These metadata items are set globally:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;update_freq_in_hours&amp;lt;/tt&amp;gt;:&#039;&#039;&#039; Integer indicating the frequency (in hours) at which all emission fields present in that file should be read to update emissions(:)%values (:,:,:) in the UKCA code. Update points are calculated relative the model’s ancil reftime.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;update_type&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: Integer number indicating the times at which the data is provided. The same conventions as for ancillary files have been adopted:&lt;br /&gt;
** 0: Single time&lt;br /&gt;
** 1: Time series&lt;br /&gt;
** 2: Periodic time series&lt;br /&gt;
: When emissions are treated as time series (update_type=1) the user is responsible for creating emission fields which cover the whole period for which the model is run; otherwise the model will not find the time registers to do interpolations and will stop with error. When emissions are periodic (update_type=2) each emission field has to include exactly 12 monthly average emissions (Jan, Feb, ..., Dec). Other attributes, in particular some global attributes, as well as some additional fields (e.g. a variable indicating the type of grid mapping) should be present in the files to comply with CF conventions for NetCDF data, but they are not used by the UKCA code.&lt;br /&gt;
&lt;br /&gt;
==Using python to regrid your emissions==&lt;br /&gt;
&lt;br /&gt;
For this task we will be using the the Met Office [https://scitools-iris.readthedocs.io/en/stable/ Iris] library to regrid the emissions. This can also be done using [https://ncas-cms.github.io/cf-python/ cf-python]. For information on using cf-python to regrid emissions, please see the [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_8|UKCA UMvn13.0 Tutorials]].&lt;br /&gt;
&lt;br /&gt;
However, &amp;lt;span style=&amp;quot;font-size: 110%; color: red&amp;quot;&amp;gt;&#039;&#039;&#039;don&#039;t panic&#039;&#039;&#039;&amp;lt;/span&amp;gt;. &#039;&#039;&#039;You are not expected to know python to complete this tutorial.&#039;&#039;&#039; You will be provided with an example script to use that you only need to edit a few lines to get to work. You do not need to write a script from scratch, just read-through the provided script and try to understand what it does, and why.&lt;br /&gt;
&lt;br /&gt;
=== Python notebook ===&lt;br /&gt;
&lt;br /&gt;
In the directory:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/data/Task05.1&lt;br /&gt;
&lt;br /&gt;
you will find the file &#039;&#039;&#039;&amp;lt;tt&amp;gt;Emissions_of_CO.nc&amp;lt;/tt&amp;gt;&#039;&#039;&#039;. Using this file, and using your output &#039;&#039;&#039;.pa&#039;&#039;&#039; file from your suite, you should regrid the emissions into the N48 ENDGame grid. You will later use the resulting NetCDF file in your suite. A Jupyter notebook using Iris has been provided to regrid these emissions, and can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T051.ipynb&lt;br /&gt;
&lt;br /&gt;
This can also be seen online here:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/iris_UM-UKCA_T051.ipynb iris_UM-UKCA_T051.ipynb]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Connect to the notebook using the &#039;&#039;&#039;Jupyter Lab&#039;&#039;&#039; option from your Cylc 8 GUI Dashboard, and use the &#039;&#039;&#039;ukca&#039;&#039;&#039; kernel when running.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;&#039;&#039;&#039;http://localhost:4801/?token=UKCATraining&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Solution to Task5.1==&lt;br /&gt;
&lt;br /&gt;
You were given the task:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;In the &amp;lt;pre&amp;gt;Tutorials/UMvn13.9/data/Task05.1&amp;lt;/pre&amp;gt; directory there is the file &#039;&#039;&#039;Emissions_of_CO.nc&#039;&#039;&#039; which is a 0.5x0.5 degree resolution surface emission field. You should regrid this file to the &#039;&#039;&#039;N48 ENDGame grid&#039;&#039;&#039;, and output it as a netCDF file that has the required netCDF metadata for a climatological surface emission without any diurnal cycle.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It should be straight-forward to point to your &#039;&#039;&#039;.pa&#039;&#039;&#039; file to use in the script. You should read through it and have an understanding of how it works.&lt;br /&gt;
&lt;br /&gt;
Once the file has been regridded, you should see the output looking like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=300px&amp;gt;&lt;br /&gt;
Image:UM139_T05_co_05x05.png|CO emissions prior to regridding. &lt;br /&gt;
Image:UM139_T05_co_n48.png|CO emissions after regridding.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A file that has been produced by the above script can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task05.1/ukca_emiss_CO.nc&lt;br /&gt;
&lt;br /&gt;
==Task 5.2: make the required Rose changes to add your emissions into UKCA==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 5.2:&#039;&#039;&#039; You should now make the UKCA code changes to add your new emissions into the &#039;&#039;&#039;CO&#039;&#039;&#039; tracer. Compare your CO field at the end of the run with your previous simulation to see the differences.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
UKCA emissions are addative - you can include multiple emissions files for the same species and UKCA will add them up. This is useful when planning experiments where you may only want to change one particular sector, e.g. transport, but want to keep other sectors the same across multiple simulations.&lt;br /&gt;
&lt;br /&gt;
As new STASH items are defined by namelist entries, the model does not have to be recompiled and the reconfiguration step does not need to be re-run before rerunning the atmosphere task.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| Remember to save your &amp;lt;tt&amp;gt;atmosa.pa19810901_00&amp;lt;/tt&amp;gt; file to a different location before you re-run your suite.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Rose changes==&lt;br /&gt;
&lt;br /&gt;
===Include your new emissions file===&lt;br /&gt;
&lt;br /&gt;
There are several ways that the location of emissions files can be defined within the UKCA panel. These are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li value=&amp;quot;1&amp;quot;&amp;gt;With a full path to the file&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li value=&amp;quot;2&amp;quot;&amp;gt;Using environment variables set using an &#039;&#039;&#039;ancil_versions&#039;&#039;&#039; file&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li value=&amp;quot;3&amp;quot;&amp;gt;A mixture of (1) and (2)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li value=&amp;quot;4&amp;quot;&amp;gt;By specifying a top-level directory in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_em_dir&amp;lt;/tt&amp;gt;&#039;&#039;&#039; Rose variable, and then paths to the required files within &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_em_files&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Within Rose you may also find that the files are in separate boxes (one for each file) or in a single long list.&lt;br /&gt;
&lt;br /&gt;
The UKCA training suite uses option &#039;&#039;&#039;1&#039;&#039;&#039; above, specifying the full path in &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_em_files&amp;lt;/tt&amp;gt;&#039;&#039;&#039;. Note that &amp;lt;tt&amp;gt;ukca_em_dir&amp;lt;/tt&amp;gt; is blank in this suite. &lt;br /&gt;
&lt;br /&gt;
It is easier to add the emissions file by editing the &amp;lt;tt&amp;gt;app/um/rose-app.conf&amp;lt;/tt&amp;gt; file directly in a text editor than by using &amp;lt;tt&amp;gt;rose edit&amp;lt;/tt&amp;gt;. This is because Rose can sometimes make all the files appear on a single line, whereas in the text file they will be on separate lines. To find this block &#039;&#039;&#039;save and close your suite&#039;&#039;&#039;, and then open the &#039;&#039;&#039;&amp;lt;tt&amp;gt;app/um/rose-app.conf&amp;lt;/tt&amp;gt;&#039;&#039;&#039; file in a text editor (e.g. emacs, vim, or leafpad). Search for &#039;&#039;&#039;ukca_em_files&#039;&#039;&#039; and you will find the text below:&lt;br /&gt;
&lt;br /&gt;
 ukca_em_files=&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/gfed3.1/clim_2002_2011/v2/ukca_emiss_BC_biomass.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/gfed3.1/clim_2002_2011/v2/ukca_emiss_OC_biomass.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/andres_kasgnoc/v1/ukca_emiss_SO2_nat.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_Monoterp.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/1970_2010/v1/ukca_emiss_SO2_low.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_BC_fossil.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_BC_biofuel.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_OC_fossil.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_OC_biofuel.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/1970_2010/v1/ukca_emiss_SO2_high.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/1970_2010/v1/ukca_emiss_DMS.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/1970_2010/v1/ukca_emiss_NH3.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_NO_aircrft.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_HCHO.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_CH4.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_MeCHO.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_C3H8.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_NO.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_C2H6.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_Me2CO.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_C5H8.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/biogenic/v1/biogenic/MEGAN-MACC_biogenic_MeOH_clim_2001-2010.nc&#039;,&lt;br /&gt;
              =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_CO.nc&#039;&lt;br /&gt;
&lt;br /&gt;
you will need to add a new line at the end of the block, with the &#039;&#039;&#039;=&#039;&#039;&#039; sign aligned, specifying the path to your new file. Don&#039;t forget to add a comma (&#039;&#039;&#039;,&#039;&#039;&#039;) at the end of the line above.&lt;br /&gt;
&lt;br /&gt;
===Diagnostics===&lt;br /&gt;
&lt;br /&gt;
You should have already added CO diagnostics to the STASH panel in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_4|Tutorial 4]]. If you are doing this for a different tracer(s) as part of your work you may wish to output equivalent diagnostics at this stage.&lt;br /&gt;
&lt;br /&gt;
==Worked Solution to Task 5.2==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=200px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_T052_co_surf.png|Surface level (20m) concentrations (kg/kg) of CO after the new emissions have been applied.&lt;br /&gt;
Image:UM139_T052_co_ems.png|Surface level (20m) emissions (kg^2 m^-1 s^-1) of CO after the new emissions have been applied.&lt;br /&gt;
Image:UM139_co_py.png|Difference in surface level (20m) concentrations (kg/kg) of CO after the new emissions have been applied.&lt;br /&gt;
Image:UM139_emico_py.png|Difference in surface level (20m) emissions (kg^2 m^-1 s^-1) of CO after the new emissions have been applied.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were given the task&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You should now make the UKCA code changes to add your new emissions into the &#039;&#039;&#039;CO&#039;&#039;&#039; tracer. Compare your CO field at the end of the run with your previous simulation to see the differences.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You were given the hint&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Remember to save your &amp;lt;tt&amp;gt;atmosa.pa19810901_00&amp;lt;/tt&amp;gt; file to a different location before you re-run your suite.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once you have made the required Rose changes and run your suite, you should be able to calculate and plot the differences in the CO emissions and the CO tracer.&lt;br /&gt;
&lt;br /&gt;
The specific Rose changes made are:&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337614/d/u/5/1/6/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/um/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/um/rose-app.conf	(revision 337612)&lt;br /&gt;
 +++ app/um/rose-app.conf	(revision 337614)&lt;br /&gt;
 @@ -3251,7 +3251,8 @@&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_Me2CO.nc&#039;,&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_C5H8.nc&#039;,&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/biogenic/v1/biogenic/MEGAN-MACC_biogenic_MeOH_clim_2001-2010.nc&#039;,&lt;br /&gt;
 -             =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_CO.nc&#039;&lt;br /&gt;
 +             =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_CO.nc&#039;,&lt;br /&gt;
 +             =&#039;/home/vagrant/ukca_emiss_CO.nc&#039;&lt;br /&gt;
  ukca_h1202mmr=3.788e-13&lt;br /&gt;
  ukca_h1211mmr=2.225e-11&lt;br /&gt;
  ukca_h1301mmr=1.363e-11&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task05.2/Task05.2_rose.patch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task05.2/&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Obtain emissions data for the species of interest.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Regrid the emissions to the correct MetUM resolution that you are using.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save these emissions as netCDF, including the required metadata that UKCA requires.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In your suite, include this file in the &amp;lt;tt&amp;gt;ukca_em_files&amp;lt;/tt&amp;gt; variable in the UKCA panel: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; UM Science Settings &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Section 34 - UKCA: UK Aerosols and Chemistry &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Emissions. You can add this directly to the &amp;lt;tt&amp;gt;app/um/rose-app.conf&amp;lt;/tt&amp;gt; file, but you should close your suite first to prevent any changes being lost.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Output your emissions diagnostic in: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run the TidyStashTransform transform macro.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save your suite.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In the &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, run &amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt; to commit your changes to the repository.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run your suite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 6|Tutorial 6]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_1&amp;diff=11112</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 1</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_1&amp;diff=11112"/>
		<updated>2026-03-19T14:09:34Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=711s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this tutorial==&lt;br /&gt;
&lt;br /&gt;
In this tutorial you will learn how to copy a UKCA Box Model suite, run it, and plot the output.&lt;br /&gt;
&lt;br /&gt;
==Copying and Running an Existing Rose Suite==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|Machine &lt;br /&gt;
!style=&amp;quot;text-align:top;|UM Version/Configuration&lt;br /&gt;
!style=&amp;quot;text-align:top;|Suite ID&lt;br /&gt;
|-&lt;br /&gt;
| vm || UMvn13.9 UKCA Box Model || &#039;&#039;&#039;[https://code.metoffice.gov.uk/trac/roses-u/browser/d/r/4/0/7/trunk u-dr407]&#039;&#039;&#039; &lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When you first login to your virtual machine you should then be asked for your Met Office Science Repository Service (MOSRS) password. Once you enter this, if this is the first time you are logging in, you will also be asked for your MOSRS username. This will likely be your name in lower case, and is &#039;&#039;&#039;not&#039;&#039;&#039; your username on the VM.&lt;br /&gt;
&lt;br /&gt;
Then copy the rose suite by:&lt;br /&gt;
&lt;br /&gt;
 rosie copy u-dr407&lt;br /&gt;
&lt;br /&gt;
[[Image:T01_rosegcylc.png|thumb|300px|right|UKCA Box Model opened with Rose and GCylc running on the VM via X2Go.]]&lt;br /&gt;
This will open an editor containing text similar to this:&lt;br /&gt;
&lt;br /&gt;
 description=Copy of u-dr407/trunk@328566&lt;br /&gt;
 owner=lukeabraham&lt;br /&gt;
 project=ukca&lt;br /&gt;
 title=Cylc 8 UMvn13.9 UKCA Box Model&lt;br /&gt;
 &lt;br /&gt;
 # Make changes ABOVE these lines.&lt;br /&gt;
 # The &amp;quot;owner&amp;quot;, &amp;quot;project&amp;quot; and &amp;quot;title&amp;quot; fields are compulsory.&lt;br /&gt;
 # Any KEY=VALUE pairs can be added. Known fields include:&lt;br /&gt;
 # &amp;quot;access-list&amp;quot;, &amp;quot;description&amp;quot; and &amp;quot;sub-project&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
You can edit the title to make it more descriptive if you like. Then save (e.g. Ctrl-s) and close the file (e.g. Ctrl-q). The press &#039;&#039;&#039;y&#039;&#039;&#039; on the keyboard when prompted and press return.&lt;br /&gt;
&lt;br /&gt;
The suite will now copy and checkout to your &amp;lt;tt&amp;gt;/home/&#039;&#039;&#039;$USER&#039;&#039;&#039;/roses&amp;lt;/tt&amp;gt; directory, into a sub-directory that is the same as the SUITE-ID. You should change into this directory now using &#039;&#039;&#039;cd&#039;&#039;&#039;, e.g.&lt;br /&gt;
&lt;br /&gt;
 cd roses/u-ab123&lt;br /&gt;
&lt;br /&gt;
then open the suite by typing&lt;br /&gt;
&lt;br /&gt;
 rose edit &amp;amp;&lt;br /&gt;
&lt;br /&gt;
and pressing return. You run the suite for the first time by typing&lt;br /&gt;
&lt;br /&gt;
 cylc vip&lt;br /&gt;
&lt;br /&gt;
in the terminal when you are in its top-level directory (i.e. &amp;lt;tt&amp;gt;u-ab123&amp;lt;/tt&amp;gt;). This is a [https://cylc.github.io/ Cylc] command that means &#039;&#039;&#039;validate&#039;&#039;&#039;, &#039;&#039;&#039;install&#039;&#039;&#039;, and &#039;&#039;&#039;play&#039;&#039;&#039;. You will then get similar output to following in the terminal:&lt;br /&gt;
&lt;br /&gt;
 vagrant@vagrant:~/roses/u-ds042$ cylc vip&lt;br /&gt;
 $ cylc validate /home/vagrant/roses/u-ds042&lt;br /&gt;
 Valid for cylc-8.4.3&lt;br /&gt;
 $ cylc install /home/vagrant/roses/u-ds042&lt;br /&gt;
 INSTALLED u-ds042/run1 from /home/vagrant/roses/u-ds042&lt;br /&gt;
 $ cylc play u-ds042/run1&lt;br /&gt;
 &lt;br /&gt;
  ▪ ■  Cylc Workflow Engine 8.4.3&lt;br /&gt;
  ██   Copyright (C) 2008-2025 NIWA&lt;br /&gt;
 ▝▘    &amp;amp; British Crown (Met Office) &amp;amp; Contributors&lt;br /&gt;
 &lt;br /&gt;
 INFO - Extracting job.sh to /home/vagrant/cylc-run/u-ds042/run1/.service/etc/job.sh&lt;br /&gt;
 u-ds042/run1: vagrant PID=347531&lt;br /&gt;
&lt;br /&gt;
To view the progress of this suite you can either use the Cylc TUI (&amp;quot;terminal user interface&amp;quot;) or Cylc GUI (&amp;quot;graphical user interface&amp;quot;). The TUI can be opened using the command&lt;br /&gt;
&lt;br /&gt;
 cylc tui&lt;br /&gt;
&lt;br /&gt;
which will then open a terminal-based view similar to that seen in the figure below. This lists all your suites, some of which will have been run previously when setting-up your virtual machine. To navigate through the TUI you should use the arrow keys to move up and down, and the right and left arrow keys to open and collapse sections that are availble, indicated by the &amp;quot;&amp;lt;tt&amp;gt;+&amp;lt;/tt&amp;gt;&amp;quot; symbol.&lt;br /&gt;
&lt;br /&gt;
A linux alias has been made for you to run the GUI. In the terminal type&lt;br /&gt;
&lt;br /&gt;
 cylc-gui &lt;br /&gt;
&lt;br /&gt;
(note the &amp;lt;tt&amp;gt;-&amp;lt;/tt&amp;gt;). This is equivalent to opening an &amp;lt;tt&amp;gt;lxterminal&amp;lt;/tt&amp;gt; and then running the following command:&lt;br /&gt;
&lt;br /&gt;
 cylc gui --ServerApp.open_browser=False --ServerApp.port=PORT --ServerApp.ip=0.0.0.0 &lt;br /&gt;
&lt;br /&gt;
This starts the graphical Cylc server, and you then need to connect to it as described &#039;&#039;&#039;[[UKCA_Chemistry_and_Aerosol_Tutorials:_Python_notebooks_with_Cylc|here]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
A screenshot of the GUI, equivalent to the TUI output, can be seen in the figure below. Information about what the symbols and colours mean can be found in the [https://cylc.github.io/cylc-doc/stable/html/user-guide/running-workflows/tasks-jobs-ui.html Cylc documenation].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:Cylc8_tui.png|Cylc terminal user interface&lt;br /&gt;
Image:Cylc8_gui.png|Cylc graphical user interface&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For this suite to run you need the UKCA branch&lt;br /&gt;
&lt;br /&gt;
 fcm:ukca.x_br/dev/lukeabraham/um13.9_ukca_box&lt;br /&gt;
&lt;br /&gt;
checked-out into your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory. This has been done for you.&lt;br /&gt;
&lt;br /&gt;
If you are using your own VM, times will vary depending on the specifications of the host. It may take 2 or 3 minutes to compile the code (&#039;&#039;fcm_make&#039;&#039;) for the first time (and a few seconds when recompiling), followed by another few seconds to run UKCA itself (&#039;&#039;ukca&#039;&#039;). Any unsuccessful jobs will be highlighted in red and have a status of &amp;quot;failed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
When the suite has finished successfully it will then become blank with the message &#039;&#039;&#039;stopped&#039;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
To re-run a suite, you can &amp;lt;tt&amp;gt;cylc vip&amp;lt;/tt&amp;gt; again, but this will make a new run, located in a different &amp;lt;tt&amp;gt;~/cylc_run/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;/run&#039;&#039;&#039;X&#039;&#039;&#039;&amp;lt;/tt&amp;gt; directory. This will also do a fresh build, which may take time and could fill up the disk on your machine. To rerun in the existing directory you can make any desired changes and then, e.g. from within your &amp;lt;tt&amp;gt;roses/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 cylc vr --yes ${PWD##*/}&lt;br /&gt;
 cylc trigger --flow=new ${PWD##*/}//1/&#039;&#039;&#039;TASK&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where &#039;&#039;&#039;&amp;lt;tt&amp;gt;TASK&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is, e.g. &amp;lt;tt&amp;gt;fcm_make&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt;. If you want to rebuild and then rerun you would trigger the &amp;lt;tt&amp;gt;fcm_make&amp;lt;/tt&amp;gt; task which will then automatically run the &amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt; task when the &amp;lt;tt&amp;gt;fcm_make&amp;lt;/tt&amp;gt; task has finished. If you don&#039;t need to rebuild at all you could just run the &amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt; task straight away. &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;--yes&amp;lt;/tt&amp;gt; on the reinstall prevents a y/n prompt and means it will run straight away, and the &amp;lt;tt&amp;gt;--flow=new&amp;lt;/tt&amp;gt; means that the suite will start again and ignore that it completed successfully. If you are not in your e.g. &amp;lt;tt&amp;gt;~/roses/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;&amp;lt;/tt&amp;gt; directory you should replace &#039;&#039;&#039;&amp;lt;tt&amp;gt;${PWD##*/}&amp;lt;/tt&amp;gt;&#039;&#039;&#039; with the suite-id (e.g. &amp;lt;tt&amp;gt;u-ab123&amp;lt;/tt&amp;gt; etc.).&lt;br /&gt;
&lt;br /&gt;
If a suite did not complete a task successfully it is possible to re-trigger that task directly in the TUI or GUI from the options menu of that task.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;You may prefer to re-run a suite using these above methods, rather than &amp;lt;tt&amp;gt;cylc vip&amp;lt;/tt&amp;gt;, as it may save time and reduce disk space with rebuilding.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Version Control==&lt;br /&gt;
&lt;br /&gt;
Rose suites are all held under version control, using [https://www.metoffice.gov.uk/research/weather/weather-science-it/fcm fcm]. When making changes to a suite, you will need to &#039;&#039;&#039;save&#039;&#039;&#039; it before you can &#039;&#039;&#039;run&#039;&#039;&#039; the suite. Once you are happy with the settings, you can also &#039;&#039;&#039;commit&#039;&#039;&#039; these changes back to the repository - to do this change directory to the &lt;br /&gt;
&lt;br /&gt;
 /home/&#039;&#039;&#039;$USER&#039;&#039;&#039;/roses/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
and then type&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;fcm commit&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
a text editor will then open, and you should type a short message describing what the changes you have made do. You should then close the editor and type &#039;&#039;&#039;y&#039;&#039;&#039; in the terminal. It is recommended that you commit frequently (even on configurations that aren&#039;t working) as this protects you against mistakes and accidental deletions etc.&lt;br /&gt;
&lt;br /&gt;
These suites can be viewed on the SRS here: [https://code.metoffice.gov.uk/trac/roses-u https://code.metoffice.gov.uk/trac/roses-u (password required)]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;It is recommended that you commit your suites regularly.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Output Directory Structure==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=250px&amp;gt;&lt;br /&gt;
Image:UKCA_BoxModel_DirStruct_139.png|Simplified cylc-run directory structure. &#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039; will be e.g. &#039;&#039;&#039;&#039;&#039;u-ds042&#039;&#039;&#039;&#039;&#039;, and &#039;&#039;&#039;[CYCLE]&#039;&#039;&#039; is the cycle-point, e.g. &#039;&#039;&#039;&#039;&#039;1&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output directory structure of rose suites are rather complex. The schematic gives a broad overview of the general structure. Everything can be found within the &#039;&#039;&#039;&amp;lt;tt&amp;gt;[SUITE-ID]&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (e.g. &#039;&#039;u-ds042&#039;&#039; etc.) directory, which can be found within your &#039;&#039;&#039;&amp;lt;tt&amp;gt;$HOME/cylc-run&amp;lt;/tt&amp;gt;&#039;&#039;&#039; directory.&lt;br /&gt;
&lt;br /&gt;
Within this directory there are several directories, including:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;run1&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;tt&amp;gt;run2&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, ..., &#039;&#039;&#039;&amp;lt;tt&amp;gt;runN&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: these directories contain all the other directories used when the job actually runs. Each new &amp;lt;tt&amp;gt;cylc vip&amp;lt;/tt&amp;gt; command will make a new &amp;lt;tt&amp;gt;runX&amp;lt;/tt&amp;gt; directory, with &amp;lt;tt&amp;gt;runN&amp;lt;/tt&amp;gt; symbolicially linked to the latest one. &lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;log&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: this contains all the job.out (containing output from UM &amp;lt;tt&amp;gt;WRITE&amp;lt;/tt&amp;gt; statements from the &amp;lt;tt&amp;gt;umPrint&amp;lt;/tt&amp;gt; subroutine) and job.err files etc., as well as the script used to run the job. &lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;work&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: this contains the directories used when the job actually runs. Real-time output will be sent to files here (held in a &amp;lt;tt&amp;gt;pe_output&amp;lt;/tt&amp;gt; directory). Model output will also be here in the form of &amp;lt;tt&amp;gt;.csv&amp;lt;/tt&amp;gt; text files that can be read by a spreadsheet program (such as gnumeric), gnuplot, or python.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Within these directories there will be many sub-directories. Some of these will be named from the &#039;&#039;&#039;cycle-point&#039;&#039;&#039; (labelled &#039;&#039;&#039;&amp;lt;tt&amp;gt;[CYCLE]&amp;lt;/tt&amp;gt;&#039;&#039;&#039; in the graphic. For the UKCA Training Suite this will be &#039;&#039;&#039;1&#039;&#039;&#039;. The sub-directories will (eventually) be named after the &#039;&#039;&#039;app&#039;&#039;&#039; (labelled by &#039;&#039;&#039;&amp;lt;tt&amp;gt;[JOB NAME]&amp;lt;/tt&amp;gt;&#039;&#039;&#039; in the table below) that the output is from, e.g. &amp;lt;tt&amp;gt;fcm_make&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt; etc.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|Files&lt;br /&gt;
!style=&amp;quot;text-align:top;|General Path&lt;br /&gt;
!style=&amp;quot;text-align:top;|Example&lt;br /&gt;
|-&lt;br /&gt;
| Most recent &#039;&#039;job.out&#039;&#039; files || &amp;lt;tt&amp;gt;/home/vagrant/cylc-run/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;/runN/log/job/1/&#039;&#039;&#039;[JOB NAME]&#039;&#039;&#039;/NN&amp;lt;/tt&amp;gt; ||  &amp;lt;tt&amp;gt;/home/vagrant/cylc-run/u-ds042/runN/log/job/1/ukca/NN&amp;lt;/tt&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| Processor output (while running) || &amp;lt;tt&amp;gt;/home/vagrant/cylc-run/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;/runN/work/1/&#039;&#039;&#039;[JOB NAME]&#039;&#039;&#039;/pe_output&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;/home/vagrant/cylc-run/u-ds042/runN/work/1/ukca/pe_output&amp;lt;/tt&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| UKCA Box Model output text files in ASCII format&amp;lt;br/&amp;gt;&amp;lt;tt&amp;gt;tracer_out.csv&amp;lt;/tt&amp;gt;&amp;lt;br/&amp;gt;&amp;lt;tt&amp;gt;flux_out.csv&amp;lt;/tt&amp;gt; || &amp;lt;tt&amp;gt;/home/vagrant/cylc-run/&#039;&#039;&#039;[SUITE-ID]&#039;&#039;&#039;/runN/work/1/ukca&amp;lt;/tt&amp;gt;  || &amp;lt;tt&amp;gt;/home/vagrant/cylc-run/u-ds042/runN/work/1/ukca&amp;lt;/tt&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;tt&amp;gt;job.out&amp;lt;/tt&amp;gt; files can also be viewed through the Cylc TUI or GUI.&lt;br /&gt;
* UKCA Box Model output file will be &amp;lt;tt&amp;gt;tracer_out.csv&amp;lt;/tt&amp;gt; for tracers and &amp;lt;tt&amp;gt;flux_out.csv&amp;lt;/tt&amp;gt; for chemical reaction fluxes. These can be renamed in Rose in the &#039;&#039;&#039;ukca &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output&#039;&#039;&#039; panel.&lt;br /&gt;
&lt;br /&gt;
==Exploring Rose==&lt;br /&gt;
&lt;br /&gt;
Take a look at your suite, and click through the options. There are 2 key sections that you will need to consider:&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;tt&amp;gt;fcm_make&amp;lt;/tt&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
This section controls which fcm branches are used by the model, and also what compiler settings are used etc. You should go to &#039;&#039;&#039;fcm_make &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; env &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Sources&#039;&#039;&#039;  to see what branches are being used. During the course of these tutorials you will make a branch and add it here to complete the tutorial tasks. You can add both relative paths to the repository (starting with &amp;lt;tt&amp;gt;branches/&amp;lt;/tt&amp;gt;) and absolute paths to a working copy (starting with &amp;lt;tt&amp;gt;/home/&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
Click the arrow by &#039;&#039;&#039;ukca&#039;&#039;&#039; to view the list of sections. We&#039;ll be most interested in the &#039;&#039;&#039;namelist&#039;&#039;&#039; section, which contains all the settings that configure the science that can be done by UKCA. Take a look through the panels and sub-panels in this section to get a feel for how it is organised.&lt;br /&gt;
&lt;br /&gt;
==Viewing Output==&lt;br /&gt;
&lt;br /&gt;
Example output from the UKCA box model training suite can be found at&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Box_Base&lt;br /&gt;
&lt;br /&gt;
===gnuplot===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:T01_gnuplot.png|Plotting O3 concentrations using Gnuplot&lt;br /&gt;
Image:T01_o3_002.png|O3 mass-mixing ratio plotted using gnuplot&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The quickest and easiest way to plot UKCA box model output is using &#039;&#039;&#039;[http://www.gnuplot.info/ Gnuplot]&#039;&#039;&#039;, which is a relatively simple command-line plotting tool. The box model outputs tracer concentrations and chemical reaction fluxes every timestep to the files &#039;&#039;&#039;&amp;lt;tt&amp;gt;tracer_out.csv&amp;lt;/tt&amp;gt;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;lt;tt&amp;gt;flux_out.csv&amp;lt;/tt&amp;gt;&#039;&#039;&#039; respectively.&lt;br /&gt;
&lt;br /&gt;
To plot these files, change into your suite&#039;s cylc-run directory and navigate to the ukca directory in work, e.g.&lt;br /&gt;
&lt;br /&gt;
 cd /home/vagrant/cylc-run/u-ds042/runN/work/1/ukca&lt;br /&gt;
&lt;br /&gt;
then load gnuplot by typing&lt;br /&gt;
&lt;br /&gt;
 gnuplot&lt;br /&gt;
&lt;br /&gt;
To plot the tracer file, type&lt;br /&gt;
&lt;br /&gt;
 plot &amp;quot;tracer_out.csv&amp;quot; using 1:3 with linespoints&lt;br /&gt;
&lt;br /&gt;
which can be shortened to&lt;br /&gt;
&lt;br /&gt;
 p &amp;quot;tracer_out.csv&amp;quot; u 1:3 w lp&lt;br /&gt;
&lt;br /&gt;
The file can be saved from the export menu on the plot itself. Additional options for the [http://gnuplot.info/docs_5.5/loc9418.html &amp;lt;tt&amp;gt;set&amp;lt;/tt&amp;gt; command] can be used to define labels, titles, change how the axis labels look, e.g.&lt;br /&gt;
&lt;br /&gt;
 gnuplot&amp;gt; set title &amp;quot;O3 MMR&amp;quot;&lt;br /&gt;
 gnuplot&amp;gt; set xlabel &amp;quot;timestep number&amp;quot;&lt;br /&gt;
 gnuplot&amp;gt; set ylabel &amp;quot;mass mixing ratio /kg kg^{-1}&amp;quot;&lt;br /&gt;
 gnuplot&amp;gt; set format y &amp;quot;%.2t*10^{%+03T}&amp;quot;&lt;br /&gt;
 gnuplot&amp;gt; unset key&lt;br /&gt;
 gnuplot&amp;gt; p &#039;tracer_out.csv&#039; u 1:3 w lp&lt;br /&gt;
&lt;br /&gt;
The ordering of the species in the &amp;lt;tt&amp;gt;tracer_out.csv&amp;lt;/tt&amp;gt; can be seen by opening it in e.g. a simple spreadsheet program like &#039;&#039;&#039;[http://www.gnumeric.org/ Gnumeric]&#039;&#039;&#039;. You may need to install this first using&lt;br /&gt;
&lt;br /&gt;
 sudo apt install gnumeric&lt;br /&gt;
&lt;br /&gt;
before opening the file&lt;br /&gt;
&lt;br /&gt;
 gnumeric tracer_out.csv&lt;br /&gt;
&lt;br /&gt;
The column number is given in the first line with the tracer name in the line below. You could also open the file in &amp;lt;tt&amp;gt;emacs&amp;lt;/tt&amp;gt; and then &amp;lt;tt&amp;gt;M-x toggle-truncate-lines&amp;lt;/tt&amp;gt;. An example of this header for the StratTrop chemistry with GLOMAP-mode aerosols is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre;&amp;quot;&amp;gt;&lt;br /&gt;
 # COL    1,               2,               3,               4,               5,               6,               7,               8,               9,              10,              11,              12,              13,              14,              15,              16,              17,              18,              19,              20,              21,              22,              23,              24,              25,              26,              27,              28,              29,              30,              31,              32,              33,              34,              35,              36,              37,              38,              39,              40,              41,              42,              43,              44,              45,              46,              47,              48,              49,              50,              51,              52,              53,              54,              55,              56,              57,              58,              59,              60,              61,              62,              63,              64,              65,              66,              67,              68,              69,              70,              71,              72,              73,              74,              75,              76,              77,              78,              79,              80,              81,              82,              83,              84,              85,              86,              87,              88,              89,              90,              91,              92,              93,              94,              95,              96&lt;br /&gt;
 # Timestep,           O(3P),              O3,               N,              NO,             NO3,             NO2,            N2O5,          HO2NO2,           HONO2,            H2O2,             CH4,              CO,            HCHO,           MeOOH,               H,             H2O,              OH,             HO2,              Cl,           Cl2O2,             ClO,            OClO,              Br,             BrO,            BrCl,          BrONO2,             N2O,             HCl,            HOCl,             HBr,            HOBr,          ClONO2,           CFCl3,          CF2Cl2,            MeBr,            HONO,            C2H6,           EtOOH,           MeCHO,             PAN,            C3H8,         n-PrOOH,         i-PrOOH,           EtCHO,           Me2CO,      MeCOCH2OOH,            PPAN,          MeONO2,            C5H8,           ISOOH,            ISON,            MACR,         MACROOH,            MPAN,           HACET,            MGLY,            NALD,           HCOOH,          MeCO3H,          MeCO2H,              H2,            MeOH,             DMS,             SO2,           H2SO4,             MSA,            DMSO,             NH3,             CS2,             COS,             H2S,             SO3,        Monoterp,         Sec_Org,       Nuc_SOL_N,      Nuc_SOL_SU,       Ait_SOL_N,      Ait_SOL_SU,      Ait_SOL_BC,      Ait_SOL_OM,       Acc_SOL_N,      Acc_SOL_SU,      Acc_SOL_BC,      Acc_SOL_OM,      Acc_SOL_SS,       Cor_SOL_N,      Cor_SOL_SU,      Cor_SOL_BC,      Cor_SOL_OM,      Cor_SOL_SS,       Ait_INS_N,      Ait_INS_BC,      Ait_INS_OM,      Nuc_SOL_OM,      PASSIVE O3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;flux_out.csv&amp;lt;/tt&amp;gt; file has a more complicated header as it also gives all the chemical reactants and products, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre;&amp;quot;&amp;gt;&lt;br /&gt;
# Timestep, UKCA reaction fluxes (units = molecules.cm^-3.s^-1)&lt;br /&gt;
# COL    1,               2,               3,               4,               5,               6,               7,               8,               9,              10,              11,              12,              13,              14,              15,              16,              17,              18,              19,              20,              21,              22,              23,              24,              25,              26,              27,              28,              29,              30,              31,              32,              33,              34,              35,              36,              37,              38,              39,              40,              41,              42,              43,              44,              45,              46,              47,              48,              49,              50,              51,              52,              53,              54,              55,              56,              57,              58,              59,              60,              61,              62,              63,              64,              65,              66,              67,              68,              69,              70,              71,              72,              73,              74,              75,              76,              77,              78,              79,              80,              81,              82,              83,              84,              85,              86,              87,              88,              89,              90,              91,              92,              93,              94,              95,              96,              97,              98,              99,             100,             101,             102,             103,             104,             105,             106,             107,             108,             109,             110,             111,             112,             113,             114,             115,             116,             117,             118,             119,             120,             121,             122,             123,             124,             125,             126,             127,             128,             129,             130,             131,             132,             133,             134,             135,             136,             137,             138,             139,             140,             141,             142,             143,             144,             145,             146,             147,             148,             149,             150,             151,             152,             153,             154,             155,             156,             157,             158,             159,             160,             161,             162,             163,             164,             165,             166,             167,             168,             169,             170,             171,             172,             173,             174,             175,             176,             177,             178,             179,             180,             181,             182,             183,             184,             185,             186,             187,             188,             189,             190,             191,             192,             193,             194,             195,             196,             197,             198,             199,             200,             201,             202,             203,             204,             205,             206,             207,             208,             209,             210,             211,             212,             213,             214,             215,             216,             217,             218,             219,             220,             221,             222,             223,             224,             225,             226,             227,             228,             229,             230,             231,             232,             233,             234,             235,             236,             237,             238,             239,             240,             241,             242,             243,             244,             245,             246,             247,             248,             249,             250,             251,             252,             253,             254,             255,             256,             257,             258,             259,             260,             261,             262,             263,             264,             265,             266,             267,             268,             269,             270,             271,             272,             273,             274,             275,             276,             277,             278,             279,             280,             281,             282,             283,             284,             285,             286,             287,             288,             289,             290,             291,             292,             293,             294,             295,             296,             297,             298,             299,             300,             301,             302,             303,             304,             305,             306,             307,             308,             309,             310&lt;br /&gt;
#   PROD 1,           Cl2O2,          HO2NO2,             PAN,            PPAN,            MPAN,            N2O5,           EtOOH,            H2O2,            HCHO,            HCHO,          HO2NO2,           HONO2,           MeCHO,           MeCHO,           MeOOH,            N2O5,             NO2,             NO3,             NO3,              O2,              O3,              O3,             PAN,            HONO,           EtCHO,           Me2CO,         n-PrOOH,         i-PrOOH,      MeCOCH2OOH,            PPAN,          MeONO2,           ISOOH,            ISON,            MACR,            MPAN,         MACROOH,         MACROOH,           HACET,            MGLY,            NALD,          MeCO3H,            BrCl,             BrO,          BrONO2,          BrONO2,              O2,            OClO,              NO,            HOBr,             N2O,             H2O,          ClONO2,          ClONO2,             HCl,            HOCl,           Cl2O2,           CFCl3,          CF2Cl2,            MeBr,             CH4,             CO2,          HO2NO2,             CS2,             COS,           H2SO4,             SO3,              Br,              Br,              Br,              Br,              Br,             BrO,             BrO,             BrO,             BrO,             BrO,             BrO,             BrO,          CF2Cl2,           CFCl3,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,              Cl,             ClO,             ClO,             ClO,             ClO,             ClO,             ClO,             ClO,           EtCO3,           EtCO3,            EtOO,            EtOO,               H,               H,               H,               H,               H,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,             HO2,            MeBr,            MeBr,            MeBr,           MeCO3,           MeCO3,       MeCOCH2OO,       MeCOCH2OO,            MeOO,            MeOO,            MeOO,               N,               N,               N,            N2O5,              NO,              NO,              NO,              NO,              NO,              NO,             NO2,             NO2,             NO3,             NO3,             NO3,             NO3,             NO3,             NO3,             NO3,           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(1D),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),           O(3P),              O3,              O3,              O3,              O3,              O3,              O3,              O3,            OClO,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,              OH,          i-PrOO,          i-PrOO,          n-PrOO,          n-PrOO,             CS2,             CS2,             DMS,             DMS,            DMSO,             H2S,             H2S,             COS,             COS,             SO2,             SO3,        Monoterp,        Monoterp,        Monoterp,            MeOO,            MeOO,            EtOO,            EtOO,          n-PrOO,          n-PrOO,          i-PrOO,          i-PrOO,           MeCO3,           EtCO3,       MeCOCH2OO,       MeCOCH2OO,            ISO2,          MACRO2,          MACRO2,             HO2,           O(3P),           O(3P),           O(3P),           O(1D),             BrO,             ClO,             ClO,               H,             HO2,             HO2,              OH,              OH,              OH,           MeCO3,           EtCO3,          MACRO2,             NO2,              NO,             SO2,             DMS,             DMS,          ClONO2,          ClONO2,            HOCl,            N2O5,            N2O5,             SO2,             SO2,             SO2&lt;br /&gt;
#   PROD 2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,           Cl2O2,            HCHO,             HO2,              O3,            OClO,             BrO,             ClO,             ClO,             ClO,             HO2,              NO,              OH,           O(1D),           O(1D),             CH4,           Cl2O2,          ClONO2,              H2,            H2O2,            HCHO,             HO2,             HO2,            HOCl,           MeOOH,             NO3,              O3,            OClO,             ClO,             ClO,             ClO,             HO2,            MeOO,              NO,             NO3,              NO,             NO3,              NO,             NO3,             HO2,             HO2,             HO2,             NO2,              O3,           EtCO3,           EtCO3,            EtOO,             HO2,            ISO2,          MACRO2,           MeCO3,           MeCO3,           MeCO3,       MeCOCH2OO,            MeOO,            MeOO,              NO,             NO3,              O3,          i-PrOO,          n-PrOO,              Cl,           O(1D),              OH,              NO,             NO3,              NO,             NO3,              NO,              NO,             NO3,              NO,             NO2,              O2,             H2O,            ISO2,            ISO2,          MACRO2,          MACRO2,             NO3,              O3,             NO3,              O3,              Br,            C5H8,           EtCHO,            HCHO,            MGLY,           Me2CO,           MeCHO,             CH4,             CH4,             CH4,             CO2,              H2,             H2O,             HBr,             HBr,             HCl,             HCl,             HCl,              N2,             N2O,             N2O,              O2,              O3,              O3,             BrO,             ClO,          ClONO2,            H2O2,             HBr,             HCl,             HO2,            HOCl,             NO2,             NO3,              O3,            OClO,              OH,            C5H8,            C5H8,            C5H8,            MACR,            MACR,            MACR,            MACR,              NO,            C2H6,            C3H8,            C3H8,            C5H8,             CH4,              CO,             ClO,             ClO,          ClONO2,           EtCHO,           EtOOH,           EtOOH,              H2,            H2O2,           HACET,             HBr,            HCHO,           HCOOH,             HCl,             HO2,          HO2NO2,            HOCl,            HONO,           HONO2,            ISON,           ISOOH,            MACR,            MACR,         MACROOH,            MGLY,            MPAN,           Me2CO,           Me2CO,           MeCHO,          MeCO2H,          MeCO3H,      MeCOCH2OOH,      MeCOCH2OOH,            MeOH,          MeONO2,           MeOOH,           MeOOH,            NALD,             NO3,              O3,            OClO,              OH,             PAN,            PPAN,         i-PrOOH,         i-PrOOH,         n-PrOOH,         n-PrOOH,              NO,             NO3,              NO,             NO3,           O(3P),              OH,              OH,             NO3,              OH,           O(3P),              OH,           O(3P),              OH,              O3,             H2O,              OH,              O3,             NO3,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,             RO2,           EtCO3,              O2,              NO,             NO2,              N2,             NO2,             ClO,             NO2,              O2,             HO2,             NO2,              NO,             NO2,              OH,             NO2,             NO2,             NO2,             NO3,              NO,              OH,              OH,              OH,             H2O,             HCl,             HCl,             H2O,             HCl,            H2O2,              O3,              O3&lt;br /&gt;
#  REACT 1,             ClO,             NO2,           MeCO3,           EtCO3,          MACRO2,             NO2,           MeCHO,              OH,             HO2,              H2,             HO2,              OH,            MeOO,             CH4,             HO2,             NO3,              NO,              NO,             NO2,           O(3P),              O2,              O2,           MeCO3,              OH,            EtOO,           MeCO3,           EtCHO,           Me2CO,           MeCO3,           EtCO3,             HO2,              OH,             NO2,           MeCO3,          MACRO2,              OH,           HACET,           MeCO3,           MeCO3,            HCHO,            MeOO,              Br,              Br,              Br,             BrO,           O(3P),           O(3P),               N,              OH,              N2,              OH,              Cl,             ClO,               H,              OH,              Cl,              Cl,              Cl,              Br,            MeOO,              CO,              OH,             COS,              CO,             SO3,             SO2,            BrCl,             HBr,             HBr,             BrO,             BrO,              Br,              Br,              Br,            BrCl,            HOBr,              Br,              Br,              Cl,              Cl,             HCl,              Cl,              Cl,             HCl,             HCl,             HCl,             ClO,             HCl,              Cl,             HCl,             ClO,             ClO,             ClO,              Cl,              Cl,              Cl,            HOCl,              Cl,              Cl,              Cl,            EtOO,            EtOO,           MeCHO,           MeCHO,              H2,           O(3P),              OH,              OH,              OH,              O2,              O3,           EtOOH,            H2O2,           ISOOH,         MACROOH,          MeCO2H,          MeCO3H,              OH,      MeCOCH2OOH,            HCHO,           MeOOH,              OH,              OH,              OH,         i-PrOOH,         n-PrOOH,              Br,              Br,              Br,            MeOO,            MeOO,           MeCO3,           MeCO3,             HO2,          MeONO2,             HO2,              N2,             N2O,              NO,           HONO2,            ISON,             NO2,            MGLY,             NO2,             NO2,             NO2,              NO,             NO3,             BrO,            ISON,           HONO2,           HONO2,           MeCO3,           HONO2,           HONO2,            HCHO,            HCHO,              OH,           O(3P),              OH,              OH,             HBr,              OH,               H,           O(3P),              OH,           O(3P),              N2,              NO,           O(3P),              O2,              O2,              O2,              Cl,             ClO,              OH,              OH,              OH,              OH,              OH,              NO,              O2,              O2,              O2,              O2,             HO2,            MACR,            MeOO,            MGLY,            MGLY,              OH,              OH,             NO2,             H2O,          i-PrOO,          n-PrOO,            ISO2,             H2O,               H,             HCl,             HO2,            HOCl,             H2O,             H2O,             H2O,             H2O,             H2O,            MGLY,             H2O,             H2O,             CO2,             H2O,             H2O,             H2O,             ClO,             H2O,             H2O,           HACET,            MACR,          MACRO2,          MACRO2,          MACRO2,           MeCO3,           HACET,             H2O,             H2O,             H2O,            MeOO,           MeCO3,             H2O,              OH,             HO2,            HCHO,             H2O,             H2O,            HCHO,             HO2,             HO2,            HOCl,             H2O,            HCHO,           MeCHO,           Me2CO,          i-PrOO,           EtCHO,          n-PrOO,           Me2CO,           Me2CO,           EtCHO,           EtCHO,              CO,             COS,             SO2,             SO2,             SO2,              OH,             SO2,              CO,             CO2,             SO3,           H2SO4,         Sec_Org,         Sec_Org,         Sec_Org,             HO2,            MeOH,             HO2,           MeCHO,             HO2,           EtCHO,             HO2,           Me2CO,          MeCO2H,                ,            HCHO,           HACET,            MACR,           HACET,             HO2,              OH,              O3,             NO2,             NO3,             N2O,          BrONO2,           Cl2O2,          ClONO2,             HO2,            H2O2,          HO2NO2,            HONO,           HONO2,            H2O2,             PAN,            PPAN,            MPAN,            N2O5,             NO2,             SO3,            DMSO,             SO2,            HOCl,              Cl,              Cl,           HONO2,              Cl,                ,                ,&lt;br /&gt;
#  REACT 2,             ClO,             HO2,             NO2,             NO2,             NO2,             NO3,             HO2,              OH,             HO2,              CO,             NO2,             NO2,             HO2,              CO,            HCHO,             NO2,           O(3P),              O2,           O(3P),           O(3P),           O(1D),           O(3P),             NO2,              NO,             HO2,            MeOO,             HO2,             HO2,            HCHO,             NO2,            HCHO,            MACR,            MACR,            HCHO,             NO2,             HO2,              CO,            HCHO,              CO,              CO,              OH,              Cl,           O(3P),             NO3,             NO2,           O(1D),             ClO,           O(3P),              Br,           O(1D),               H,             NO3,             NO2,              Cl,              Cl,              Cl,              Cl,              Cl,               H,               H,           O(3P),             NO3,             SO2,             SO2,              OH,           O(3P),              Cl,              CO,              O2,              O2,             ClO,              Br,              Cl,            OClO,              O2,              O2,             NO2,             HO2,             ClO,              Cl,            MeOO,              Cl,              Cl,               H,             HO2,              CO,              OH,              O2,              Cl,            MeOO,             NO2,              O2,             ClO,              Cl,              Cl,            OClO,              O2,            HCHO,             NO2,              O2,             CO2,             CO2,             HO2,             HO2,              O2,             H2O,              OH,              NO,              O2,                ,                ,                ,                ,                ,                ,              O3,                ,            MeOO,                ,                ,                ,             NO2,             NO2,              O2,                ,                ,             HCl,              OH,             H2O,             CO2,             CO2,            HCHO,            HCHO,            HCHO,                ,            HCHO,           O(3P),           O(3P),           O(3P),           HONO2,                ,            MACR,            HCHO,           MeCO3,             NO2,                ,             NO2,                ,             NO2,                ,           EtCO3,             HO2,              CO,       MeCOCH2OO,           MeCO3,              H2,             HO2,            MeOO,             CO2,               H,              OH,           O(3P),              Br,             ClO,             HCl,              Cl,              N2,              O2,              NO,              O2,           O(3P),              O2,              Br,              O2,             NO3,             HO2,              Br,              Cl,              O2,             ClO,              O2,             NO2,              O2,             ClO,               H,              OH,            HCHO,           HCOOH,           HCOOH,           HCOOH,           MeCO3,           MeCO3,             ClO,            EtOO,             H2O,             H2O,                ,            MeOO,             CO2,              O2,              Cl,             NO3,           EtCO3,            EtOO,           MeCHO,               H,             HO2,             HO2,              Br,             HO2,             H2O,              Cl,                ,             NO2,             H2O,             NO2,             NO3,            NALD,              OH,                ,                ,                ,              CO,             NO2,       MeCOCH2OO,       MeCOCH2OO,           MeCO3,                ,                ,       MeCOCH2OO,            MGLY,            HCHO,             NO2,            HCHO,            MeOO,              CO,             NO2,              O2,              O2,           O(3P),             NO2,             NO2,              OH,             H2O,             H2O,             H2O,             HO2,             HO2,             HO2,             HO2,             SO2,             SO2,                ,                ,             MSA,             SO2,             H2O,             SO2,             SO2,                ,             H2O,                ,                ,                ,            HCHO,            HCHO,           MeCHO,                ,           EtCHO,                ,           Me2CO,                ,            MeOO,            EtOO,           MeCO3,            MGLY,            HCHO,            MGLY,                ,            EtOO,                ,                ,                ,                ,                ,                ,                ,                ,              O2,                ,                ,                ,                ,                ,                ,                ,                ,             NO2,             HO2,             HO2,            MeOO,           HONO2,              Cl,              Cl,           HONO2,             NO2,                ,                ,&lt;br /&gt;
#  REACT 3,                ,                ,                ,                ,                ,                ,              OH,                ,              CO,                ,                ,                ,              CO,                ,              OH,                ,                ,                ,                ,                ,                ,                ,                ,                ,              CO,                ,              OH,              OH,              OH,                ,             NO2,            HCHO,            HCHO,              CO,                ,              OH,            MGLY,             HO2,             HO2,             NO2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,              O2,              Cl,                ,                ,                ,                ,                ,                ,                ,               H,                ,              O2,             HO2,                ,                ,                ,              O2,              O2,                ,                ,                ,                ,                ,                ,             ClO,                ,              Cl,             NO3,                ,                ,             HO2,                ,                ,              OH,                ,                ,                ,                ,              O2,              O2,                ,                ,             HO2,                ,             NO2,             NO2,             NO2,             NO2,             NO2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,             NO2,             NO2,             NO2,             NO2,             NO2,                ,             NO2,                ,                ,                ,                ,                ,            HCHO,             HO2,           HACET,                ,                ,              O2,                ,                ,                ,                ,              CO,           HONO2,                ,                ,                ,             HO2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,           O(3P),                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,          MACRO2,              CO,             HO2,             HO2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,              OH,                ,                ,                ,                ,              CO,               H,                ,                ,              O2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,             H2O,              OH,                ,             NO2,                ,                ,                ,                ,             H2O,             H2O,                ,                ,              OH,                ,             NO2,             NO2,             NO2,             NO2,             SO2,                ,                ,                ,                ,              OH,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,             HO2,            HCHO,                ,             CO2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,           HONO2,             H2O,                ,           HONO2,                ,                ,&lt;br /&gt;
#  REACT 4,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,             HO2,             HO2,             HO2,                ,             HO2,            HCHO,                ,                ,             HO2,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,             HO2,                ,              CO,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,           MeCO3,            H2O2,              CO,              CO,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,           O(3P),                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,              CO,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,                ,&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Jupyter Notebook===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:T01_o3_001.png|Ozone mass-mixing ration&lt;br /&gt;
Image:T01_f200_001.png|Flux through the OH+ClO-&amp;gt;HO2+Cl reaction&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An example Jupyter Notebook which plots both tracers and chemical reaction fluxes can be found in &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks/BoxModel_T01-03.ipynb&lt;br /&gt;
&lt;br /&gt;
and can be viewed online here&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/notebooks/BoxModel_T01-02.ipynb BoxModel_T01-02.ipynb] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You can try changing the chemical species and reaction flux selected.&lt;br /&gt;
&lt;br /&gt;
Connect to the notebook using&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;div style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;&#039;&#039;&#039;http://localhost:4801/?token=UKCATraining&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Copy suites using &amp;lt;tt&amp;gt;rosie copy&amp;lt;/tt&amp;gt;&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run suites using &amp;lt;tt&amp;gt;cylc&amp;lt;/tt&amp;gt; commands&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Plot output using gnuplot or python&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 2|Tutorial 2]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Python_notebooks_with_Cylc&amp;diff=11111</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Python notebooks with Cylc</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Python_notebooks_with_Cylc&amp;diff=11111"/>
		<updated>2026-03-19T14:08:39Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
During these Tutorials several [https://jupyter.org/ Jupyter] notebooks are provided using both [https://ncas-cms.github.io/cf-python/ cf-python] and the [https://scitools-iris.readthedocs.io/en/stable/ Iris] Python libraries. On pre-installed virtual machines these can be found in the &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/notebooks&lt;br /&gt;
&lt;br /&gt;
Due to the SSH connection you will be making to these virtual machines, it is better to run jupyter remotely and then connect to it from the browser on your desktop machine. &lt;br /&gt;
&lt;br /&gt;
Copies of these notebooks have also been made available on [https://github.com/theabro/ukca_scripts/tree/master/Tutorials/UMvn13.9/notebooks GitHub].&lt;br /&gt;
&lt;br /&gt;
These notebooks can be run after starting the &#039;&#039;&#039;Cylc GUI&#039;&#039;&#039; on your VM. This can be done with the command&lt;br /&gt;
&lt;br /&gt;
 cylc-gui &amp;amp;&lt;br /&gt;
&lt;br /&gt;
which will open a new &amp;lt;tt&amp;gt;lxterminal&amp;lt;/tt&amp;gt; and run the Cylc GUI command within it. You will need to connect to Cylc from a web browser on your own laptop.&lt;br /&gt;
&lt;br /&gt;
== How to connect ==&lt;br /&gt;
&lt;br /&gt;
# On your VM run the command &#039;&#039;&#039;&amp;lt;tt&amp;gt;cylc-gui &amp;amp;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; to start the Cylc GUI server&lt;br /&gt;
# On your personal computer, open a connection to your AWS instance using one of the &#039;&#039;&#039;[[#On_your_personal_computer|methods]]&#039;&#039;&#039; below.&lt;br /&gt;
# On your desktop machine, connect to the following web address using a web browser (&#039;&#039;&#039;[https://www.mozilla.org/en-GB/firefox/new/ Firefox]&#039;&#039;&#039; recommended):&lt;br /&gt;
#* &amp;lt;div style=&amp;quot;font-size: 140%;&amp;quot;&amp;gt;&#039;&#039;&#039;http://localhost:4801/?token=UKCATraining&#039;&#039;&#039;&amp;lt;/div&amp;gt;&lt;br /&gt;
#* You may need to enter the password &#039;&#039;&#039;&amp;lt;tt&amp;gt;UKCATraining&amp;lt;/tt&amp;gt;&#039;&#039;&#039; to complete the connection&lt;br /&gt;
# Once you have connected to Cylc, on &#039;&#039;&#039;Jupyter Lab&#039;&#039;&#039; which will open a new Jupyter lab instance in a new tab&lt;br /&gt;
#* When running your notebooks, be sure to use the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca&amp;lt;/tt&amp;gt;&#039;&#039;&#039; kernel, selectable from the top right of each notebook&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that if you try to connect to the link on your personal computer &#039;&#039;&#039;before&#039;&#039;&#039; running &#039;&#039;&#039;&amp;lt;tt&amp;gt;cylc-gui&amp;lt;/tt&amp;gt;&#039;&#039;&#039; on the VM you will have an error in your browser, even if you have connected properly.&lt;br /&gt;
&lt;br /&gt;
[[Image:CylcDashboard.png|400px]]&lt;br /&gt;
&lt;br /&gt;
== Technical notes ==&lt;br /&gt;
&lt;br /&gt;
The above instructions make use of some alias and shortcuts to work. The full details of this are:&lt;br /&gt;
&lt;br /&gt;
=== On your personal computer ===&lt;br /&gt;
&lt;br /&gt;
==== Windows via MobaXTerm ====&lt;br /&gt;
&lt;br /&gt;
On Windows you can use [https://mobaxterm.mobatek.net/ MobaXTerm] to connect to the AWS instance to tunnel through to allow you to run Jupyter remotely. &lt;br /&gt;
&lt;br /&gt;
===== Graphical method =====&lt;br /&gt;
&lt;br /&gt;
You can use the &#039;&#039;&#039;MobaSSHTunnel (port forwarding)&#039;&#039;&#039; tool to set this up. First, go to the &#039;&#039;Tools&#039;&#039; menu and select &#039;&#039;MobaSSHTunnel (port forwarding)&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[Image:Mobaxterm_tools.png|400px]]&lt;br /&gt;
&lt;br /&gt;
then click &#039;&#039;New SSH tunnel&#039;&#039; in the bottom left corner. Then you will need to set the following information, changing the &#039;&#039;&#039;&amp;lt;SSH server&amp;gt;&#039;&#039;&#039; information to the IP address of your training virtual machine&lt;br /&gt;
&lt;br /&gt;
[[Image:Mobaxterm_sshtunnel.png|400px]]&lt;br /&gt;
&lt;br /&gt;
and then select your SSH key by clicking the key symbol, navigating to it using the file browser menu that will open, and selecting it&lt;br /&gt;
&lt;br /&gt;
[[Image:Mobaxterm_sshtunnel_key.png|400px]]&lt;br /&gt;
&lt;br /&gt;
Once you have done this you can start and stop the tunnel by clicking the &#039;&#039;play&#039;&#039; (triangle) and &#039;&#039;stop&#039;&#039; (square) buttons.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;Forwarded port&amp;gt; || 4801&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;SSH server&amp;gt; || &amp;lt;tt&amp;gt;[EC2 VM IP ADDRESS]&amp;lt;/tt&amp;gt; &#039;&#039;(e.g. 13.40.3.206)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;SSH login&amp;gt; || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;SSH port&amp;gt; || 22&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;Remote server&amp;gt; || localhost&lt;br /&gt;
|- &lt;br /&gt;
| &amp;lt;Remote port&amp;gt; || 4801&lt;br /&gt;
|- &lt;br /&gt;
| &#039;&#039;Set SSH key file via key icon on entry in main MobaSSHTunnel panel&#039;&#039; || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;[KEY NAME]&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via file manager)&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Terminal method =====&lt;br /&gt;
&lt;br /&gt;
You could also do this by opening a local session, where you run the following command, e.g.&lt;br /&gt;
&lt;br /&gt;
 ssh -N -f -L localhost:4801:localhost:4801 -i /drives/&#039;&#039;&#039;x&#039;&#039;&#039;/path/to/[KEY NAME] ubuntu@[EC2 VM IP ADDRESS]&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;tt&amp;gt;/drives/&#039;&#039;&#039;x&#039;&#039;&#039;/path/to/[KEY NAME]&amp;lt;/tt&amp;gt; is the full path to the location of your private key file that you use to connect to the AWS instance and &amp;lt;tt&amp;gt;&#039;&#039;&#039;x&#039;&#039;&#039;&amp;lt;/tt&amp;gt; is the drive letter, e.g. &amp;lt;tt&amp;gt;c&amp;lt;/tt&amp;gt; for your &amp;lt;tt&amp;gt;C:&amp;lt;/tt&amp;gt; drive. &lt;br /&gt;
&lt;br /&gt;
Once this connection has been established you will be able to connect using the link above. To close this connection, you will need to shut down MobaXTerm.&lt;br /&gt;
&lt;br /&gt;
==== SSH via a terminal (macOS or GNU/Linux) ====&lt;br /&gt;
&lt;br /&gt;
You will be able to connect using the following SSH command:&lt;br /&gt;
&lt;br /&gt;
 ssh -N -f -L localhost:4801:localhost:4801 -i /path/to/[KEY NAME] ubuntu@[EC2 VM IP ADDRESS]&lt;br /&gt;
&lt;br /&gt;
This connection can be killed using&lt;br /&gt;
&lt;br /&gt;
 lsof -ti:4801 | xargs kill -9 &lt;br /&gt;
&lt;br /&gt;
You could also edit your &amp;lt;tt&amp;gt;~/.ssh/config&amp;lt;/tt&amp;gt; file to include the following&lt;br /&gt;
&lt;br /&gt;
 Host ukca&lt;br /&gt;
         Hostname [EC2 VM IP ADDRESS]&lt;br /&gt;
         User ubuntu&lt;br /&gt;
         IdentityFile /path/to/[KEY NAME]&lt;br /&gt;
         HostKeyAlgorithms ssh-rsa&lt;br /&gt;
 &lt;br /&gt;
 Host cylc-gui&lt;br /&gt;
         Hostname [EC2 VM IP ADDRESS]&lt;br /&gt;
         User ubuntu&lt;br /&gt;
         ControlMaster auto&lt;br /&gt;
         ControlPath ~/.ssh/control_sockets%r@%h:%p&lt;br /&gt;
         IdentityFile /path/to/[KEY NAME]&lt;br /&gt;
         HostKeyAlgorithms ssh-rsa&lt;br /&gt;
&lt;br /&gt;
and then connect for normal work usage by&lt;br /&gt;
&lt;br /&gt;
 ssh -X ukca&lt;br /&gt;
&lt;br /&gt;
and connect to use Jupyer by&lt;br /&gt;
&lt;br /&gt;
 ssh -N -f -L localhost:4801:localhost:4801 cylc-gui&lt;br /&gt;
&lt;br /&gt;
You could also make an alias in your &amp;lt;tt&amp;gt;~/.zshrc&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt;, e.g.&lt;br /&gt;
&lt;br /&gt;
 alias cylc-gui=&#039;ssh -N -f -L localhost:4801:localhost:4801 cylc-gui&#039;&lt;br /&gt;
&lt;br /&gt;
and then use the command &amp;lt;tt&amp;gt;cylc-gui&amp;lt;/tt&amp;gt; from within your terminal. &lt;br /&gt;
&lt;br /&gt;
Once the connection has been established you&#039;ll be able to connect using the link above.&lt;br /&gt;
&lt;br /&gt;
To close the connection, type&lt;br /&gt;
&lt;br /&gt;
 ssh -O exit -N -f -L localhost:4801:localhost:4801 cylc-gui&lt;br /&gt;
&lt;br /&gt;
=== On the virtual machine ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;You will not need to make any changes on the virtual machine - this section is for information only.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The following alias is set in the &amp;lt;tt&amp;gt;~/.bashrc&amp;lt;/tt&amp;gt; file on the VM:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;alias cylc-gui=&#039;lxterminal -l -e &#039;\&#039;&#039;cd &amp;amp;&amp;amp; cylc gui --ServerApp.open_browser=False --ServerApp.port=4801 --ServerApp.ip=0.0.0.0 --IdentityProvider.token=UKCATraining&#039;\&#039;&#039;&#039;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This means that when you run the command &amp;lt;tt&amp;gt;cylc-gui&amp;lt;/tt&amp;gt; you then launch a new terminal running the Cylc GUI. From within this GUI you can then launch Jupyter lab in a new browser tab.&lt;br /&gt;
&lt;br /&gt;
If you have having issues connecting to the Jupyter server over SSH in your local browser and you are connecting via [UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS X2Go] then it is possible to open a local Cylc GUI instance using the Firefox browser installed on the VM. However, it will not be very responsive and might be quite laggy resulting in a poor user experience. It is not recommended to try to open Jupyer in the VM&#039;s browser over an SSH connection, as the performance will be even worse.&lt;br /&gt;
&lt;br /&gt;
The following has also been set, although it is usually only needed for Vagrant boxes that use VirtualBox&lt;br /&gt;
&lt;br /&gt;
 c.NotebookApp.ip = &#039;0.0.0.0&#039;&lt;br /&gt;
&lt;br /&gt;
=== Python environment ===&lt;br /&gt;
&lt;br /&gt;
A new kernel for use by Jupyter lab has been installed on the VM to use. This has been configured using &amp;lt;tt&amp;gt;ipykernal&amp;lt;/tt&amp;gt; as described [https://help.jasmin.ac.uk/docs/interactive-computing/creating-a-virtual-environment-in-the-notebooks-service/#can-i-use-conda-instead-of-a-virtual-environment here] and using this [https://github.com/theabro/ukca_scripts/blob/master/Tutorials/UMvn13.9/ukca.list environment]. &lt;br /&gt;
&lt;br /&gt;
To be able to use this environment within a terminal, you will first need to run the following command to get the &amp;lt;tt&amp;gt;conda&amp;lt;/tt&amp;gt; command&lt;br /&gt;
&lt;br /&gt;
 . &amp;quot;/opt/deployment/miniforge/etc/profile.d/conda.sh&amp;quot;&lt;br /&gt;
&lt;br /&gt;
and then activate the environment&lt;br /&gt;
&lt;br /&gt;
 conda activate ukca&lt;br /&gt;
&lt;br /&gt;
However, be careful not to run any Rose or Cylc commands when using this environment, as the python install here may clash. To deactivate this environment using&lt;br /&gt;
&lt;br /&gt;
 conda deactivate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11100</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Configuring X2Go for AWS</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11100"/>
		<updated>2026-03-10T14:02:02Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Connecting via Amazon DCV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use the UKCA Tutorials on AWS you first need to download and install X2Go client. This is available for Windows, macOS, and GNU/Linux.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://wiki.x2go.org/doku.php/download:start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be provided with connection details to your personal VM and the required SSH key file that you will need. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the username on these VMs will be &#039;&#039;&#039;ubuntu&#039;&#039;&#039; and you will be provided a unique IP address to use to connect to the VM (labelled as &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; below). &lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, you can also connect via a &#039;&#039;&#039;[[#Connecting via a Terminal (GNU/Linux &amp;amp; macOS)|Terminal]]&#039;&#039;&#039; on GNU/Linux &amp;amp; macOS, and via &#039;&#039;&#039;[[#Connecting via a MobaXTerm (Windows)|MobaXTerm]]&#039;&#039;&#039; on Windows.&lt;br /&gt;
&lt;br /&gt;
== SSH key file ==&lt;br /&gt;
&lt;br /&gt;
Before you set up X2Go, you need to be sure that your SSH-key file is in the correct format. There will be a single text file, which look like:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: This is your &#039;&#039;&#039;private key&#039;&#039;&#039; and you should not share this file with anyone. &#039;&#039;&#039;It is this file that you need to use to connect using X2Go, MobaXTerm, or SSH.&#039;&#039;&#039; It will have a large block of random text in between the following lines:&lt;br /&gt;
 -----BEGIN OPENSSH PRIVATE KEY-----&lt;br /&gt;
 &lt;br /&gt;
 -----END OPENSSH PRIVATE KEY-----&lt;br /&gt;
&lt;br /&gt;
== Setting up X2Go ==&lt;br /&gt;
&lt;br /&gt;
When first starting X2Go, you should be presented with a new session dialog box to complete. If this doesn&#039;t appear, press the &amp;quot;New Session&amp;quot; button (which looks like a piece of paper with a star on it). Once this is open, fill in the details below.&lt;br /&gt;
&lt;br /&gt;
When setting up an X2Go session, the exact value of “session name” is not important. The key details are the settings under “server” and “proxy server”. You will also need to set the “session type” to LXDE. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| Session name || &#039;&#039;e.g.&#039;&#039; ubuntu@ukca_vm_trXX&lt;br /&gt;
|- &lt;br /&gt;
| Host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Login || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| Use RSA/DSA key for ssh connection || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Session type || &#039;&#039;Select&#039;&#039; LXDE &#039;&#039;from drop-down menu&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On macOS you may need to maximise the Session Preferences window (using the green &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; marker in the top left corner) to allow you to set the session type and press the &#039;&#039;&#039;OK&#039;&#039;&#039; button, as this panel is quite long and these buttons will then become lost below the screen. &lt;br /&gt;
&lt;br /&gt;
When you have completed everything, press &#039;&#039;&#039;OK&#039;&#039;&#039;. The first time you connect you will be asked if you which to accept the host key. Click &#039;&#039;&#039;yes&#039;&#039;&#039;. Once you have set the preferences you should get a grey box representing your session, e.g.&lt;br /&gt;
&lt;br /&gt;
[[Image:X2Go_session_box_AWS.png|200px]]&lt;br /&gt;
&lt;br /&gt;
You should &#039;&#039;&#039;double-click at the top of the box&#039;&#039;&#039; (i.e. over the session name or on the icon) &#039;&#039;&#039;to start the connection&#039;&#039;&#039;. If you have closed a session down but left X2Go running you may instead see a grey box with the login field as &amp;lt;tt&amp;gt;ubuntu&amp;lt;/tt&amp;gt; and the password field blank - to connect in this case just press &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When you connect to your VM using X2Go you will be presented with an open Linux terminal which is asking for your MOSRS password. Once you have entered it, the first time you login you will also be asked for your MOSRS username. Subsequently, you will just be asked for your MOSRS password.&lt;br /&gt;
&lt;br /&gt;
When you have finished for the day you can close the connection by closing the X2Go window using the &#039;&#039;&#039;X&#039;&#039;&#039; in the corner. When you reconnect you will find the windows exactly as you left them. You can also resize the X2Go window using the maximize button or by dragging the corners with your mouse. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=600px&amp;gt;&lt;br /&gt;
Image:X2Go_settings_AWS.png|Example X2Go settings panel&lt;br /&gt;
Image:X2Go_terminal_login.png|X2Go connection to a VM, showing the terminal connecting to MOSRS for the first time.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
You may find that you cannot copy and paste between your personal computer and the VM.&lt;br /&gt;
&lt;br /&gt;
* On Windows you should follow [https://stackoverflow.com/questions/66872307/x2go-clipboard-copy-paste-stops-working-from-windows-10-to-linux-centos-and-v these instructions]:&lt;br /&gt;
** Open X2GO Client application&lt;br /&gt;
** Click &amp;quot;Options&amp;quot; menu --&amp;gt; Settings&lt;br /&gt;
** Select &amp;quot;X. Org Server Settings&amp;quot; tab&lt;br /&gt;
** Select &amp;quot;do not use primary clipboard&amp;quot; (make sure its checked)&lt;br /&gt;
** Click OK&lt;br /&gt;
** Restart your X2Go client&lt;br /&gt;
* On macOS you will need to follow [https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x these instructions]:&lt;br /&gt;
** In a Terminal, enter the following command&lt;br /&gt;
 echo &amp;quot;*VT100.translations: #override Meta &amp;lt;KeyPress&amp;gt; V: insert-selection(PRIMARY, CUT_BUFFER0) \n&amp;quot; &amp;gt; ~/.Xdefaults&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine Environment ==&lt;br /&gt;
&lt;br /&gt;
You will be using X2Go to connect to a Virtual Machine (VM) hosted on the AWS cloud, which has been specially set-up to be able to run the UKCA Tutorials. All the relevant files and settings have already been installed, all you need to do is to enter your MOSRS credentials when you first connect, and then cache your [[#MOSRS_Password|MOSRS password]] once a day or in a new terminal as required.&lt;br /&gt;
&lt;br /&gt;
The VM you are connecting to uses the Ubuntu 18.04 operating system, with the LXDE desktop. While you have access to the full desktop, you should be comfortable using a GNU/Linux operating system, including using and navigating around using a &#039;&#039;&#039;terminal&#039;&#039;&#039;. You should also be familiar with programming, ideally &#039;&#039;&#039;Fortran&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== MOSRS Password ==&lt;br /&gt;
&lt;br /&gt;
You will need to enter your MOSRS password each day, and for each terminal that you open on the VM when using X2Go that you wish to commit changes or run suites from.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you leave your terminal open overnight, in the morning you should use the command&#039;&#039;&#039;&lt;br /&gt;
 mosrs-cache-password&lt;br /&gt;
&#039;&#039;&#039;to cache your password for the day.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
If you do not do this each morning you may get some strange errors when committing changes or when running suites.&lt;br /&gt;
&lt;br /&gt;
== Connecting via a Terminal (GNU/Linux &amp;amp; macOS) ==&lt;br /&gt;
&lt;br /&gt;
It is also possible to connect via a terminal with an X11 connection ([https://www.xquartz.org/ XQuartz] is also required when using macOS, or MobaXTerm for Windows). The command to use in this case would be &lt;br /&gt;
 ssh -X -i /path/to/ukca_key_trXX.pem ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; is the full path to your SSH private key file. &lt;br /&gt;
&lt;br /&gt;
It is also possible to define a &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file entry with the necessary information if desired:&lt;br /&gt;
 Host ukca_vm_trXX&lt;br /&gt;
        Hostname &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
        User ubuntu&lt;br /&gt;
        IdentityFile /path/to/ukca_key_trXX.pem&lt;br /&gt;
&lt;br /&gt;
so that you could then just connect using the command&lt;br /&gt;
 ssh -X ukca_vm_trXX&lt;br /&gt;
&lt;br /&gt;
When you connect via a terminal you won&#039;t have a full desktop environment - you will need to navigate around the VM from the command line in the usual way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you have any issues authenticating to MOSRS or using Rose you could also try using &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;-X&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting via a MobaXTerm (Windows) ==&lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, it is also possible to connect from Windows via a Terminal client such as MobaXTerm&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://mobaxterm.mobatek.net/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If these instructions do not work, you can also connect as via a [[#Connecting_via_a_Terminal_(GNU/Linux_&amp;amp;_macOS)|Terminal]] by opening a local session and then specifying the location of your key file, e.g. &amp;lt;tt&amp;gt;C:\\Users/[YOUR USERNAME]/Downloads/ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To get started, you should click on &#039;&#039;&#039;Session&#039;&#039;&#039; and then &#039;&#039;&#039;SSH&#039;&#039;&#039; to create a new SSH session with the following equivalent settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;| Basic SSH settings (top row)&lt;br /&gt;
|- &lt;br /&gt;
| Remote host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Specify username || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || ubuntu&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab&lt;br /&gt;
|- &lt;br /&gt;
| X11 forwarding || &#039;&#039;Ensure that the checkbox is ticked (default)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Use private key || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab - optional choices&lt;br /&gt;
|- &lt;br /&gt;
| Remote environment (drop-down menu) || &#039;&#039;Interactive shell&#039;&#039; to connect via the MobaXTerm terminal&lt;br /&gt;
|-&lt;br /&gt;
|  || &#039;&#039;LXDE&#039;&#039; to connect with a grahpical environment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have connected you will need to navigate around and open files using terminal commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:MobaXTerm_advanced_AWS.png|Example MobaXTerm advanced SSH settings panel.&lt;br /&gt;
Image:MobaXTerm_LXDE.png|Settings for connecting to the LXDE desktop environment.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connecting via Amazon DCV ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=KrivpuHrBiY&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html Amazon DCV] is a desktop connection method that is ideal for Amazon EC2 instances that we use in these tutorials. You can either connect via the [https://docs.aws.amazon.com/dcv/latest/userguide/client.html Amazon DCV client] or via an up-to-date web browser. &#039;&#039;&#039;You will not need an SSH key to connect, and instead you will have been provided with a password.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If connecting via a web browser, you will need to accept the security risks to be able to connect to the machine (Figure 1 below).&lt;br /&gt;
&lt;br /&gt;
With the DCV client, standard copy/paste works using the standard system commands, although within the Linux desktop you will need to use &#039;&#039;&#039;Ctrl-Shift-c&#039;&#039;&#039; for copy and &#039;&#039;&#039;Ctrl-Shift-v&#039;&#039;&#039; for paste within a terminal and &#039;&#039;&#039;Ctrl-c&#039;&#039;&#039; and &#039;&#039;&#039;Ctrl-v&#039;&#039;&#039; elsewhere. When connecting through a web browser you will need to use the &#039;&#039;&#039;clipboard&#039;&#039;&#039; at the top-left of the page to pass text into the desktop, before pasting it (Figures 2 and 3 below).&lt;br /&gt;
&lt;br /&gt;
In the web browser you can disconnect using the top right-hand menu (Figure 4 below), or from the &#039;&#039;Connection&#039;&#039; menu from the client. When reconnecting, you will then be back with all the windows laid out as before. &lt;br /&gt;
&lt;br /&gt;
You may need to run the &#039;&#039;&#039;&amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command to ensure that your MOSRS password has been cached and that you can access code and suites from the repository.&lt;br /&gt;
&lt;br /&gt;
You may also need to periodically shut down the Cylc GUI and Jupyter Lab service to clear-out memory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:DCV_connect_warning.png|Figure 1: Security warning seen when connecting via web browser for the first time.&lt;br /&gt;
Image:DCV_Ubuntu_Login_Clipboard.png|Figure 2: Ubuntu desktop login screen, seen when you have connected. The left-hand clipboard menu is highlighted.&lt;br /&gt;
Image:DCV_clipboard_sync.png|Figure 3: Showing a successful clipboard sync.&lt;br /&gt;
Image:DCV_disconnect.png|Figure 4: Showing the Ubuntu desktop with the disconnect option highlighted from the right-hand menu.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Amazon DCV was configured on the UKCA training VMs by following the instructions [https://dev.to/aws/configuring-dcv-to-access-ubuntu-desktop-on-ec2-with-a-browser-15i5 here]&lt;br /&gt;
&lt;br /&gt;
== Copying data back ==&lt;br /&gt;
&lt;br /&gt;
If you are using a GNU/Linux or macOS system and you have set up the &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file as [[#Connecting_via_a_Terminal_.28GNU.2FLinux_.26_macOS.29|above]], you can pull data from the VMs using the following recommended &#039;&#039;&#039;&amp;lt;tt&amp;gt;rsync&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;foo.py&amp;lt;/tt&amp;gt; is a file in your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory to your current working directory on your local system. To copy from other directories you could use the command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:/home/ubuntu/cylc-run/SUITE-ID/work/1/atmos/atmosa.pa19810901_00 .&lt;br /&gt;
&lt;br /&gt;
The following longer command also works:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; above means the full path to your SSH private key file, e.g. &amp;lt;tt&amp;gt;/Users/luke/ukca_key_tr01.pem&amp;lt;/tt&amp;gt; etc. &lt;br /&gt;
&lt;br /&gt;
You can also copy directories in a similar way, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:/home/ubuntu/roses .&lt;br /&gt;
&lt;br /&gt;
You could also use Firefox to log-in to your e-mail and e-mail the files to yourself, or log-in to a Cloud service, such as Google Drive and Dropbox, and upload the files there directly.&lt;br /&gt;
&lt;br /&gt;
Make sure you &#039;&#039;&#039;&amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt;&#039;&#039;&#039; your suite(s) and branch(es) - this will allow you to use these later on a personal VM, although note that the paths within the suites will need to be changed later, as the username will be &amp;lt;tt&amp;gt;vagrant&amp;lt;/tt&amp;gt; when using the [https://github.com/metomi/metomi-vms Met Office Virtual Machine].&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11099</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Configuring X2Go for AWS</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11099"/>
		<updated>2026-03-10T13:55:53Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Connecting via Amazon DCV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use the UKCA Tutorials on AWS you first need to download and install X2Go client. This is available for Windows, macOS, and GNU/Linux.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://wiki.x2go.org/doku.php/download:start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be provided with connection details to your personal VM and the required SSH key file that you will need. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the username on these VMs will be &#039;&#039;&#039;ubuntu&#039;&#039;&#039; and you will be provided a unique IP address to use to connect to the VM (labelled as &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; below). &lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, you can also connect via a &#039;&#039;&#039;[[#Connecting via a Terminal (GNU/Linux &amp;amp; macOS)|Terminal]]&#039;&#039;&#039; on GNU/Linux &amp;amp; macOS, and via &#039;&#039;&#039;[[#Connecting via a MobaXTerm (Windows)|MobaXTerm]]&#039;&#039;&#039; on Windows.&lt;br /&gt;
&lt;br /&gt;
== SSH key file ==&lt;br /&gt;
&lt;br /&gt;
Before you set up X2Go, you need to be sure that your SSH-key file is in the correct format. There will be a single text file, which look like:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: This is your &#039;&#039;&#039;private key&#039;&#039;&#039; and you should not share this file with anyone. &#039;&#039;&#039;It is this file that you need to use to connect using X2Go, MobaXTerm, or SSH.&#039;&#039;&#039; It will have a large block of random text in between the following lines:&lt;br /&gt;
 -----BEGIN OPENSSH PRIVATE KEY-----&lt;br /&gt;
 &lt;br /&gt;
 -----END OPENSSH PRIVATE KEY-----&lt;br /&gt;
&lt;br /&gt;
== Setting up X2Go ==&lt;br /&gt;
&lt;br /&gt;
When first starting X2Go, you should be presented with a new session dialog box to complete. If this doesn&#039;t appear, press the &amp;quot;New Session&amp;quot; button (which looks like a piece of paper with a star on it). Once this is open, fill in the details below.&lt;br /&gt;
&lt;br /&gt;
When setting up an X2Go session, the exact value of “session name” is not important. The key details are the settings under “server” and “proxy server”. You will also need to set the “session type” to LXDE. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| Session name || &#039;&#039;e.g.&#039;&#039; ubuntu@ukca_vm_trXX&lt;br /&gt;
|- &lt;br /&gt;
| Host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Login || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| Use RSA/DSA key for ssh connection || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Session type || &#039;&#039;Select&#039;&#039; LXDE &#039;&#039;from drop-down menu&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On macOS you may need to maximise the Session Preferences window (using the green &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; marker in the top left corner) to allow you to set the session type and press the &#039;&#039;&#039;OK&#039;&#039;&#039; button, as this panel is quite long and these buttons will then become lost below the screen. &lt;br /&gt;
&lt;br /&gt;
When you have completed everything, press &#039;&#039;&#039;OK&#039;&#039;&#039;. The first time you connect you will be asked if you which to accept the host key. Click &#039;&#039;&#039;yes&#039;&#039;&#039;. Once you have set the preferences you should get a grey box representing your session, e.g.&lt;br /&gt;
&lt;br /&gt;
[[Image:X2Go_session_box_AWS.png|200px]]&lt;br /&gt;
&lt;br /&gt;
You should &#039;&#039;&#039;double-click at the top of the box&#039;&#039;&#039; (i.e. over the session name or on the icon) &#039;&#039;&#039;to start the connection&#039;&#039;&#039;. If you have closed a session down but left X2Go running you may instead see a grey box with the login field as &amp;lt;tt&amp;gt;ubuntu&amp;lt;/tt&amp;gt; and the password field blank - to connect in this case just press &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When you connect to your VM using X2Go you will be presented with an open Linux terminal which is asking for your MOSRS password. Once you have entered it, the first time you login you will also be asked for your MOSRS username. Subsequently, you will just be asked for your MOSRS password.&lt;br /&gt;
&lt;br /&gt;
When you have finished for the day you can close the connection by closing the X2Go window using the &#039;&#039;&#039;X&#039;&#039;&#039; in the corner. When you reconnect you will find the windows exactly as you left them. You can also resize the X2Go window using the maximize button or by dragging the corners with your mouse. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=600px&amp;gt;&lt;br /&gt;
Image:X2Go_settings_AWS.png|Example X2Go settings panel&lt;br /&gt;
Image:X2Go_terminal_login.png|X2Go connection to a VM, showing the terminal connecting to MOSRS for the first time.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
You may find that you cannot copy and paste between your personal computer and the VM.&lt;br /&gt;
&lt;br /&gt;
* On Windows you should follow [https://stackoverflow.com/questions/66872307/x2go-clipboard-copy-paste-stops-working-from-windows-10-to-linux-centos-and-v these instructions]:&lt;br /&gt;
** Open X2GO Client application&lt;br /&gt;
** Click &amp;quot;Options&amp;quot; menu --&amp;gt; Settings&lt;br /&gt;
** Select &amp;quot;X. Org Server Settings&amp;quot; tab&lt;br /&gt;
** Select &amp;quot;do not use primary clipboard&amp;quot; (make sure its checked)&lt;br /&gt;
** Click OK&lt;br /&gt;
** Restart your X2Go client&lt;br /&gt;
* On macOS you will need to follow [https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x these instructions]:&lt;br /&gt;
** In a Terminal, enter the following command&lt;br /&gt;
 echo &amp;quot;*VT100.translations: #override Meta &amp;lt;KeyPress&amp;gt; V: insert-selection(PRIMARY, CUT_BUFFER0) \n&amp;quot; &amp;gt; ~/.Xdefaults&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine Environment ==&lt;br /&gt;
&lt;br /&gt;
You will be using X2Go to connect to a Virtual Machine (VM) hosted on the AWS cloud, which has been specially set-up to be able to run the UKCA Tutorials. All the relevant files and settings have already been installed, all you need to do is to enter your MOSRS credentials when you first connect, and then cache your [[#MOSRS_Password|MOSRS password]] once a day or in a new terminal as required.&lt;br /&gt;
&lt;br /&gt;
The VM you are connecting to uses the Ubuntu 18.04 operating system, with the LXDE desktop. While you have access to the full desktop, you should be comfortable using a GNU/Linux operating system, including using and navigating around using a &#039;&#039;&#039;terminal&#039;&#039;&#039;. You should also be familiar with programming, ideally &#039;&#039;&#039;Fortran&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== MOSRS Password ==&lt;br /&gt;
&lt;br /&gt;
You will need to enter your MOSRS password each day, and for each terminal that you open on the VM when using X2Go that you wish to commit changes or run suites from.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you leave your terminal open overnight, in the morning you should use the command&#039;&#039;&#039;&lt;br /&gt;
 mosrs-cache-password&lt;br /&gt;
&#039;&#039;&#039;to cache your password for the day.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
If you do not do this each morning you may get some strange errors when committing changes or when running suites.&lt;br /&gt;
&lt;br /&gt;
== Connecting via a Terminal (GNU/Linux &amp;amp; macOS) ==&lt;br /&gt;
&lt;br /&gt;
It is also possible to connect via a terminal with an X11 connection ([https://www.xquartz.org/ XQuartz] is also required when using macOS, or MobaXTerm for Windows). The command to use in this case would be &lt;br /&gt;
 ssh -X -i /path/to/ukca_key_trXX.pem ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; is the full path to your SSH private key file. &lt;br /&gt;
&lt;br /&gt;
It is also possible to define a &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file entry with the necessary information if desired:&lt;br /&gt;
 Host ukca_vm_trXX&lt;br /&gt;
        Hostname &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
        User ubuntu&lt;br /&gt;
        IdentityFile /path/to/ukca_key_trXX.pem&lt;br /&gt;
&lt;br /&gt;
so that you could then just connect using the command&lt;br /&gt;
 ssh -X ukca_vm_trXX&lt;br /&gt;
&lt;br /&gt;
When you connect via a terminal you won&#039;t have a full desktop environment - you will need to navigate around the VM from the command line in the usual way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you have any issues authenticating to MOSRS or using Rose you could also try using &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;-X&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting via a MobaXTerm (Windows) ==&lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, it is also possible to connect from Windows via a Terminal client such as MobaXTerm&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://mobaxterm.mobatek.net/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If these instructions do not work, you can also connect as via a [[#Connecting_via_a_Terminal_(GNU/Linux_&amp;amp;_macOS)|Terminal]] by opening a local session and then specifying the location of your key file, e.g. &amp;lt;tt&amp;gt;C:\\Users/[YOUR USERNAME]/Downloads/ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To get started, you should click on &#039;&#039;&#039;Session&#039;&#039;&#039; and then &#039;&#039;&#039;SSH&#039;&#039;&#039; to create a new SSH session with the following equivalent settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;| Basic SSH settings (top row)&lt;br /&gt;
|- &lt;br /&gt;
| Remote host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Specify username || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || ubuntu&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab&lt;br /&gt;
|- &lt;br /&gt;
| X11 forwarding || &#039;&#039;Ensure that the checkbox is ticked (default)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Use private key || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab - optional choices&lt;br /&gt;
|- &lt;br /&gt;
| Remote environment (drop-down menu) || &#039;&#039;Interactive shell&#039;&#039; to connect via the MobaXTerm terminal&lt;br /&gt;
|-&lt;br /&gt;
|  || &#039;&#039;LXDE&#039;&#039; to connect with a grahpical environment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have connected you will need to navigate around and open files using terminal commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:MobaXTerm_advanced_AWS.png|Example MobaXTerm advanced SSH settings panel.&lt;br /&gt;
Image:MobaXTerm_LXDE.png|Settings for connecting to the LXDE desktop environment.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connecting via Amazon DCV ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=KrivpuHrBiY&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html Amazon DCV] is a desktop connection method that is ideal for Amazon EC2 instances that we use in these tutorials. You can either connect via the [https://docs.aws.amazon.com/dcv/latest/userguide/client.html Amazon DCV client] or via an up-to-date web browser. &#039;&#039;&#039;You will not need an SSH key to connect, and instead you will have been provided with a password.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If connecting via a web browser, you will need to accept the security risks to be able to connect to the machine (Figure 1 below).&lt;br /&gt;
&lt;br /&gt;
With the DCV client, standard copy/paste works using the standard system commands, although within the Linux desktop you will need to use &#039;&#039;&#039;Ctrl-Shift-c&#039;&#039;&#039; for copy and &#039;&#039;&#039;Ctrl-Shift-v&#039;&#039;&#039; for paste within a terminal and &#039;&#039;&#039;Ctrl-c&#039;&#039;&#039; and &#039;&#039;&#039;Ctrl-v&#039;&#039;&#039; elsewhere. When connecting through a web browser you will need to use the &#039;&#039;&#039;clipboard&#039;&#039;&#039; at the top-left of the page to pass text into the desktop, before pasting it (Figures 2 and 3 below).&lt;br /&gt;
&lt;br /&gt;
In the web browser you can disconnect using the top right-hand menu (Figure 4 below), or from the &#039;&#039;Connection&#039;&#039; menu from the client. When reconnecting, you will then be back with all the windows laid out as before. &lt;br /&gt;
&lt;br /&gt;
You may need to run the &#039;&#039;&#039;&amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command to ensure that your MOSRS password has been cached and that you can access code and suites from the repository.&lt;br /&gt;
&lt;br /&gt;
You may also need to periodically shut down the Cylc GUI and Jupyter Lab service to clear-out memory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=200px heights=150px&amp;gt;&lt;br /&gt;
Image:DCV_connect_warning.png|Figure 1: Security warning seen when connecting via web browser for the first time.&lt;br /&gt;
Image:DCV_Ubuntu_Login_Clipboard.png|Figure 2: Ubuntu desktop login screen, seen when you have connected. The left-hand clipboard menu is highlighted.&lt;br /&gt;
Image:DCV_clipboard_sync.png|Figure 3: Showing a successful clipboard sync.&lt;br /&gt;
Image:DCV_disconnect.png|Figure 4: Showing the Ubuntu desktop with the disconnect option highlighted from the right-hand menu.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Copying data back ==&lt;br /&gt;
&lt;br /&gt;
If you are using a GNU/Linux or macOS system and you have set up the &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file as [[#Connecting_via_a_Terminal_.28GNU.2FLinux_.26_macOS.29|above]], you can pull data from the VMs using the following recommended &#039;&#039;&#039;&amp;lt;tt&amp;gt;rsync&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;foo.py&amp;lt;/tt&amp;gt; is a file in your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory to your current working directory on your local system. To copy from other directories you could use the command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:/home/ubuntu/cylc-run/SUITE-ID/work/1/atmos/atmosa.pa19810901_00 .&lt;br /&gt;
&lt;br /&gt;
The following longer command also works:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; above means the full path to your SSH private key file, e.g. &amp;lt;tt&amp;gt;/Users/luke/ukca_key_tr01.pem&amp;lt;/tt&amp;gt; etc. &lt;br /&gt;
&lt;br /&gt;
You can also copy directories in a similar way, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:/home/ubuntu/roses .&lt;br /&gt;
&lt;br /&gt;
You could also use Firefox to log-in to your e-mail and e-mail the files to yourself, or log-in to a Cloud service, such as Google Drive and Dropbox, and upload the files there directly.&lt;br /&gt;
&lt;br /&gt;
Make sure you &#039;&#039;&#039;&amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt;&#039;&#039;&#039; your suite(s) and branch(es) - this will allow you to use these later on a personal VM, although note that the paths within the suites will need to be changed later, as the username will be &amp;lt;tt&amp;gt;vagrant&amp;lt;/tt&amp;gt; when using the [https://github.com/metomi/metomi-vms Met Office Virtual Machine].&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11098</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Configuring X2Go for AWS</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11098"/>
		<updated>2026-03-10T13:53:36Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Connecting via Amazon DCV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use the UKCA Tutorials on AWS you first need to download and install X2Go client. This is available for Windows, macOS, and GNU/Linux.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://wiki.x2go.org/doku.php/download:start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be provided with connection details to your personal VM and the required SSH key file that you will need. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the username on these VMs will be &#039;&#039;&#039;ubuntu&#039;&#039;&#039; and you will be provided a unique IP address to use to connect to the VM (labelled as &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; below). &lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, you can also connect via a &#039;&#039;&#039;[[#Connecting via a Terminal (GNU/Linux &amp;amp; macOS)|Terminal]]&#039;&#039;&#039; on GNU/Linux &amp;amp; macOS, and via &#039;&#039;&#039;[[#Connecting via a MobaXTerm (Windows)|MobaXTerm]]&#039;&#039;&#039; on Windows.&lt;br /&gt;
&lt;br /&gt;
== SSH key file ==&lt;br /&gt;
&lt;br /&gt;
Before you set up X2Go, you need to be sure that your SSH-key file is in the correct format. There will be a single text file, which look like:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: This is your &#039;&#039;&#039;private key&#039;&#039;&#039; and you should not share this file with anyone. &#039;&#039;&#039;It is this file that you need to use to connect using X2Go, MobaXTerm, or SSH.&#039;&#039;&#039; It will have a large block of random text in between the following lines:&lt;br /&gt;
 -----BEGIN OPENSSH PRIVATE KEY-----&lt;br /&gt;
 &lt;br /&gt;
 -----END OPENSSH PRIVATE KEY-----&lt;br /&gt;
&lt;br /&gt;
== Setting up X2Go ==&lt;br /&gt;
&lt;br /&gt;
When first starting X2Go, you should be presented with a new session dialog box to complete. If this doesn&#039;t appear, press the &amp;quot;New Session&amp;quot; button (which looks like a piece of paper with a star on it). Once this is open, fill in the details below.&lt;br /&gt;
&lt;br /&gt;
When setting up an X2Go session, the exact value of “session name” is not important. The key details are the settings under “server” and “proxy server”. You will also need to set the “session type” to LXDE. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| Session name || &#039;&#039;e.g.&#039;&#039; ubuntu@ukca_vm_trXX&lt;br /&gt;
|- &lt;br /&gt;
| Host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Login || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| Use RSA/DSA key for ssh connection || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Session type || &#039;&#039;Select&#039;&#039; LXDE &#039;&#039;from drop-down menu&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On macOS you may need to maximise the Session Preferences window (using the green &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; marker in the top left corner) to allow you to set the session type and press the &#039;&#039;&#039;OK&#039;&#039;&#039; button, as this panel is quite long and these buttons will then become lost below the screen. &lt;br /&gt;
&lt;br /&gt;
When you have completed everything, press &#039;&#039;&#039;OK&#039;&#039;&#039;. The first time you connect you will be asked if you which to accept the host key. Click &#039;&#039;&#039;yes&#039;&#039;&#039;. Once you have set the preferences you should get a grey box representing your session, e.g.&lt;br /&gt;
&lt;br /&gt;
[[Image:X2Go_session_box_AWS.png|200px]]&lt;br /&gt;
&lt;br /&gt;
You should &#039;&#039;&#039;double-click at the top of the box&#039;&#039;&#039; (i.e. over the session name or on the icon) &#039;&#039;&#039;to start the connection&#039;&#039;&#039;. If you have closed a session down but left X2Go running you may instead see a grey box with the login field as &amp;lt;tt&amp;gt;ubuntu&amp;lt;/tt&amp;gt; and the password field blank - to connect in this case just press &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When you connect to your VM using X2Go you will be presented with an open Linux terminal which is asking for your MOSRS password. Once you have entered it, the first time you login you will also be asked for your MOSRS username. Subsequently, you will just be asked for your MOSRS password.&lt;br /&gt;
&lt;br /&gt;
When you have finished for the day you can close the connection by closing the X2Go window using the &#039;&#039;&#039;X&#039;&#039;&#039; in the corner. When you reconnect you will find the windows exactly as you left them. You can also resize the X2Go window using the maximize button or by dragging the corners with your mouse. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=600px&amp;gt;&lt;br /&gt;
Image:X2Go_settings_AWS.png|Example X2Go settings panel&lt;br /&gt;
Image:X2Go_terminal_login.png|X2Go connection to a VM, showing the terminal connecting to MOSRS for the first time.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
You may find that you cannot copy and paste between your personal computer and the VM.&lt;br /&gt;
&lt;br /&gt;
* On Windows you should follow [https://stackoverflow.com/questions/66872307/x2go-clipboard-copy-paste-stops-working-from-windows-10-to-linux-centos-and-v these instructions]:&lt;br /&gt;
** Open X2GO Client application&lt;br /&gt;
** Click &amp;quot;Options&amp;quot; menu --&amp;gt; Settings&lt;br /&gt;
** Select &amp;quot;X. Org Server Settings&amp;quot; tab&lt;br /&gt;
** Select &amp;quot;do not use primary clipboard&amp;quot; (make sure its checked)&lt;br /&gt;
** Click OK&lt;br /&gt;
** Restart your X2Go client&lt;br /&gt;
* On macOS you will need to follow [https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x these instructions]:&lt;br /&gt;
** In a Terminal, enter the following command&lt;br /&gt;
 echo &amp;quot;*VT100.translations: #override Meta &amp;lt;KeyPress&amp;gt; V: insert-selection(PRIMARY, CUT_BUFFER0) \n&amp;quot; &amp;gt; ~/.Xdefaults&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine Environment ==&lt;br /&gt;
&lt;br /&gt;
You will be using X2Go to connect to a Virtual Machine (VM) hosted on the AWS cloud, which has been specially set-up to be able to run the UKCA Tutorials. All the relevant files and settings have already been installed, all you need to do is to enter your MOSRS credentials when you first connect, and then cache your [[#MOSRS_Password|MOSRS password]] once a day or in a new terminal as required.&lt;br /&gt;
&lt;br /&gt;
The VM you are connecting to uses the Ubuntu 18.04 operating system, with the LXDE desktop. While you have access to the full desktop, you should be comfortable using a GNU/Linux operating system, including using and navigating around using a &#039;&#039;&#039;terminal&#039;&#039;&#039;. You should also be familiar with programming, ideally &#039;&#039;&#039;Fortran&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== MOSRS Password ==&lt;br /&gt;
&lt;br /&gt;
You will need to enter your MOSRS password each day, and for each terminal that you open on the VM when using X2Go that you wish to commit changes or run suites from.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you leave your terminal open overnight, in the morning you should use the command&#039;&#039;&#039;&lt;br /&gt;
 mosrs-cache-password&lt;br /&gt;
&#039;&#039;&#039;to cache your password for the day.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
If you do not do this each morning you may get some strange errors when committing changes or when running suites.&lt;br /&gt;
&lt;br /&gt;
== Connecting via a Terminal (GNU/Linux &amp;amp; macOS) ==&lt;br /&gt;
&lt;br /&gt;
It is also possible to connect via a terminal with an X11 connection ([https://www.xquartz.org/ XQuartz] is also required when using macOS, or MobaXTerm for Windows). The command to use in this case would be &lt;br /&gt;
 ssh -X -i /path/to/ukca_key_trXX.pem ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; is the full path to your SSH private key file. &lt;br /&gt;
&lt;br /&gt;
It is also possible to define a &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file entry with the necessary information if desired:&lt;br /&gt;
 Host ukca_vm_trXX&lt;br /&gt;
        Hostname &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
        User ubuntu&lt;br /&gt;
        IdentityFile /path/to/ukca_key_trXX.pem&lt;br /&gt;
&lt;br /&gt;
so that you could then just connect using the command&lt;br /&gt;
 ssh -X ukca_vm_trXX&lt;br /&gt;
&lt;br /&gt;
When you connect via a terminal you won&#039;t have a full desktop environment - you will need to navigate around the VM from the command line in the usual way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you have any issues authenticating to MOSRS or using Rose you could also try using &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;-X&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting via a MobaXTerm (Windows) ==&lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, it is also possible to connect from Windows via a Terminal client such as MobaXTerm&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://mobaxterm.mobatek.net/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If these instructions do not work, you can also connect as via a [[#Connecting_via_a_Terminal_(GNU/Linux_&amp;amp;_macOS)|Terminal]] by opening a local session and then specifying the location of your key file, e.g. &amp;lt;tt&amp;gt;C:\\Users/[YOUR USERNAME]/Downloads/ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To get started, you should click on &#039;&#039;&#039;Session&#039;&#039;&#039; and then &#039;&#039;&#039;SSH&#039;&#039;&#039; to create a new SSH session with the following equivalent settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;| Basic SSH settings (top row)&lt;br /&gt;
|- &lt;br /&gt;
| Remote host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Specify username || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || ubuntu&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab&lt;br /&gt;
|- &lt;br /&gt;
| X11 forwarding || &#039;&#039;Ensure that the checkbox is ticked (default)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Use private key || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab - optional choices&lt;br /&gt;
|- &lt;br /&gt;
| Remote environment (drop-down menu) || &#039;&#039;Interactive shell&#039;&#039; to connect via the MobaXTerm terminal&lt;br /&gt;
|-&lt;br /&gt;
|  || &#039;&#039;LXDE&#039;&#039; to connect with a grahpical environment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have connected you will need to navigate around and open files using terminal commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:MobaXTerm_advanced_AWS.png|Example MobaXTerm advanced SSH settings panel.&lt;br /&gt;
Image:MobaXTerm_LXDE.png|Settings for connecting to the LXDE desktop environment.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connecting via Amazon DCV ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=KrivpuHrBiY&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html Amazon DCV] is a desktop connection method that is ideal for Amazon EC2 instances that we use in these tutorials. You can either connect via the [https://docs.aws.amazon.com/dcv/latest/userguide/client.html Amazon DCV client] or via an up-to-date web browser. &#039;&#039;&#039;You will not need an SSH key to connect, and instead you will have been provided with a password.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If connecting via a web browser, you will need to accept the security risks to be able to connect to the machine.&lt;br /&gt;
&lt;br /&gt;
With the DCV client, standard copy/paste works using the standard system commands, although within the Linux desktop you will need to use &#039;&#039;&#039;Ctrl-Shift-c&#039;&#039;&#039; for copy and &#039;&#039;&#039;Ctrl-Shift-v&#039;&#039;&#039; for paste within a terminal and &#039;&#039;&#039;Ctrl-c&#039;&#039;&#039; and &#039;&#039;&#039;Ctrl-v&#039;&#039;&#039; elsewhere. When connecting through a web browser you will need to use the &#039;&#039;&#039;clipboard&#039;&#039;&#039; at the top-left of the page to pass text into the desktop, before pasting it.&lt;br /&gt;
&lt;br /&gt;
In the web browser you can disconnect using the top right-hand menu, or from the &#039;&#039;Connection&#039;&#039; menu from the client. When reconnecting, you will then be back with all the windows laid out as before. &lt;br /&gt;
&lt;br /&gt;
You may need to run the &#039;&#039;&#039;&amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command to ensure that your MOSRS password has been cached and that you can access code and suites from the repository.&lt;br /&gt;
&lt;br /&gt;
You may also need to periodically shut down the Cylc GUI and Jupyter Lab service to clear-out memory.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:DCV_connect_warning.png|Security warning seen when connecting via web browser for the first time.&lt;br /&gt;
Image:DCV_Ubuntu_Login_Clipboard.png|Ubuntu desktop login screen, seen when you have connected. The left-hand clipboard menu is highlighted.&lt;br /&gt;
Image:DCV_clipboard_sync.png|Showing a successful clipboard sync.&lt;br /&gt;
Image:DCV_disconnect.png|Showing the Ubuntu desktop with the disconnect option highlighted from the right-hand menu.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Copying data back ==&lt;br /&gt;
&lt;br /&gt;
If you are using a GNU/Linux or macOS system and you have set up the &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file as [[#Connecting_via_a_Terminal_.28GNU.2FLinux_.26_macOS.29|above]], you can pull data from the VMs using the following recommended &#039;&#039;&#039;&amp;lt;tt&amp;gt;rsync&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;foo.py&amp;lt;/tt&amp;gt; is a file in your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory to your current working directory on your local system. To copy from other directories you could use the command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:/home/ubuntu/cylc-run/SUITE-ID/work/1/atmos/atmosa.pa19810901_00 .&lt;br /&gt;
&lt;br /&gt;
The following longer command also works:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; above means the full path to your SSH private key file, e.g. &amp;lt;tt&amp;gt;/Users/luke/ukca_key_tr01.pem&amp;lt;/tt&amp;gt; etc. &lt;br /&gt;
&lt;br /&gt;
You can also copy directories in a similar way, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:/home/ubuntu/roses .&lt;br /&gt;
&lt;br /&gt;
You could also use Firefox to log-in to your e-mail and e-mail the files to yourself, or log-in to a Cloud service, such as Google Drive and Dropbox, and upload the files there directly.&lt;br /&gt;
&lt;br /&gt;
Make sure you &#039;&#039;&#039;&amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt;&#039;&#039;&#039; your suite(s) and branch(es) - this will allow you to use these later on a personal VM, although note that the paths within the suites will need to be changed later, as the username will be &amp;lt;tt&amp;gt;vagrant&amp;lt;/tt&amp;gt; when using the [https://github.com/metomi/metomi-vms Met Office Virtual Machine].&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_disconnect.png&amp;diff=11097</id>
		<title>File:DCV disconnect.png</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_disconnect.png&amp;diff=11097"/>
		<updated>2026-03-10T13:45:43Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_clipboard_sync.png&amp;diff=11096</id>
		<title>File:DCV clipboard sync.png</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_clipboard_sync.png&amp;diff=11096"/>
		<updated>2026-03-10T13:45:17Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_Ubuntu_Login_Clipboard.png&amp;diff=11095</id>
		<title>File:DCV Ubuntu Login Clipboard.png</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_Ubuntu_Login_Clipboard.png&amp;diff=11095"/>
		<updated>2026-03-10T13:44:04Z</updated>

		<summary type="html">&lt;p&gt;Nla27: Ubuntu login page with clipboard tool selected&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
Ubuntu login page with clipboard tool selected&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_connect_warning.png&amp;diff=11094</id>
		<title>File:DCV connect warning.png</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=File:DCV_connect_warning.png&amp;diff=11094"/>
		<updated>2026-03-10T13:41:08Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11092</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Configuring X2Go for AWS</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11092"/>
		<updated>2026-03-10T13:38:44Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Connecting via Amazon DCV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use the UKCA Tutorials on AWS you first need to download and install X2Go client. This is available for Windows, macOS, and GNU/Linux.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://wiki.x2go.org/doku.php/download:start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be provided with connection details to your personal VM and the required SSH key file that you will need. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the username on these VMs will be &#039;&#039;&#039;ubuntu&#039;&#039;&#039; and you will be provided a unique IP address to use to connect to the VM (labelled as &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; below). &lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, you can also connect via a &#039;&#039;&#039;[[#Connecting via a Terminal (GNU/Linux &amp;amp; macOS)|Terminal]]&#039;&#039;&#039; on GNU/Linux &amp;amp; macOS, and via &#039;&#039;&#039;[[#Connecting via a MobaXTerm (Windows)|MobaXTerm]]&#039;&#039;&#039; on Windows.&lt;br /&gt;
&lt;br /&gt;
== SSH key file ==&lt;br /&gt;
&lt;br /&gt;
Before you set up X2Go, you need to be sure that your SSH-key file is in the correct format. There will be a single text file, which look like:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: This is your &#039;&#039;&#039;private key&#039;&#039;&#039; and you should not share this file with anyone. &#039;&#039;&#039;It is this file that you need to use to connect using X2Go, MobaXTerm, or SSH.&#039;&#039;&#039; It will have a large block of random text in between the following lines:&lt;br /&gt;
 -----BEGIN OPENSSH PRIVATE KEY-----&lt;br /&gt;
 &lt;br /&gt;
 -----END OPENSSH PRIVATE KEY-----&lt;br /&gt;
&lt;br /&gt;
== Setting up X2Go ==&lt;br /&gt;
&lt;br /&gt;
When first starting X2Go, you should be presented with a new session dialog box to complete. If this doesn&#039;t appear, press the &amp;quot;New Session&amp;quot; button (which looks like a piece of paper with a star on it). Once this is open, fill in the details below.&lt;br /&gt;
&lt;br /&gt;
When setting up an X2Go session, the exact value of “session name” is not important. The key details are the settings under “server” and “proxy server”. You will also need to set the “session type” to LXDE. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| Session name || &#039;&#039;e.g.&#039;&#039; ubuntu@ukca_vm_trXX&lt;br /&gt;
|- &lt;br /&gt;
| Host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Login || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| Use RSA/DSA key for ssh connection || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Session type || &#039;&#039;Select&#039;&#039; LXDE &#039;&#039;from drop-down menu&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On macOS you may need to maximise the Session Preferences window (using the green &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; marker in the top left corner) to allow you to set the session type and press the &#039;&#039;&#039;OK&#039;&#039;&#039; button, as this panel is quite long and these buttons will then become lost below the screen. &lt;br /&gt;
&lt;br /&gt;
When you have completed everything, press &#039;&#039;&#039;OK&#039;&#039;&#039;. The first time you connect you will be asked if you which to accept the host key. Click &#039;&#039;&#039;yes&#039;&#039;&#039;. Once you have set the preferences you should get a grey box representing your session, e.g.&lt;br /&gt;
&lt;br /&gt;
[[Image:X2Go_session_box_AWS.png|200px]]&lt;br /&gt;
&lt;br /&gt;
You should &#039;&#039;&#039;double-click at the top of the box&#039;&#039;&#039; (i.e. over the session name or on the icon) &#039;&#039;&#039;to start the connection&#039;&#039;&#039;. If you have closed a session down but left X2Go running you may instead see a grey box with the login field as &amp;lt;tt&amp;gt;ubuntu&amp;lt;/tt&amp;gt; and the password field blank - to connect in this case just press &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When you connect to your VM using X2Go you will be presented with an open Linux terminal which is asking for your MOSRS password. Once you have entered it, the first time you login you will also be asked for your MOSRS username. Subsequently, you will just be asked for your MOSRS password.&lt;br /&gt;
&lt;br /&gt;
When you have finished for the day you can close the connection by closing the X2Go window using the &#039;&#039;&#039;X&#039;&#039;&#039; in the corner. When you reconnect you will find the windows exactly as you left them. You can also resize the X2Go window using the maximize button or by dragging the corners with your mouse. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=600px&amp;gt;&lt;br /&gt;
Image:X2Go_settings_AWS.png|Example X2Go settings panel&lt;br /&gt;
Image:X2Go_terminal_login.png|X2Go connection to a VM, showing the terminal connecting to MOSRS for the first time.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
You may find that you cannot copy and paste between your personal computer and the VM.&lt;br /&gt;
&lt;br /&gt;
* On Windows you should follow [https://stackoverflow.com/questions/66872307/x2go-clipboard-copy-paste-stops-working-from-windows-10-to-linux-centos-and-v these instructions]:&lt;br /&gt;
** Open X2GO Client application&lt;br /&gt;
** Click &amp;quot;Options&amp;quot; menu --&amp;gt; Settings&lt;br /&gt;
** Select &amp;quot;X. Org Server Settings&amp;quot; tab&lt;br /&gt;
** Select &amp;quot;do not use primary clipboard&amp;quot; (make sure its checked)&lt;br /&gt;
** Click OK&lt;br /&gt;
** Restart your X2Go client&lt;br /&gt;
* On macOS you will need to follow [https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x these instructions]:&lt;br /&gt;
** In a Terminal, enter the following command&lt;br /&gt;
 echo &amp;quot;*VT100.translations: #override Meta &amp;lt;KeyPress&amp;gt; V: insert-selection(PRIMARY, CUT_BUFFER0) \n&amp;quot; &amp;gt; ~/.Xdefaults&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine Environment ==&lt;br /&gt;
&lt;br /&gt;
You will be using X2Go to connect to a Virtual Machine (VM) hosted on the AWS cloud, which has been specially set-up to be able to run the UKCA Tutorials. All the relevant files and settings have already been installed, all you need to do is to enter your MOSRS credentials when you first connect, and then cache your [[#MOSRS_Password|MOSRS password]] once a day or in a new terminal as required.&lt;br /&gt;
&lt;br /&gt;
The VM you are connecting to uses the Ubuntu 18.04 operating system, with the LXDE desktop. While you have access to the full desktop, you should be comfortable using a GNU/Linux operating system, including using and navigating around using a &#039;&#039;&#039;terminal&#039;&#039;&#039;. You should also be familiar with programming, ideally &#039;&#039;&#039;Fortran&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== MOSRS Password ==&lt;br /&gt;
&lt;br /&gt;
You will need to enter your MOSRS password each day, and for each terminal that you open on the VM when using X2Go that you wish to commit changes or run suites from.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you leave your terminal open overnight, in the morning you should use the command&#039;&#039;&#039;&lt;br /&gt;
 mosrs-cache-password&lt;br /&gt;
&#039;&#039;&#039;to cache your password for the day.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
If you do not do this each morning you may get some strange errors when committing changes or when running suites.&lt;br /&gt;
&lt;br /&gt;
== Connecting via a Terminal (GNU/Linux &amp;amp; macOS) ==&lt;br /&gt;
&lt;br /&gt;
It is also possible to connect via a terminal with an X11 connection ([https://www.xquartz.org/ XQuartz] is also required when using macOS, or MobaXTerm for Windows). The command to use in this case would be &lt;br /&gt;
 ssh -X -i /path/to/ukca_key_trXX.pem ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; is the full path to your SSH private key file. &lt;br /&gt;
&lt;br /&gt;
It is also possible to define a &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file entry with the necessary information if desired:&lt;br /&gt;
 Host ukca_vm_trXX&lt;br /&gt;
        Hostname &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
        User ubuntu&lt;br /&gt;
        IdentityFile /path/to/ukca_key_trXX.pem&lt;br /&gt;
&lt;br /&gt;
so that you could then just connect using the command&lt;br /&gt;
 ssh -X ukca_vm_trXX&lt;br /&gt;
&lt;br /&gt;
When you connect via a terminal you won&#039;t have a full desktop environment - you will need to navigate around the VM from the command line in the usual way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you have any issues authenticating to MOSRS or using Rose you could also try using &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;-X&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting via a MobaXTerm (Windows) ==&lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, it is also possible to connect from Windows via a Terminal client such as MobaXTerm&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://mobaxterm.mobatek.net/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If these instructions do not work, you can also connect as via a [[#Connecting_via_a_Terminal_(GNU/Linux_&amp;amp;_macOS)|Terminal]] by opening a local session and then specifying the location of your key file, e.g. &amp;lt;tt&amp;gt;C:\\Users/[YOUR USERNAME]/Downloads/ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To get started, you should click on &#039;&#039;&#039;Session&#039;&#039;&#039; and then &#039;&#039;&#039;SSH&#039;&#039;&#039; to create a new SSH session with the following equivalent settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;| Basic SSH settings (top row)&lt;br /&gt;
|- &lt;br /&gt;
| Remote host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Specify username || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || ubuntu&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab&lt;br /&gt;
|- &lt;br /&gt;
| X11 forwarding || &#039;&#039;Ensure that the checkbox is ticked (default)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Use private key || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab - optional choices&lt;br /&gt;
|- &lt;br /&gt;
| Remote environment (drop-down menu) || &#039;&#039;Interactive shell&#039;&#039; to connect via the MobaXTerm terminal&lt;br /&gt;
|-&lt;br /&gt;
|  || &#039;&#039;LXDE&#039;&#039; to connect with a grahpical environment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have connected you will need to navigate around and open files using terminal commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:MobaXTerm_advanced_AWS.png|Example MobaXTerm advanced SSH settings panel.&lt;br /&gt;
Image:MobaXTerm_LXDE.png|Settings for connecting to the LXDE desktop environment.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connecting via Amazon DCV ==&lt;br /&gt;
&lt;br /&gt;
[https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html Amazon DCV] is a desktop connection method that is ideal for Amazon EC2 instances that we use in these tutorials. You can either connect via the [https://docs.aws.amazon.com/dcv/latest/userguide/client.html Amazon DCV client] or via an up-to-date web browser. &#039;&#039;&#039;You will not need an SSH key to connect, and instead you will have been provided with a password.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If connecting via a web browser, you will need to accept the security risks to be able to connect to the machine.&lt;br /&gt;
&lt;br /&gt;
With the DCV client, standard copy/paste works using the standard system commands, although within the Linux desktop you will need to use &#039;&#039;&#039;Ctrl-Shift-c&#039;&#039;&#039; for copy and &#039;&#039;&#039;Ctrl-Shift-v&#039;&#039;&#039; for paste within a terminal and &#039;&#039;&#039;Ctrl-c&#039;&#039;&#039; and &#039;&#039;&#039;Ctrl-v&#039;&#039;&#039; elsewhere. When connecting through a web browser you will need to use the &#039;&#039;&#039;clipboard&#039;&#039;&#039; at the top-left of the page to pass text into the desktop, before pasting it.&lt;br /&gt;
&lt;br /&gt;
In the web browser you can disconnect using the top right-hand menu, or from the &#039;&#039;Connection&#039;&#039; menu from the client. When reconnecting, you will then be back with all the windows laid out as before. &lt;br /&gt;
&lt;br /&gt;
You may need to run the &#039;&#039;&#039;&amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command to ensure that your MOSRS password has been cached and that you can access code and suites from the repository.&lt;br /&gt;
&lt;br /&gt;
You may also need to periodically shut down the Cylc GUI and Jupyter Lab service to clear-out memory.&lt;br /&gt;
&lt;br /&gt;
== Copying data back ==&lt;br /&gt;
&lt;br /&gt;
If you are using a GNU/Linux or macOS system and you have set up the &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file as [[#Connecting_via_a_Terminal_.28GNU.2FLinux_.26_macOS.29|above]], you can pull data from the VMs using the following recommended &#039;&#039;&#039;&amp;lt;tt&amp;gt;rsync&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;foo.py&amp;lt;/tt&amp;gt; is a file in your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory to your current working directory on your local system. To copy from other directories you could use the command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:/home/ubuntu/cylc-run/SUITE-ID/work/1/atmos/atmosa.pa19810901_00 .&lt;br /&gt;
&lt;br /&gt;
The following longer command also works:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; above means the full path to your SSH private key file, e.g. &amp;lt;tt&amp;gt;/Users/luke/ukca_key_tr01.pem&amp;lt;/tt&amp;gt; etc. &lt;br /&gt;
&lt;br /&gt;
You can also copy directories in a similar way, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:/home/ubuntu/roses .&lt;br /&gt;
&lt;br /&gt;
You could also use Firefox to log-in to your e-mail and e-mail the files to yourself, or log-in to a Cloud service, such as Google Drive and Dropbox, and upload the files there directly.&lt;br /&gt;
&lt;br /&gt;
Make sure you &#039;&#039;&#039;&amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt;&#039;&#039;&#039; your suite(s) and branch(es) - this will allow you to use these later on a personal VM, although note that the paths within the suites will need to be changed later, as the username will be &amp;lt;tt&amp;gt;vagrant&amp;lt;/tt&amp;gt; when using the [https://github.com/metomi/metomi-vms Met Office Virtual Machine].&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11091</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Configuring X2Go for AWS</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11091"/>
		<updated>2026-03-10T13:37:44Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Connecting via Amazon DCV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use the UKCA Tutorials on AWS you first need to download and install X2Go client. This is available for Windows, macOS, and GNU/Linux.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://wiki.x2go.org/doku.php/download:start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be provided with connection details to your personal VM and the required SSH key file that you will need. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the username on these VMs will be &#039;&#039;&#039;ubuntu&#039;&#039;&#039; and you will be provided a unique IP address to use to connect to the VM (labelled as &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; below). &lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, you can also connect via a &#039;&#039;&#039;[[#Connecting via a Terminal (GNU/Linux &amp;amp; macOS)|Terminal]]&#039;&#039;&#039; on GNU/Linux &amp;amp; macOS, and via &#039;&#039;&#039;[[#Connecting via a MobaXTerm (Windows)|MobaXTerm]]&#039;&#039;&#039; on Windows.&lt;br /&gt;
&lt;br /&gt;
== SSH key file ==&lt;br /&gt;
&lt;br /&gt;
Before you set up X2Go, you need to be sure that your SSH-key file is in the correct format. There will be a single text file, which look like:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: This is your &#039;&#039;&#039;private key&#039;&#039;&#039; and you should not share this file with anyone. &#039;&#039;&#039;It is this file that you need to use to connect using X2Go, MobaXTerm, or SSH.&#039;&#039;&#039; It will have a large block of random text in between the following lines:&lt;br /&gt;
 -----BEGIN OPENSSH PRIVATE KEY-----&lt;br /&gt;
 &lt;br /&gt;
 -----END OPENSSH PRIVATE KEY-----&lt;br /&gt;
&lt;br /&gt;
== Setting up X2Go ==&lt;br /&gt;
&lt;br /&gt;
When first starting X2Go, you should be presented with a new session dialog box to complete. If this doesn&#039;t appear, press the &amp;quot;New Session&amp;quot; button (which looks like a piece of paper with a star on it). Once this is open, fill in the details below.&lt;br /&gt;
&lt;br /&gt;
When setting up an X2Go session, the exact value of “session name” is not important. The key details are the settings under “server” and “proxy server”. You will also need to set the “session type” to LXDE. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| Session name || &#039;&#039;e.g.&#039;&#039; ubuntu@ukca_vm_trXX&lt;br /&gt;
|- &lt;br /&gt;
| Host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Login || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| Use RSA/DSA key for ssh connection || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Session type || &#039;&#039;Select&#039;&#039; LXDE &#039;&#039;from drop-down menu&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On macOS you may need to maximise the Session Preferences window (using the green &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; marker in the top left corner) to allow you to set the session type and press the &#039;&#039;&#039;OK&#039;&#039;&#039; button, as this panel is quite long and these buttons will then become lost below the screen. &lt;br /&gt;
&lt;br /&gt;
When you have completed everything, press &#039;&#039;&#039;OK&#039;&#039;&#039;. The first time you connect you will be asked if you which to accept the host key. Click &#039;&#039;&#039;yes&#039;&#039;&#039;. Once you have set the preferences you should get a grey box representing your session, e.g.&lt;br /&gt;
&lt;br /&gt;
[[Image:X2Go_session_box_AWS.png|200px]]&lt;br /&gt;
&lt;br /&gt;
You should &#039;&#039;&#039;double-click at the top of the box&#039;&#039;&#039; (i.e. over the session name or on the icon) &#039;&#039;&#039;to start the connection&#039;&#039;&#039;. If you have closed a session down but left X2Go running you may instead see a grey box with the login field as &amp;lt;tt&amp;gt;ubuntu&amp;lt;/tt&amp;gt; and the password field blank - to connect in this case just press &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When you connect to your VM using X2Go you will be presented with an open Linux terminal which is asking for your MOSRS password. Once you have entered it, the first time you login you will also be asked for your MOSRS username. Subsequently, you will just be asked for your MOSRS password.&lt;br /&gt;
&lt;br /&gt;
When you have finished for the day you can close the connection by closing the X2Go window using the &#039;&#039;&#039;X&#039;&#039;&#039; in the corner. When you reconnect you will find the windows exactly as you left them. You can also resize the X2Go window using the maximize button or by dragging the corners with your mouse. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=600px&amp;gt;&lt;br /&gt;
Image:X2Go_settings_AWS.png|Example X2Go settings panel&lt;br /&gt;
Image:X2Go_terminal_login.png|X2Go connection to a VM, showing the terminal connecting to MOSRS for the first time.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
You may find that you cannot copy and paste between your personal computer and the VM.&lt;br /&gt;
&lt;br /&gt;
* On Windows you should follow [https://stackoverflow.com/questions/66872307/x2go-clipboard-copy-paste-stops-working-from-windows-10-to-linux-centos-and-v these instructions]:&lt;br /&gt;
** Open X2GO Client application&lt;br /&gt;
** Click &amp;quot;Options&amp;quot; menu --&amp;gt; Settings&lt;br /&gt;
** Select &amp;quot;X. Org Server Settings&amp;quot; tab&lt;br /&gt;
** Select &amp;quot;do not use primary clipboard&amp;quot; (make sure its checked)&lt;br /&gt;
** Click OK&lt;br /&gt;
** Restart your X2Go client&lt;br /&gt;
* On macOS you will need to follow [https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x these instructions]:&lt;br /&gt;
** In a Terminal, enter the following command&lt;br /&gt;
 echo &amp;quot;*VT100.translations: #override Meta &amp;lt;KeyPress&amp;gt; V: insert-selection(PRIMARY, CUT_BUFFER0) \n&amp;quot; &amp;gt; ~/.Xdefaults&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine Environment ==&lt;br /&gt;
&lt;br /&gt;
You will be using X2Go to connect to a Virtual Machine (VM) hosted on the AWS cloud, which has been specially set-up to be able to run the UKCA Tutorials. All the relevant files and settings have already been installed, all you need to do is to enter your MOSRS credentials when you first connect, and then cache your [[#MOSRS_Password|MOSRS password]] once a day or in a new terminal as required.&lt;br /&gt;
&lt;br /&gt;
The VM you are connecting to uses the Ubuntu 18.04 operating system, with the LXDE desktop. While you have access to the full desktop, you should be comfortable using a GNU/Linux operating system, including using and navigating around using a &#039;&#039;&#039;terminal&#039;&#039;&#039;. You should also be familiar with programming, ideally &#039;&#039;&#039;Fortran&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== MOSRS Password ==&lt;br /&gt;
&lt;br /&gt;
You will need to enter your MOSRS password each day, and for each terminal that you open on the VM when using X2Go that you wish to commit changes or run suites from.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you leave your terminal open overnight, in the morning you should use the command&#039;&#039;&#039;&lt;br /&gt;
 mosrs-cache-password&lt;br /&gt;
&#039;&#039;&#039;to cache your password for the day.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
If you do not do this each morning you may get some strange errors when committing changes or when running suites.&lt;br /&gt;
&lt;br /&gt;
== Connecting via a Terminal (GNU/Linux &amp;amp; macOS) ==&lt;br /&gt;
&lt;br /&gt;
It is also possible to connect via a terminal with an X11 connection ([https://www.xquartz.org/ XQuartz] is also required when using macOS, or MobaXTerm for Windows). The command to use in this case would be &lt;br /&gt;
 ssh -X -i /path/to/ukca_key_trXX.pem ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; is the full path to your SSH private key file. &lt;br /&gt;
&lt;br /&gt;
It is also possible to define a &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file entry with the necessary information if desired:&lt;br /&gt;
 Host ukca_vm_trXX&lt;br /&gt;
        Hostname &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
        User ubuntu&lt;br /&gt;
        IdentityFile /path/to/ukca_key_trXX.pem&lt;br /&gt;
&lt;br /&gt;
so that you could then just connect using the command&lt;br /&gt;
 ssh -X ukca_vm_trXX&lt;br /&gt;
&lt;br /&gt;
When you connect via a terminal you won&#039;t have a full desktop environment - you will need to navigate around the VM from the command line in the usual way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you have any issues authenticating to MOSRS or using Rose you could also try using &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;-X&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting via a MobaXTerm (Windows) ==&lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, it is also possible to connect from Windows via a Terminal client such as MobaXTerm&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://mobaxterm.mobatek.net/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If these instructions do not work, you can also connect as via a [[#Connecting_via_a_Terminal_(GNU/Linux_&amp;amp;_macOS)|Terminal]] by opening a local session and then specifying the location of your key file, e.g. &amp;lt;tt&amp;gt;C:\\Users/[YOUR USERNAME]/Downloads/ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To get started, you should click on &#039;&#039;&#039;Session&#039;&#039;&#039; and then &#039;&#039;&#039;SSH&#039;&#039;&#039; to create a new SSH session with the following equivalent settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;| Basic SSH settings (top row)&lt;br /&gt;
|- &lt;br /&gt;
| Remote host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Specify username || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || ubuntu&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab&lt;br /&gt;
|- &lt;br /&gt;
| X11 forwarding || &#039;&#039;Ensure that the checkbox is ticked (default)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Use private key || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab - optional choices&lt;br /&gt;
|- &lt;br /&gt;
| Remote environment (drop-down menu) || &#039;&#039;Interactive shell&#039;&#039; to connect via the MobaXTerm terminal&lt;br /&gt;
|-&lt;br /&gt;
|  || &#039;&#039;LXDE&#039;&#039; to connect with a grahpical environment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have connected you will need to navigate around and open files using terminal commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:MobaXTerm_advanced_AWS.png|Example MobaXTerm advanced SSH settings panel.&lt;br /&gt;
Image:MobaXTerm_LXDE.png|Settings for connecting to the LXDE desktop environment.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connecting via Amazon DCV ==&lt;br /&gt;
&lt;br /&gt;
[https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html Amazon DCV] is a desktop connection method that is ideal for Amazon EC2 instances that we use in these tutorials. You can either connect via the [https://docs.aws.amazon.com/dcv/latest/userguide/client.html Amazon DCV client] or via an up-to-date web browser. &#039;&#039;&#039;You will not need an SSH key to connect, and instead you will have been provided with a password.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
If connecting via a web browser, you will need to accept the security risks to be able to connect to the machine.&lt;br /&gt;
&lt;br /&gt;
With the DCV client, standard copy/paste works using the standard system commands, although within the Linux desktop you will need to use &#039;&#039;&#039;Ctrl-Shift-c/v&#039;&#039;&#039; within a terminal and &#039;&#039;&#039;Ctrl-c/v&#039;&#039;&#039; elsewhere for copy/paste. When connecting through a web browser you will need to use the &#039;&#039;&#039;clipboard&#039;&#039;&#039; at the top-left of the page to pass text into the desktop, before pasting it.&lt;br /&gt;
&lt;br /&gt;
In the web browser you can disconnect using the top right-hand menu, or from the &#039;&#039;Connection&#039;&#039; menu from the client. When reconnecting, you will then be back with all the windows laid out as before. &lt;br /&gt;
&lt;br /&gt;
You may need to run the &#039;&#039;&#039;&amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command to ensure that your MOSRS password has been cached and that you can access code and suites from the repository.&lt;br /&gt;
&lt;br /&gt;
You may also need to periodically shut down the Cylc GUI and Jupyter Lab service to clear-out memory.&lt;br /&gt;
&lt;br /&gt;
== Copying data back ==&lt;br /&gt;
&lt;br /&gt;
If you are using a GNU/Linux or macOS system and you have set up the &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file as [[#Connecting_via_a_Terminal_.28GNU.2FLinux_.26_macOS.29|above]], you can pull data from the VMs using the following recommended &#039;&#039;&#039;&amp;lt;tt&amp;gt;rsync&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;foo.py&amp;lt;/tt&amp;gt; is a file in your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory to your current working directory on your local system. To copy from other directories you could use the command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:/home/ubuntu/cylc-run/SUITE-ID/work/1/atmos/atmosa.pa19810901_00 .&lt;br /&gt;
&lt;br /&gt;
The following longer command also works:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; above means the full path to your SSH private key file, e.g. &amp;lt;tt&amp;gt;/Users/luke/ukca_key_tr01.pem&amp;lt;/tt&amp;gt; etc. &lt;br /&gt;
&lt;br /&gt;
You can also copy directories in a similar way, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:/home/ubuntu/roses .&lt;br /&gt;
&lt;br /&gt;
You could also use Firefox to log-in to your e-mail and e-mail the files to yourself, or log-in to a Cloud service, such as Google Drive and Dropbox, and upload the files there directly.&lt;br /&gt;
&lt;br /&gt;
Make sure you &#039;&#039;&#039;&amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt;&#039;&#039;&#039; your suite(s) and branch(es) - this will allow you to use these later on a personal VM, although note that the paths within the suites will need to be changed later, as the username will be &amp;lt;tt&amp;gt;vagrant&amp;lt;/tt&amp;gt; when using the [https://github.com/metomi/metomi-vms Met Office Virtual Machine].&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11090</id>
		<title>UKCA Chemistry and Aerosol Tutorials: Configuring X2Go for AWS</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_Tutorials:_Configuring_X2Go_for_AWS&amp;diff=11090"/>
		<updated>2026-03-10T11:26:46Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Copying data back */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;EASY&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;Under 1 hour&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To use the UKCA Tutorials on AWS you first need to download and install X2Go client. This is available for Windows, macOS, and GNU/Linux.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://wiki.x2go.org/doku.php/download:start&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You will be provided with connection details to your personal VM and the required SSH key file that you will need. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that the username on these VMs will be &#039;&#039;&#039;ubuntu&#039;&#039;&#039; and you will be provided a unique IP address to use to connect to the VM (labelled as &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; below). &lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, you can also connect via a &#039;&#039;&#039;[[#Connecting via a Terminal (GNU/Linux &amp;amp; macOS)|Terminal]]&#039;&#039;&#039; on GNU/Linux &amp;amp; macOS, and via &#039;&#039;&#039;[[#Connecting via a MobaXTerm (Windows)|MobaXTerm]]&#039;&#039;&#039; on Windows.&lt;br /&gt;
&lt;br /&gt;
== SSH key file ==&lt;br /&gt;
&lt;br /&gt;
Before you set up X2Go, you need to be sure that your SSH-key file is in the correct format. There will be a single text file, which look like:&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;: This is your &#039;&#039;&#039;private key&#039;&#039;&#039; and you should not share this file with anyone. &#039;&#039;&#039;It is this file that you need to use to connect using X2Go, MobaXTerm, or SSH.&#039;&#039;&#039; It will have a large block of random text in between the following lines:&lt;br /&gt;
 -----BEGIN OPENSSH PRIVATE KEY-----&lt;br /&gt;
 &lt;br /&gt;
 -----END OPENSSH PRIVATE KEY-----&lt;br /&gt;
&lt;br /&gt;
== Setting up X2Go ==&lt;br /&gt;
&lt;br /&gt;
When first starting X2Go, you should be presented with a new session dialog box to complete. If this doesn&#039;t appear, press the &amp;quot;New Session&amp;quot; button (which looks like a piece of paper with a star on it). Once this is open, fill in the details below.&lt;br /&gt;
&lt;br /&gt;
When setting up an X2Go session, the exact value of “session name” is not important. The key details are the settings under “server” and “proxy server”. You will also need to set the “session type” to LXDE. &lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|- &lt;br /&gt;
| Session name || &#039;&#039;e.g.&#039;&#039; ubuntu@ukca_vm_trXX&lt;br /&gt;
|- &lt;br /&gt;
| Host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Login || ubuntu&lt;br /&gt;
|- &lt;br /&gt;
| Use RSA/DSA key for ssh connection || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Session type || &#039;&#039;Select&#039;&#039; LXDE &#039;&#039;from drop-down menu&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; On macOS you may need to maximise the Session Preferences window (using the green &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; marker in the top left corner) to allow you to set the session type and press the &#039;&#039;&#039;OK&#039;&#039;&#039; button, as this panel is quite long and these buttons will then become lost below the screen. &lt;br /&gt;
&lt;br /&gt;
When you have completed everything, press &#039;&#039;&#039;OK&#039;&#039;&#039;. The first time you connect you will be asked if you which to accept the host key. Click &#039;&#039;&#039;yes&#039;&#039;&#039;. Once you have set the preferences you should get a grey box representing your session, e.g.&lt;br /&gt;
&lt;br /&gt;
[[Image:X2Go_session_box_AWS.png|200px]]&lt;br /&gt;
&lt;br /&gt;
You should &#039;&#039;&#039;double-click at the top of the box&#039;&#039;&#039; (i.e. over the session name or on the icon) &#039;&#039;&#039;to start the connection&#039;&#039;&#039;. If you have closed a session down but left X2Go running you may instead see a grey box with the login field as &amp;lt;tt&amp;gt;ubuntu&amp;lt;/tt&amp;gt; and the password field blank - to connect in this case just press &#039;&#039;&#039;OK&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
When you connect to your VM using X2Go you will be presented with an open Linux terminal which is asking for your MOSRS password. Once you have entered it, the first time you login you will also be asked for your MOSRS username. Subsequently, you will just be asked for your MOSRS password.&lt;br /&gt;
&lt;br /&gt;
When you have finished for the day you can close the connection by closing the X2Go window using the &#039;&#039;&#039;X&#039;&#039;&#039; in the corner. When you reconnect you will find the windows exactly as you left them. You can also resize the X2Go window using the maximize button or by dragging the corners with your mouse. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=600px&amp;gt;&lt;br /&gt;
Image:X2Go_settings_AWS.png|Example X2Go settings panel&lt;br /&gt;
Image:X2Go_terminal_login.png|X2Go connection to a VM, showing the terminal connecting to MOSRS for the first time.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
You may find that you cannot copy and paste between your personal computer and the VM.&lt;br /&gt;
&lt;br /&gt;
* On Windows you should follow [https://stackoverflow.com/questions/66872307/x2go-clipboard-copy-paste-stops-working-from-windows-10-to-linux-centos-and-v these instructions]:&lt;br /&gt;
** Open X2GO Client application&lt;br /&gt;
** Click &amp;quot;Options&amp;quot; menu --&amp;gt; Settings&lt;br /&gt;
** Select &amp;quot;X. Org Server Settings&amp;quot; tab&lt;br /&gt;
** Select &amp;quot;do not use primary clipboard&amp;quot; (make sure its checked)&lt;br /&gt;
** Click OK&lt;br /&gt;
** Restart your X2Go client&lt;br /&gt;
* On macOS you will need to follow [https://wiki.x2go.org/doku.php/doc:installation:x2goclient#os_x these instructions]:&lt;br /&gt;
** In a Terminal, enter the following command&lt;br /&gt;
 echo &amp;quot;*VT100.translations: #override Meta &amp;lt;KeyPress&amp;gt; V: insert-selection(PRIMARY, CUT_BUFFER0) \n&amp;quot; &amp;gt; ~/.Xdefaults&lt;br /&gt;
&lt;br /&gt;
== Virtual Machine Environment ==&lt;br /&gt;
&lt;br /&gt;
You will be using X2Go to connect to a Virtual Machine (VM) hosted on the AWS cloud, which has been specially set-up to be able to run the UKCA Tutorials. All the relevant files and settings have already been installed, all you need to do is to enter your MOSRS credentials when you first connect, and then cache your [[#MOSRS_Password|MOSRS password]] once a day or in a new terminal as required.&lt;br /&gt;
&lt;br /&gt;
The VM you are connecting to uses the Ubuntu 18.04 operating system, with the LXDE desktop. While you have access to the full desktop, you should be comfortable using a GNU/Linux operating system, including using and navigating around using a &#039;&#039;&#039;terminal&#039;&#039;&#039;. You should also be familiar with programming, ideally &#039;&#039;&#039;Fortran&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
== MOSRS Password ==&lt;br /&gt;
&lt;br /&gt;
You will need to enter your MOSRS password each day, and for each terminal that you open on the VM when using X2Go that you wish to commit changes or run suites from.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you leave your terminal open overnight, in the morning you should use the command&#039;&#039;&#039;&lt;br /&gt;
 mosrs-cache-password&lt;br /&gt;
&#039;&#039;&#039;to cache your password for the day.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
If you do not do this each morning you may get some strange errors when committing changes or when running suites.&lt;br /&gt;
&lt;br /&gt;
== Connecting via a Terminal (GNU/Linux &amp;amp; macOS) ==&lt;br /&gt;
&lt;br /&gt;
It is also possible to connect via a terminal with an X11 connection ([https://www.xquartz.org/ XQuartz] is also required when using macOS, or MobaXTerm for Windows). The command to use in this case would be &lt;br /&gt;
 ssh -X -i /path/to/ukca_key_trXX.pem ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; is the full path to your SSH private key file. &lt;br /&gt;
&lt;br /&gt;
It is also possible to define a &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file entry with the necessary information if desired:&lt;br /&gt;
 Host ukca_vm_trXX&lt;br /&gt;
        Hostname &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;&lt;br /&gt;
        User ubuntu&lt;br /&gt;
        IdentityFile /path/to/ukca_key_trXX.pem&lt;br /&gt;
&lt;br /&gt;
so that you could then just connect using the command&lt;br /&gt;
 ssh -X ukca_vm_trXX&lt;br /&gt;
&lt;br /&gt;
When you connect via a terminal you won&#039;t have a full desktop environment - you will need to navigate around the VM from the command line in the usual way.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If you have any issues authenticating to MOSRS or using Rose you could also try using &amp;lt;tt&amp;gt;-Y&amp;lt;/tt&amp;gt; instead of &amp;lt;tt&amp;gt;-X&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Connecting via a MobaXTerm (Windows) ==&lt;br /&gt;
&lt;br /&gt;
If you are unable to use X2Go, it is also possible to connect from Windows via a Terminal client such as MobaXTerm&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;https://mobaxterm.mobatek.net/&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;If these instructions do not work, you can also connect as via a [[#Connecting_via_a_Terminal_(GNU/Linux_&amp;amp;_macOS)|Terminal]] by opening a local session and then specifying the location of your key file, e.g. &amp;lt;tt&amp;gt;C:\\Users/[YOUR USERNAME]/Downloads/ukca_key_trXX.pem&amp;lt;/tt&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To get started, you should click on &#039;&#039;&#039;Session&#039;&#039;&#039; and then &#039;&#039;&#039;SSH&#039;&#039;&#039; to create a new SSH session with the following equivalent settings:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Option&lt;br /&gt;
!style=&amp;quot;text-align:top;&amp;quot;|Setting&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;| Basic SSH settings (top row)&lt;br /&gt;
|- &lt;br /&gt;
| Remote host || &#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039; &#039;&#039;(e.g. 192.171.139.44)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Specify username || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || ubuntu&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab&lt;br /&gt;
|- &lt;br /&gt;
| X11 forwarding || &#039;&#039;Ensure that the checkbox is ticked (default)&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Use private key || &#039;&#039;Tick checkbox&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
|  || &#039;&#039;The path to your&#039;&#039; &amp;lt;tt&amp;gt;ukca_key_trXX.pem&amp;lt;/tt&amp;gt; &#039;&#039; key file (navigate via button)&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
! scope=&amp;quot;row&amp;quot; colspan=&amp;quot;2&amp;quot; style=&amp;quot;text-align:left;&amp;quot;|  Advanced SSH settings Tab - optional choices&lt;br /&gt;
|- &lt;br /&gt;
| Remote environment (drop-down menu) || &#039;&#039;Interactive shell&#039;&#039; to connect via the MobaXTerm terminal&lt;br /&gt;
|-&lt;br /&gt;
|  || &#039;&#039;LXDE&#039;&#039; to connect with a grahpical environment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have connected you will need to navigate around and open files using terminal commands.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=450px heights=300px&amp;gt;&lt;br /&gt;
Image:MobaXTerm_advanced_AWS.png|Example MobaXTerm advanced SSH settings panel.&lt;br /&gt;
Image:MobaXTerm_LXDE.png|Settings for connecting to the LXDE desktop environment.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Connecting via Amazon DCV ==&lt;br /&gt;
&lt;br /&gt;
[https://docs.aws.amazon.com/dcv/latest/adminguide/what-is-dcv.html Amazon DCV] is a desktop connection method that is ideal for Amazon EC2 instances that we use in these tutorials. You can either connect via the [https://docs.aws.amazon.com/dcv/latest/userguide/client.html Amazon DCV client] or via an up-to-date web browser. &#039;&#039;&#039;You will not need an SSH key to connect, and instead you will have been provided with a password.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Copying data back ==&lt;br /&gt;
&lt;br /&gt;
If you are using a GNU/Linux or macOS system and you have set up the &amp;lt;tt&amp;gt;.ssh/config&amp;lt;/tt&amp;gt; file as [[#Connecting_via_a_Terminal_.28GNU.2FLinux_.26_macOS.29|above]], you can pull data from the VMs using the following recommended &#039;&#039;&#039;&amp;lt;tt&amp;gt;rsync&amp;lt;/tt&amp;gt;&#039;&#039;&#039; command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;foo.py&amp;lt;/tt&amp;gt; is a file in your &amp;lt;tt&amp;gt;home/&amp;lt;/tt&amp;gt; directory to your current working directory on your local system. To copy from other directories you could use the command, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv ukca_vm_trXX:/home/ubuntu/cylc-run/SUITE-ID/work/1/atmos/atmosa.pa19810901_00 .&lt;br /&gt;
&lt;br /&gt;
The following longer command also works:&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:foo.py .&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;/path/to/ukca_key_trXX.pem&amp;lt;/tt&amp;gt; above means the full path to your SSH private key file, e.g. &amp;lt;tt&amp;gt;/Users/luke/ukca_key_tr01.pem&amp;lt;/tt&amp;gt; etc. &lt;br /&gt;
&lt;br /&gt;
You can also copy directories in a similar way, e.g.&lt;br /&gt;
&lt;br /&gt;
 rsync -auvv -e &amp;quot;ssh -i /path/to/ukca_key_trXX.pem&amp;quot; ubuntu@&#039;&#039;&#039;YOUR.ASSIGNED.IP.ADDRESS&#039;&#039;&#039;:/home/ubuntu/roses .&lt;br /&gt;
&lt;br /&gt;
You could also use Firefox to log-in to your e-mail and e-mail the files to yourself, or log-in to a Cloud service, such as Google Drive and Dropbox, and upload the files there directly.&lt;br /&gt;
&lt;br /&gt;
Make sure you &#039;&#039;&#039;&amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt;&#039;&#039;&#039; your suite(s) and branch(es) - this will allow you to use these later on a personal VM, although note that the paths within the suites will need to be changed later, as the username will be &amp;lt;tt&amp;gt;vagrant&amp;lt;/tt&amp;gt; when using the [https://github.com/metomi/metomi-vms Met Office Virtual Machine].&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025.&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11085</id>
		<title>UKCA</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11085"/>
		<updated>2026-02-26T11:54:09Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* UKCA source available on GitHub */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===&#039;&#039;&#039;Welcome to the UKCA Wiki&#039;&#039;&#039;===&lt;br /&gt;
__NOTOC__&lt;br /&gt;
UKCA is a joint NCAS-Met Office programme part of the NERC-Met Office Joint Climate and Weather Research Programme (JWCRP). Project partners are the Hadley Centre and the Universities of Cambridge, Leeds and Oxford. Our objective is to develop, evaluate and make available a UK community atmospheric chemistry-aerosol global model suitable for a range of topics in climate and environmental change research.&lt;br /&gt;
&lt;br /&gt;
[[Image:NCAS_logo_RGB.png|221px]] [[Image:Ukmo_logo.gif]] [[Image:Leeds_uni_logo.gif]] [[Image:Unicam_logo.gif]][[Image:2274_ox_brand_blue_rev_rect.png|221px]]&lt;br /&gt;
&lt;br /&gt;
=== UKCA source code available on GitHub ===&lt;br /&gt;
&lt;br /&gt;
UKCA is available under a permissive open-source BSD-3 license and can be found on GitHub here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/MetOffice/ukca&lt;br /&gt;
&lt;br /&gt;
=== UKCA YouTube channel ===&lt;br /&gt;
&lt;br /&gt;
Please visit our YouTube channel at&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/@ukchemistryaerosols&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here you will find video walkthroughs of UKCA training, as well as lectures from previous UKCA training events.&lt;br /&gt;
&lt;br /&gt;
===UKCA Training - January 2026===&lt;br /&gt;
&lt;br /&gt;
The NCAS &#039;&#039;&#039;Introduction to UKCA&#039;&#039;&#039; course took place on the 14th-16th January 2026 at Fairbairn House in Leeds (NCAS HQ). This covered using [[UKCA_Chemistry_and_Aerosol_Tutorials_at_UMvn13.9|UKCA at UM13.9]], and photos from the course are available on [https://www.linkedin.com/posts/national-centre-for-atmospheric-science_studyscience-studywithus-activity-7423033850211053569-JMSq LinkedIn]&lt;br /&gt;
&lt;br /&gt;
===== See Also =====&lt;br /&gt;
&amp;lt;div style=&amp;quot;column-count:2;-moz-column-count:2;-webkit-column-count:2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [http://ncas.nerc.ac.uk NCAS]&lt;br /&gt;
* [http://www.metoffice.gov.uk The Met Office]&lt;br /&gt;
* [http://www.see.leeds.ac.uk/research/icas/ University of Leeds School of Earth and Environment]&lt;br /&gt;
* [http://www.atm.ch.cam.ac.uk/ University of Cambridge Centre for Atmospheric Science]&lt;br /&gt;
* [http://www.atm.ox.ac.uk/ University of Oxford Atmospheric, Oceanic and Planetary Physics]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11084</id>
		<title>UKCA</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11084"/>
		<updated>2026-02-26T11:25:01Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* UKCA YouTube channel */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===&#039;&#039;&#039;Welcome to the UKCA Wiki&#039;&#039;&#039;===&lt;br /&gt;
__NOTOC__&lt;br /&gt;
UKCA is a joint NCAS-Met Office programme part of the NERC-Met Office Joint Climate and Weather Research Programme (JWCRP). Project partners are the Hadley Centre and the Universities of Cambridge, Leeds and Oxford. Our objective is to develop, evaluate and make available a UK community atmospheric chemistry-aerosol global model suitable for a range of topics in climate and environmental change research.&lt;br /&gt;
&lt;br /&gt;
[[Image:NCAS_logo_RGB.png|221px]] [[Image:Ukmo_logo.gif]] [[Image:Leeds_uni_logo.gif]] [[Image:Unicam_logo.gif]][[Image:2274_ox_brand_blue_rev_rect.png|221px]]&lt;br /&gt;
&lt;br /&gt;
=== UKCA source available on GitHub ===&lt;br /&gt;
&lt;br /&gt;
UKCA is available under a permissive open-source BSD-3 license, and can be found on GitHub here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/MetOffice/ukca&lt;br /&gt;
&lt;br /&gt;
=== UKCA YouTube channel ===&lt;br /&gt;
&lt;br /&gt;
Please visit our YouTube channel at&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/@ukchemistryaerosols&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here you will find video walkthroughs of UKCA training, as well as lectures from previous UKCA training events.&lt;br /&gt;
&lt;br /&gt;
===UKCA Training - January 2026===&lt;br /&gt;
&lt;br /&gt;
The NCAS &#039;&#039;&#039;Introduction to UKCA&#039;&#039;&#039; course took place on the 14th-16th January 2026 at Fairbairn House in Leeds (NCAS HQ). This covered using [[UKCA_Chemistry_and_Aerosol_Tutorials_at_UMvn13.9|UKCA at UM13.9]], and photos from the course are available on [https://www.linkedin.com/posts/national-centre-for-atmospheric-science_studyscience-studywithus-activity-7423033850211053569-JMSq LinkedIn]&lt;br /&gt;
&lt;br /&gt;
===== See Also =====&lt;br /&gt;
&amp;lt;div style=&amp;quot;column-count:2;-moz-column-count:2;-webkit-column-count:2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [http://ncas.nerc.ac.uk NCAS]&lt;br /&gt;
* [http://www.metoffice.gov.uk The Met Office]&lt;br /&gt;
* [http://www.see.leeds.ac.uk/research/icas/ University of Leeds School of Earth and Environment]&lt;br /&gt;
* [http://www.atm.ch.cam.ac.uk/ University of Cambridge Centre for Atmospheric Science]&lt;br /&gt;
* [http://www.atm.ox.ac.uk/ University of Oxford Atmospheric, Oceanic and Planetary Physics]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11083</id>
		<title>UKCA</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11083"/>
		<updated>2026-02-26T11:24:52Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===&#039;&#039;&#039;Welcome to the UKCA Wiki&#039;&#039;&#039;===&lt;br /&gt;
__NOTOC__&lt;br /&gt;
UKCA is a joint NCAS-Met Office programme part of the NERC-Met Office Joint Climate and Weather Research Programme (JWCRP). Project partners are the Hadley Centre and the Universities of Cambridge, Leeds and Oxford. Our objective is to develop, evaluate and make available a UK community atmospheric chemistry-aerosol global model suitable for a range of topics in climate and environmental change research.&lt;br /&gt;
&lt;br /&gt;
[[Image:NCAS_logo_RGB.png|221px]] [[Image:Ukmo_logo.gif]] [[Image:Leeds_uni_logo.gif]] [[Image:Unicam_logo.gif]][[Image:2274_ox_brand_blue_rev_rect.png|221px]]&lt;br /&gt;
&lt;br /&gt;
=== UKCA source available on GitHub ===&lt;br /&gt;
&lt;br /&gt;
UKCA is available under a permissive open-source BSD-3 license, and can be found on GitHub here:&lt;br /&gt;
&lt;br /&gt;
* https://github.com/MetOffice/ukca&lt;br /&gt;
&lt;br /&gt;
=== UKCA YouTube channel ===&lt;br /&gt;
&lt;br /&gt;
Please visit our YouTube channel at&lt;br /&gt;
&lt;br /&gt;
* https://www.youtube.com/@ukchemistryaerosols&lt;br /&gt;
&lt;br /&gt;
Here you will find video walkthroughs of UKCA training, as well as lectures from previous UKCA training events.&lt;br /&gt;
&lt;br /&gt;
===UKCA Training - January 2026===&lt;br /&gt;
&lt;br /&gt;
The NCAS &#039;&#039;&#039;Introduction to UKCA&#039;&#039;&#039; course took place on the 14th-16th January 2026 at Fairbairn House in Leeds (NCAS HQ). This covered using [[UKCA_Chemistry_and_Aerosol_Tutorials_at_UMvn13.9|UKCA at UM13.9]], and photos from the course are available on [https://www.linkedin.com/posts/national-centre-for-atmospheric-science_studyscience-studywithus-activity-7423033850211053569-JMSq LinkedIn]&lt;br /&gt;
&lt;br /&gt;
===== See Also =====&lt;br /&gt;
&amp;lt;div style=&amp;quot;column-count:2;-moz-column-count:2;-webkit-column-count:2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [http://ncas.nerc.ac.uk NCAS]&lt;br /&gt;
* [http://www.metoffice.gov.uk The Met Office]&lt;br /&gt;
* [http://www.see.leeds.ac.uk/research/icas/ University of Leeds School of Earth and Environment]&lt;br /&gt;
* [http://www.atm.ch.cam.ac.uk/ University of Cambridge Centre for Atmospheric Science]&lt;br /&gt;
* [http://www.atm.ox.ac.uk/ University of Oxford Atmospheric, Oceanic and Planetary Physics]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11082</id>
		<title>UKCA</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA&amp;diff=11082"/>
		<updated>2026-02-26T11:11:54Z</updated>

		<summary type="html">&lt;p&gt;Nla27: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===&#039;&#039;&#039;Welcome to the UKCA Wiki&#039;&#039;&#039;===&lt;br /&gt;
__NOTOC__&lt;br /&gt;
UKCA is a joint NCAS-Met Office programme part of the NERC-Met Office Joint Climate and Weather Research Programme (JWCRP). Project partners are the Hadley Centre and the Universities of Cambridge, Leeds and Oxford. Our objective is to develop, evaluate and make available a UK community atmospheric chemistry-aerosol global model suitable for a range of topics in climate and environmental change research.&lt;br /&gt;
&lt;br /&gt;
[[Image:NCAS_logo_RGB.png|221px]] [[Image:Ukmo_logo.gif]] [[Image:Leeds_uni_logo.gif]] [[Image:Unicam_logo.gif]][[Image:2274_ox_brand_blue_rev_rect.png|221px]]&lt;br /&gt;
&lt;br /&gt;
=== UKCA/UKESM Science Advances Meeting, Friday March 26th, 2021. ===&lt;br /&gt;
&lt;br /&gt;
The slides for this meeting are available [https://www.ukca.ac.uk/wiki/index.php/Meetings/UKESM_UKCA_science_advances_2021 here].  &lt;br /&gt;
&lt;br /&gt;
=== UKCA User Survey - June 2021 ===&lt;br /&gt;
&lt;br /&gt;
We invite all users of UKCA to complete the &#039;&#039;&#039;[https://forms.gle/rLLmHA5C4Tkv9xvcA UKCA User Survey 2020]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===UKCA Training - January 2026===&lt;br /&gt;
&lt;br /&gt;
The NCAS &#039;&#039;&#039;Introduction to UKCA&#039;&#039;&#039; course took place on the 14th-16th January 2026 at Fairbairn House in Leeds (NCAS HQ). This covered using [[UKCA_Chemistry_and_Aerosol_Tutorials_at_UMvn13.9|UKCA at UM13.9]], and photos from the course are available on [https://www.linkedin.com/posts/national-centre-for-atmospheric-science_studyscience-studywithus-activity-7423033850211053569-JMSq LinkedIn]&lt;br /&gt;
&lt;br /&gt;
===Composition-Climate Interaction Meeting===&lt;br /&gt;
&lt;br /&gt;
The Seventh Annual Composition-Climate Interaction meeting will took place on 20 - 21 March 2019 at the UK Met Office, Exeter, EX1 3PB. The meeting is supported by the UK Met Office, with administrative support kindly provided by the National Centre for Atmospheric Science (NCAS).&lt;br /&gt;
&lt;br /&gt;
The meeting aims were to bring together UK scientists from universities, research centres and the Met Office working on all aspects of atmospheric composition and the interaction with climate and the Earth system, including atmospheric chemistry, aerosols and land surface interactions. The event provided an opportunity to present and discuss the latest UK research on all aspects of atmospheric composition. Invited and open presentations covered new science with the UKCA model, other chemistry-climate models, the UK’s Earth System Model and/or other Earth System Models. A poster session allowed further presentation and discussion on a wide range of research in this area.&lt;br /&gt;
&lt;br /&gt;
There were four oral sessions with the following themes:&lt;br /&gt;
&lt;br /&gt;
* Atmospheric composition in the Earth System&lt;br /&gt;
* Atmosphere-biosphere interactions&lt;br /&gt;
* Regional-scale composition and interactions&lt;br /&gt;
* Model evaluation and observational constraints&lt;br /&gt;
&lt;br /&gt;
* AerChemMIP: There was also a side meeting on the morning of the 20 March 2019, before the start of the main meeting, dedicated to the organisation of the UK community simulations for the CMIP6 project AerChemMIP. &lt;br /&gt;
&lt;br /&gt;
Following the main composition-climate meeting, the new UKCA working groups met on the afternoon of 21 March.&lt;br /&gt;
&lt;br /&gt;
===== See Also =====&lt;br /&gt;
&amp;lt;div style=&amp;quot;column-count:2;-moz-column-count:2;-webkit-column-count:2&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* [http://ncas.nerc.ac.uk NCAS]&lt;br /&gt;
* [http://www.metoffice.gov.uk The Met Office]&lt;br /&gt;
* [http://www.see.leeds.ac.uk/research/icas/ University of Leeds School of Earth and Environment]&lt;br /&gt;
* [http://www.atm.ch.cam.ac.uk/ University of Cambridge Centre for Atmospheric Science]&lt;br /&gt;
* [http://www.atm.ox.ac.uk/ University of Oxford Atmospheric, Oceanic and Planetary Physics]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7&amp;diff=11079</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 7</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7&amp;diff=11079"/>
		<updated>2026-01-26T11:36:45Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Make a branch */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:orange&amp;quot;&amp;gt;MEDIUM&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;1-2 hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=8487s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will do in this tutorial==&lt;br /&gt;
&lt;br /&gt;
In this tutorial you will learn how to make a branch to allow you to include UKCA code changes within the Box Model. You will then include 2 new chemical tracers, ALICE and BOB. &#039;&#039;&#039;You should continue using your UKCA box model suite (i.e. NOT a UM suite) that you last used in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_2|Tutorial 2]].&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
To be able to make UKCA code changes you will need to make a work with the UKCA code repository on the Met Office Science Repository Service (MOSRS), located here&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/&lt;br /&gt;
&lt;br /&gt;
==Working with the UKCA repository==&lt;br /&gt;
&lt;br /&gt;
===Making a ticket===&lt;br /&gt;
&lt;br /&gt;
To work with the UKCA code you will need to first make a new &amp;quot;ticket&amp;quot; on the UKCA trac pages on MOSRS, located here:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/newticket&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
You should ensure that:&lt;br /&gt;
&lt;br /&gt;
* The &#039;&#039;&#039;Milestone&#039;&#039;&#039; is set to &#039;&#039;&#039;Not for builds&#039;&#039;&#039;. If you were developing a code change for the trunk then this would be set to the code version you wanted the change to be available from. You can also select yourself as the owner in the &#039;&#039;&#039;Owner&#039;&#039;&#039; drop-down menu.&lt;br /&gt;
* Once the ticket is created you click &#039;&#039;&#039;Modify Ticket&#039;&#039;&#039; and then select &#039;&#039;&#039;Start work&#039;&#039;&#039; and then &#039;&#039;&#039;Submit changes&#039;&#039;&#039;. This will make the ticket active and owned by you if you haven&#039;t already done so.&lt;br /&gt;
&lt;br /&gt;
An example ticket can be seen at&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/ticket/33&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The ticket is useful to be able to keep a log of your progress with the ticket as well as being able to hold trac wiki pages that can be used to present results and documentation.&lt;br /&gt;
&lt;br /&gt;
In these tutorials we will have tickets and branches for both the UKCA and UM, so you will need to keep track of both.&lt;br /&gt;
&lt;br /&gt;
===Make a branch===&lt;br /&gt;
&lt;br /&gt;
Once you have a ticket you are able to make a branch on the UKCA repository. You should do this in your terminal &lt;br /&gt;
&lt;br /&gt;
 fcm branch-create --type dev -k &amp;lt;span style=&amp;quot;color:magenta&amp;quot;&amp;gt;ticket_number&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;your_branch_name&amp;lt;/span&amp;gt; fcm:ukca.x_tr@&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;um13.9&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;&lt;br /&gt;
!style=&amp;quot;text-align:top;|Setting&lt;br /&gt;
!style=&amp;quot;text-align:top;|Description&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:magenta&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;ticket_number&amp;lt;/tt&amp;gt;&amp;lt;/span&amp;gt;&#039;&#039;&#039; || This is the number of the ticket that you have just created, e.g. 33 etc.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;your_branch_name&amp;lt;/tt&amp;gt;&amp;lt;/span&amp;gt;&#039;&#039;&#039; || This is a descriptive name for your branch, e.g. &amp;lt;tt&amp;gt;ukca_tutorials&amp;lt;/tt&amp;gt;. You &#039;&#039;&#039;should not&#039;&#039;&#039; also include a revision/version number here.&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;REV&amp;lt;/tt&amp;gt;&amp;lt;/span&amp;gt;&#039;&#039;&#039; &amp;lt;br/&amp;gt;i.e. &amp;lt;span style=&amp;quot;color:purple&amp;quot;&amp;gt;&amp;lt;tt&amp;gt;um13.9&amp;lt;/tt&amp;gt;&amp;lt;/span&amp;gt; || This is the trunk revision we are branching from. For these tutorials it is &#039;&#039;&#039;&amp;lt;tt&amp;gt;um13.9&amp;lt;/tt&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Once you have run this command you will be placed into a text editor (as when you copied your Rose suite) to provide a commit message, e.g.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;span&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 --Add your commit message ABOVE - do not alter this line or those below--&lt;br /&gt;
 --FCM message (will be inserted automatically)--&lt;br /&gt;
 #33: Created /main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions from /main/trunk@6356.&lt;br /&gt;
 --Change summary (not part of commit message)--&lt;br /&gt;
 A    &amp;lt;nowiki&amp;gt;https://code.metoffice.gov.uk/svn/ukca/main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should put a descriptive commit message, e.g. something like&lt;br /&gt;
&lt;br /&gt;
 #33 lukeabraham creating branch for UKCA tutorials&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;#33&amp;lt;/tt&amp;gt; will resolve as a link on the trac webpages, allowing you to easily find the ticket, and providing your name is useful to keep track of who made changes. Now you should &#039;&#039;&#039;save&#039;&#039;&#039; and &#039;&#039;&#039;quit&#039;&#039;&#039; the text editor. In the terminal, you will then be presented with &lt;br /&gt;
&lt;br /&gt;
 [info] Source: &amp;lt;nowiki&amp;gt;https://code.metoffice.gov.uk/svn/ukca/main/trunk@6356&amp;lt;/nowiki&amp;gt; (6356)&lt;br /&gt;
 [info] vim: starting commit message editor...&lt;br /&gt;
 Change summary:&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 A    &amp;lt;nowiki&amp;gt;https://code.metoffice.gov.uk/svn/ukca/main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 Commit message is as follows:&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 #33 lukeabraham creating branch for UKCA tutorials&lt;br /&gt;
 #33: Created /main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions from /main/trunk@6356.&lt;br /&gt;
 --------------------------------------------------------------------------------&lt;br /&gt;
 Create the branch?&lt;br /&gt;
 Enter &amp;quot;y&amp;quot; or &amp;quot;n&amp;quot; (or just press &amp;lt;return&amp;gt; for &amp;quot;n&amp;quot;) &lt;br /&gt;
&lt;br /&gt;
You should now type &#039;&#039;&#039;y&#039;&#039;&#039; and press &#039;&#039;&#039;return&#039;&#039;&#039;. This will create the branch. &lt;br /&gt;
&lt;br /&gt;
Now change directory to one where you want to copy your branch to, e.g. &#039;&#039;&#039;cd&#039;&#039;&#039; and then &#039;&#039;&#039;return&#039;&#039;&#039; to take you back to your home directory. You should then select the full URL of the branch and check it out using the command&lt;br /&gt;
&lt;br /&gt;
 fcm co &lt;br /&gt;
&lt;br /&gt;
e.g.&lt;br /&gt;
&lt;br /&gt;
 fcm co &amp;lt;nowiki&amp;gt;https://code.metoffice.gov.uk/svn/ukca/main/branches/dev/&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;[YOUR MOSRS USERNAME]&#039;&#039;&#039;/um13.9_&#039;&#039;&#039;[YOUR BRANCH NAME]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You can then &#039;&#039;&#039;cd&#039;&#039;&#039; into this directory. The UKCA source code is held within the &#039;&#039;&#039;&amp;lt;tt&amp;gt;src&amp;lt;/tt&amp;gt;&#039;&#039;&#039; directory. The code is organised in the following directory structure, with a number of Fortran source files in each directory and sub-directory&lt;br /&gt;
&lt;br /&gt;
 ├── control&lt;br /&gt;
 │   ├── core&lt;br /&gt;
 │   │   ├── diagnostics&lt;br /&gt;
 │   │   ├── interface&lt;br /&gt;
 │   │   ├── misc&lt;br /&gt;
 │   │   └── top_level&lt;br /&gt;
 │   ├── glomap_clim&lt;br /&gt;
 │   │   └── interface&lt;br /&gt;
 │   ├── legacy&lt;br /&gt;
 │   ├── photolysis&lt;br /&gt;
 │   │   └── interface&lt;br /&gt;
 │   └── shared&lt;br /&gt;
 └── science&lt;br /&gt;
     ├── core&lt;br /&gt;
     │   ├── aerosols&lt;br /&gt;
     │   │   ├── activation&lt;br /&gt;
     │   │   ├── deposition&lt;br /&gt;
     │   │   └── glomap&lt;br /&gt;
     │   ├── chemistry&lt;br /&gt;
     │   │   ├── asad&lt;br /&gt;
     │   │   └── deposition&lt;br /&gt;
     │   └── emissions&lt;br /&gt;
     ├── glomap_clim&lt;br /&gt;
     ├── photolysis&lt;br /&gt;
     │   ├── fastjx&lt;br /&gt;
     │   ├── stratospheric&lt;br /&gt;
     │   │   └── photolib&lt;br /&gt;
     │   └── tropospheric&lt;br /&gt;
     ├── plumeria&lt;br /&gt;
     └── radaer&lt;br /&gt;
&lt;br /&gt;
===Use your branch in your suite===&lt;br /&gt;
&lt;br /&gt;
Although we have not made any code changes yet, we will include our branch in our Rose suite now so that the changes will get picked-up the next time we run. To do this, go to the &#039;&#039;&#039;fcm_make &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; env &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Sources&#039;&#039;&#039; panel. You will need to click the green plus symbol (&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;+&amp;lt;/span&amp;gt;&#039;&#039;&#039; for the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_sources&amp;lt;/tt&amp;gt;&#039;&#039;&#039; to add a new line, and then copy and paste the path to the working directory of your branch, e.g.&lt;br /&gt;
&lt;br /&gt;
 /home/vagrant/um13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
It is also possible to specify the repository location on the MOSRS using&lt;br /&gt;
&lt;br /&gt;
 branches/dev/&#039;&#039;&#039;[YOUR MOSRS USERNAME]&#039;&#039;&#039;/um13.9_&#039;&#039;&#039;[YOUR BRANCH NAME]&#039;&#039;&#039;@&#039;&#039;&#039;[REV]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
where the @&#039;&#039;&#039;[REV]&#039;&#039;&#039; (which is optional) is a revision of the branch, e.g. 6356. If a revision is not specified then the latest revision is used. However, this requires you to commit your code before it is picked-up by the model, and so for code development it is often easier to point to a working copy.&lt;br /&gt;
&lt;br /&gt;
The change to the suite is now, e.g.&lt;br /&gt;
&lt;br /&gt;
 Index: app/fcm_make/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/fcm_make/rose-app.conf	(revision 337465)&lt;br /&gt;
 +++ app/fcm_make/rose-app.conf	(working copy)&lt;br /&gt;
 @@ -30,6 +30,6 @@&lt;br /&gt;
  thread_utils=false&lt;br /&gt;
  timer_version=3A&lt;br /&gt;
  ukca_rev=$BASE_UKCA_REV&lt;br /&gt;
 -ukca_sources=/home/vagrant/um13.9_ukca_box&lt;br /&gt;
 +ukca_sources=/home/vagrant/um13.9_ukca_box /home/vagrant/um13.9_ukca_tutorial_solutions&lt;br /&gt;
  um_rev=$BASE_UM_REV&lt;br /&gt;
  um_sources=&lt;br /&gt;
&lt;br /&gt;
So it is uses 2 branches, the new one and the original &amp;lt;tt&amp;gt;/home/vagrant/um13.9_ukca_box&amp;lt;/tt&amp;gt; branch that contains the control routines for the box model. You need both branches for the remainder of these tutorials.&lt;br /&gt;
&lt;br /&gt;
==Include your new chemical tracers==&lt;br /&gt;
&lt;br /&gt;
Before we can consider any chemical reactions with new species, we first need to include these as UKCA chemical tracers. This is done in 4 places:&lt;br /&gt;
&lt;br /&gt;
# In the &amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt; routine, to add them to the master species list&lt;br /&gt;
# In the &amp;lt;tt&amp;gt;ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt; routine, to tell the relevant chemical mechanism how many chemical tracers it has&lt;br /&gt;
# In the &amp;lt;tt&amp;gt;ukca_constants.F90&amp;lt;/tt&amp;gt; routine, to define conversion factors for each species from mass-mixing ratio to mole fraction&lt;br /&gt;
# In the &amp;lt;tt&amp;gt;ukca_cspecies.F90&amp;lt;/tt&amp;gt; routine, to assign these conversion factors to the correct place in the master list of conversion factors&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Task 7.1: Include ALICE and BOB===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 7.1:&#039;&#039;&#039; Include ALICE and BOB as chemical tracers for both the StratTrop and CRI-Strat schemes. You should set the conversion factor for each of these to 1.0. You should test this in your existing box model suite.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that your box model suite should currently be set to CRI-Strat chemistry without aerosols or heterogeneous chemistry. You should not change this at this time as it is useful to test your new chemistry under different conditions.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;tt&amp;gt;src/science/core/chemistry/ukca_chem_master.F90&amp;lt;/tt&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
In this file the list of species used in chemistry is defined by the array &#039;&#039;&#039;&amp;lt;tt&amp;gt;chch_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039;. The list of species is held in a &#039;&#039;derived type&#039;&#039;, of the format:&lt;br /&gt;
&lt;br /&gt;
 chch_t1( &#039;&#039;&#039;N&#039;&#039;&#039;,&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;SPECIES   &#039;&amp;lt;/span&amp;gt;&#039;&#039;&#039;,  &#039;&#039;&#039;X&#039;&#039;&#039;,&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;TYPE      &#039;&amp;lt;/span&amp;gt;&#039;&#039;&#039;,&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;&#039;FAMILY    &#039;&amp;lt;/span&amp;gt;&#039;&#039;&#039;,  &#039;&#039;&#039;D&#039;&#039;&#039;,  &#039;&#039;&#039;W&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;VN&#039;&#039;&#039;),  &amp;amp;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;N&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is an integer. The value should be incremented for each new &#039;&#039;&#039;species&#039;&#039;&#039; that is added so that each species has a unique number, but there can be several entries for each species.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;&#039;SPECIES&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is the name of the species, e.g. &amp;lt;tt&amp;gt;&#039;O3&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;X&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is number of odd atoms. This field is not currently used so please set it to &amp;lt;tt&amp;gt;1&amp;lt;/tt&amp;gt;.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;TYPE&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; describes whether the species is&lt;br /&gt;
*: a tracer (&amp;lt;tt&amp;gt;&#039;TR&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*: an RO2 tracer (&amp;lt;tt&amp;gt;&#039;OO&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*: a steady-state species (&amp;lt;tt&amp;gt;&#039;SS&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*: a constant (&amp;lt;tt&amp;gt;&#039;CT&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/tt&amp;gt;)&lt;br /&gt;
*: a constant field (&amp;lt;tt&amp;gt;&#039;CF&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/tt&amp;gt;). &lt;br /&gt;
*:: For SS, CT, and CF, special code will need to be added.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;&#039;FAMILY&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&#039;&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is the family that the species belongs to. This field is not currently used.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;D&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is &#039;&#039;&#039;1&#039;&#039;&#039; if the species is dry-deposited, and &#039;&#039;&#039;0&#039;&#039;&#039; otherwise.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;W&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is &#039;&#039;&#039;1&#039;&#039;&#039; if the species is wet-deposited, and &#039;&#039;&#039;0&#039;&#039;&#039; otherwise.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; defines the chemistry scheme used, e.g.:&lt;br /&gt;
*: &amp;lt;tt&amp;gt;st&amp;lt;/tt&amp;gt; = Stratosphere-Troposphere scheme&lt;br /&gt;
*: &amp;lt;tt&amp;gt;t&amp;lt;/tt&amp;gt; = Troposphere scheme &lt;br /&gt;
*: &amp;lt;tt&amp;gt;s&amp;lt;/tt&amp;gt; = Stratosphere scheme&lt;br /&gt;
*: &amp;lt;tt&amp;gt;r&amp;lt;/tt&amp;gt; = RAQ scheme&lt;br /&gt;
*: &amp;lt;tt&amp;gt;ol&amp;lt;/tt&amp;gt; = Offline-oxidants scheme&lt;br /&gt;
*: &amp;lt;tt&amp;gt;ti&amp;lt;/tt&amp;gt; = Troposphere-Isoprene scheme&lt;br /&gt;
*: &amp;lt;tt&amp;gt;cs&amp;lt;/tt&amp;gt; = CRI-Strat scheme&lt;br /&gt;
** If the same species is used in multiple schemes these are added, e.g. &amp;lt;tt&amp;gt;st+s+ti+cs&amp;lt;/tt&amp;gt; etc.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;QUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; and &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;DISQUALIFIER&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; define lines to add (or remove) on top of the base chemistry scheme depending on if certain additional options have been chosen, e.g.&lt;br /&gt;
*: 0 = no qualifier/disqualifer used&lt;br /&gt;
*: &amp;lt;tt&amp;gt;a&amp;lt;/tt&amp;gt; = Aerosol chemistry additions required to run GLOMAP-mode&lt;br /&gt;
*: &amp;lt;tt&amp;gt;th&amp;lt;/tt&amp;gt; = Tropospheric heterogeneous reactions&lt;br /&gt;
*: &amp;lt;tt&amp;gt;hp&amp;lt;/tt&amp;gt; = Heterogeneous PSC chemistry&lt;br /&gt;
*: &amp;lt;tt&amp;gt;es&amp;lt;/tt&amp;gt; = Extended stratospheric reactions&lt;br /&gt;
*: &amp;lt;tt&amp;gt;ci&amp;lt;/tt&amp;gt; = use a 3-D CO2 tracer&lt;br /&gt;
*: &amp;lt;tt&amp;gt;eh&amp;lt;/tt&amp;gt; = Extended heterogeneous chemistry&lt;br /&gt;
*: &amp;lt;tt&amp;gt;rn&amp;lt;/tt&amp;gt; = RO2 a non-transported prognostic (StratTrop and CRI-Strat chemistry only)&lt;br /&gt;
*: &amp;lt;tt&amp;gt;rp&amp;lt;/tt&amp;gt; = RO2 permutation chemistry (StratTrop and CRI-Strat chemistry only)&lt;br /&gt;
*: &amp;lt;tt&amp;gt;cs2&amp;lt;/tt&amp;gt; = used for changes from CRI-Strat version 1 to CRI-Strat version 2 chemistry&lt;br /&gt;
*: &amp;lt;tt&amp;gt;ce&amp;lt;/tt&amp;gt; = used for emissions-driven CH4&lt;br /&gt;
*: &amp;lt;tt&amp;gt;rm&amp;lt;/tt&amp;gt; = used to remove reactions from older mechanisms&lt;br /&gt;
** As with the &#039;&#039;&#039;&amp;lt;tt&amp;gt;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;SCHEME&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; codes, these are also additive if required, e.g. &amp;lt;tt&amp;gt;a+th&amp;lt;/tt&amp;gt; etc.&lt;br /&gt;
* &#039;&#039;&#039;&amp;lt;tt&amp;gt;VN&amp;lt;/tt&amp;gt;&#039;&#039;&#039; gives the model version the addition is added at. This is future functionality that will allow for multiple rates to be included in the source-code. &#039;&#039;&#039;The current standard version in UKESM1.1 is &amp;lt;tt&amp;gt;117&amp;lt;/tt&amp;gt;, but for these tutorials we are using &amp;lt;tt&amp;gt;121&amp;lt;/tt&amp;gt;.&#039;&#039;&#039; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The latest version is 132, but in this tutorial we will be adding our chemistry to version 121. If you were incrementing on top of 132, the next version to use would be 140 as we are developing at um13.9 for the um14.0 release.&lt;br /&gt;
&lt;br /&gt;
Therefore to add-in the ALICE and BOB species, we should insert lines similar to this&lt;br /&gt;
&lt;br /&gt;
 ! 285&lt;br /&gt;
 chch_t1(285,&#039;ALICE     &#039;,1,&#039;TR        &#039;,&#039;          &#039;,0,0,st+cs,0,0,121),       &amp;amp;&lt;br /&gt;
 ! 286&lt;br /&gt;
 chch_t1(286,&#039;BOB       &#039;,1,&#039;TR        &#039;,&#039;          &#039;,0,0,st+cs,0,0,121)        &amp;amp;       &lt;br /&gt;
&lt;br /&gt;
into &#039;&#039;&#039;&amp;lt;tt&amp;gt;chch_defs_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, remembering to also &#039;&#039;&#039;increment the size of this array, given by &amp;lt;tt&amp;gt;n_chch_master&amp;lt;/tt&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;tt&amp;gt;src/control/core/top_level/ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
In &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; you will find code blocks which set values for various parameters depending on the scheme used. In this example you will need to scroll down to the sections that define the &#039;&#039;&#039;StratTrop&#039;&#039;&#039; and &#039;&#039;&#039;CRI-Strat&#039;&#039;&#039; chemistry schemes. When adding tracers you will need to increment the value of &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_chem_tracers&amp;lt;/tt&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
For StratTrop this is located in the &#039;&#039;Stratospheric Chemistry&#039;&#039; section and is referenced by using the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_config%l_ukca_strattrop&amp;lt;/tt&amp;gt;&#039;&#039;&#039; logical. For CRI-Strat this is located in the &#039;&#039;CRI-Strat and CRI-Strat 2 chemistry&#039;&#039; section controlled by &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_config%l_ukca_cristrat&amp;lt;/tt&amp;gt;&#039;&#039;&#039; logical. Note also for CRI-Strat there is an additional check on the chemistry version number used, as if this is greater than 119 we are using CRI-Strat version 2. &lt;br /&gt;
&lt;br /&gt;
The IF blocks test against &amp;lt;tt&amp;gt;ukca_config%l_ukca_achem&amp;lt;/tt&amp;gt; (which determines whether or not you require the additional chemistry used to drive the GLOMAP-mode aerosol scheme). You should increment the value of  &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_chem_tracers&amp;lt;/tt&amp;gt;&#039;&#039;&#039; by the number of chemical tracers that you are adding (i.e. 2) in &#039;&#039;&#039;both&#039;&#039;&#039; sections of these IF blocks, as this tracer is not defined to be for aerosol chemistry only. If your additional tracers were only aerosol chemistry additions then you would increment the value of &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_aero_tracers&amp;lt;/tt&amp;gt;&#039;&#039;&#039;. &#039;&#039;&#039;Note&#039;&#039;&#039; that as we are using a chemical version of &#039;&#039;&#039;121&#039;&#039;&#039; we only need to increment the value for CRI-Strat2.&lt;br /&gt;
&lt;br /&gt;
If you are adding to a different chemistry scheme then you will need to make these changes accordingly&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;tt&amp;gt;src/science/core/chemistry/ukca_constants.F90&amp;lt;/tt&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
The unit of the tracers is kg(species)/kg(air) (i.e. mass mixing ratio, or &#039;&#039;&#039;mmr&#039;&#039;&#039;), but inside UKCA these species are converted to mole fraction or volume mixing ratio (&#039;&#039;&#039;vmr&#039;&#039;&#039;). To enable UKCA to do this you will need to add the conversion factor(s) for your new tracer(s) into the code. This is done in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_constants.F90&amp;lt;/tt&amp;gt;&#039;&#039;&#039; module.&lt;br /&gt;
&lt;br /&gt;
Open this file and add the required conversion factor(s). The naming convention for these is:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;m_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&#039;&#039;&#039; for the molecular mass of the new species in g/mol&lt;br /&gt;
* &#039;&#039;&#039;c_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&#039;&#039;&#039; for the converson factor from vmr to mmr&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The c_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt; conversion factor calculated as m_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;/M_air, where M_air=28.97). In actuality, only the c_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt; listing is always required, although you will need to add the M_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt; value later if you are emitting into the new species that you are adding.&lt;br /&gt;
&lt;br /&gt;
For these new species we can add the following blocks, as we have been told to use a conversion factor of 1:&lt;br /&gt;
&lt;br /&gt;
 REAL, PARAMETER :: c_alice      = 1.000&lt;br /&gt;
 REAL, PARAMETER :: c_bob        = 1.000&lt;br /&gt;
&lt;br /&gt;
===&amp;lt;tt&amp;gt;src/science/core/chemistry/ukca_cspecies.F90&amp;lt;/tt&amp;gt;===&lt;br /&gt;
&lt;br /&gt;
After you have added in the &#039;&#039;&#039;c_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&#039;&#039;&#039; conversion factors, you will need to tell UKCA to use them for your species. To do this you need to edit the &#039;&#039;&#039;ukca_cspecies.F90&#039;&#039;&#039; module, which contains code which constructs the &#039;&#039;&#039;c_species&#039;&#039;&#039; array of conversion factors for the advected tracers. This contains a subroutine called &amp;lt;tt&amp;gt;ukca_calc_cspecies&amp;lt;/tt&amp;gt; which has a long block of code that you need to edit to add entries like this:&lt;br /&gt;
&lt;br /&gt;
 WHERE (advt == &#039;ALICE     &#039;) c_species = c_alice&lt;br /&gt;
 WHERE (advt == &#039;BOB       &#039;) c_species = c_bob&lt;br /&gt;
&lt;br /&gt;
The &#039;&#039;&#039;advt&#039;&#039;&#039; array is automatically generated by UKCA at run-time from the &amp;lt;tt&amp;gt;chch_defs_master&amp;lt;/tt&amp;gt; chemistry scheme definition you edited earlier, so your new tracer(s) will exist within it. You need to add in a new line for each of your tracers which sets the value of the &#039;&#039;&#039;c_species&#039;&#039;&#039; array to your individual c_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt; parameter. Add the line(s) in at the end of the block.&lt;br /&gt;
&lt;br /&gt;
As the &amp;lt;tt&amp;gt;c_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt; conversion factors are defined in the &amp;lt;tt&amp;gt;ukca_constants&amp;lt;/tt&amp;gt; module you will need to explicitly add them to the &lt;br /&gt;
&lt;br /&gt;
 USE ukca_constants, ONLY: ...&lt;br /&gt;
&lt;br /&gt;
statement at the top of the module.&lt;br /&gt;
&lt;br /&gt;
===Run your Rose Suite===&lt;br /&gt;
&lt;br /&gt;
You should now run your suite and see what happens with ALICE and BOB. As you have not made any changes (other than to include your UKCA branch) you can run it using&lt;br /&gt;
&lt;br /&gt;
 cylc vr --yes ${PWD##*/}&lt;br /&gt;
 cylc trigger --flow=new ${PWD##*/}//1/fcm_make&lt;br /&gt;
&lt;br /&gt;
which will build and then run. If there are any compile errors you can use the Cylc GUI to view these, make your code changes, and then re-trigger the &amp;lt;tt&amp;gt;fcm_make&amp;lt;/tt&amp;gt; process through the GUI menu.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that initial conditions of ALICE and BOB do not need to be specified at this stage as any species that does not have a concentration explicitly given in &#039;&#039;&#039;&amp;lt;tt&amp;gt;tracer_in_filename&amp;lt;/tt&amp;gt;&#039;&#039;&#039; uses the value given by &#039;&#039;&#039;&amp;lt;tt&amp;gt;tracer_nullval&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, currently set to &#039;&#039;&#039;1e-15&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
===Worked Solution to Task 7.1===&lt;br /&gt;
&lt;br /&gt;
You were given the task:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Include ALICE and BOB as chemical tracers for both the StratTrop and CRI-Strat schemes. You should set the conversion factor for each of these to 1.0. You should test this in your existing box model suite.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=400px heights=350px&amp;gt;&lt;br /&gt;
Image:T03_alice_001.png&lt;br /&gt;
Image:T03_bob_001.png&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
As there is no chemistry occurring for species, and they are initialised to very small values, they will maintain there values throughout the simulation.&lt;br /&gt;
&lt;br /&gt;
The changes to Rose are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337635/d/s/0/4/2/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/fcm_make/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/fcm_make/rose-app.conf	(revision 337465)&lt;br /&gt;
 +++ app/fcm_make/rose-app.conf	(revision 337635)&lt;br /&gt;
 @@ -30,6 +30,6 @@&lt;br /&gt;
  thread_utils=false&lt;br /&gt;
  timer_version=3A&lt;br /&gt;
  ukca_rev=$BASE_UKCA_REV&lt;br /&gt;
 -ukca_sources=/home/vagrant/um13.9_ukca_box&lt;br /&gt;
 +ukca_sources=/home/vagrant/um13.9_ukca_box /home/vagrant/um13.9_ukca_tutorial_solutions&lt;br /&gt;
  um_rev=$BASE_UM_REV&lt;br /&gt;
  um_sources=&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task07.1/Task07.1_rose.patch&lt;br /&gt;
&lt;br /&gt;
The changes to UKCA are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/changeset/7770/main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: src/control/core/top_level/ukca_config_defs_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7769)&lt;br /&gt;
 +++ src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7770)&lt;br /&gt;
 @@ -362,7 +362,7 @@&lt;br /&gt;
            [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;HCHO      &#039;,                &amp;amp;&lt;br /&gt;
              &#039;C2H6      &#039;,&#039;C3H8      &#039;,&#039;Me2CO     &#039;,&#039;MeCHO     &#039;,               &amp;amp;&lt;br /&gt;
              &#039;C5H8      &#039;,&#039;MeOH      &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 -      n_chem_tracers = 71         ! No chem tracers&lt;br /&gt;
 +      n_chem_tracers = 73         ! No chem tracers&lt;br /&gt;
        nr_therm       = 220        ! thermal reactions&lt;br /&gt;
        nr_phot        = 55         ! photolytic (ATA)&lt;br /&gt;
  &lt;br /&gt;
 @@ -389,7 +389,7 @@&lt;br /&gt;
        ELSE&lt;br /&gt;
          n_aero_tracers = 12&lt;br /&gt;
        END IF&lt;br /&gt;
 -      n_chem_tracers = 71         ! No chem tracers&lt;br /&gt;
 +      n_chem_tracers = 73         ! No chem tracers&lt;br /&gt;
        IF (ukca_config%l_ukca_trophet) THEN&lt;br /&gt;
          nr_therm     = 241        ! thermal reactions&lt;br /&gt;
        ELSE&lt;br /&gt;
 @@ -453,7 +453,7 @@&lt;br /&gt;
  ELSE IF (ukca_config%l_ukca_cristrat) THEN&lt;br /&gt;
    IF (.NOT. ukca_config%l_ukca_achem) THEN ! Without aerosol&lt;br /&gt;
      IF (ukca_config%i_ukca_chem_version &amp;gt;= 119) THEN  ! CRI-Strat 2 w/o aerosol&lt;br /&gt;
 -      n_chem_tracers  = 171   ! advected chemical tracers (+9, -4)&lt;br /&gt;
 +      n_chem_tracers  = 173   ! advected chemical tracers (+9, -4)&lt;br /&gt;
        n_aero_tracers  = 0    ! DMS, SO2... aerosol precursor species&lt;br /&gt;
        nr_therm        = 625  ! thermal reactions (+45 bimol, +8 termol)&lt;br /&gt;
        nr_phot         = 135  ! photolytic reacs&lt;br /&gt;
 @@ -476,7 +476,7 @@&lt;br /&gt;
          &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
    ELSE ! With aerosol&lt;br /&gt;
      IF (ukca_config%i_ukca_chem_version &amp;gt;= 119) THEN  ! CRI-Strat 2 with aerosol&lt;br /&gt;
 -      n_chem_tracers  = 171   ! advected chemical tracers (+9, -4)&lt;br /&gt;
 +      n_chem_tracers  = 173   ! advected chemical tracers (+9, -4)&lt;br /&gt;
        n_aero_tracers  = 17    ! DMS, SO2... aerosol precursor species&lt;br /&gt;
        nr_phot         = 137     ! photolytic reacs&lt;br /&gt;
        IF (ukca_config%l_ukca_trophet) THEN&lt;br /&gt;
 Index: src/science/core/chemistry/ukca_chem_master.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/ukca_chem_master.F90	(revision 7769)&lt;br /&gt;
 +++ src/science/core/chemistry/ukca_chem_master.F90	(revision 7770)&lt;br /&gt;
 @@ -103,7 +103,7 @@&lt;br /&gt;
                                    ! later ones&lt;br /&gt;
  &lt;br /&gt;
  ! Define size of master chemistry&lt;br /&gt;
 -INTEGER, PARAMETER :: n_chch_master = 357 ! number of known species&lt;br /&gt;
 +INTEGER, PARAMETER :: n_chch_master = 359 ! number of known species&lt;br /&gt;
  INTEGER, PARAMETER :: n_het_master  =  18 ! number of heterogeneous reactions&lt;br /&gt;
  INTEGER, PARAMETER :: n_dry_master  = 162 ! number of dry deposition reactions&lt;br /&gt;
  INTEGER, PARAMETER :: n_wet_master  = 160 ! number of wet deposition reactions&lt;br /&gt;
 @@ -919,7 +919,11 @@&lt;br /&gt;
  ! 283&lt;br /&gt;
  chch_t1(283,&#039;MACO3     &#039;,1,&#039;OO        &#039;,&#039;          &#039;,0,0,cs,rp,0,119),         &amp;amp;&lt;br /&gt;
  ! 284&lt;br /&gt;
 -chch_t1(284,&#039;SEC_ORG_I &#039;,1,&#039;TR        &#039;,&#039;          &#039;,1,1,st,a,0,132)           &amp;amp;&lt;br /&gt;
 +chch_t1(284,&#039;SEC_ORG_I &#039;,1,&#039;TR        &#039;,&#039;          &#039;,1,1,st,a,0,132),          &amp;amp;&lt;br /&gt;
 +! 285&lt;br /&gt;
 +chch_t1(285,&#039;ALICE     &#039;,1,&#039;TR        &#039;,&#039;          &#039;,0,0,st+cs,0,0,121),       &amp;amp;&lt;br /&gt;
 +! 286&lt;br /&gt;
 +chch_t1(286,&#039;BOB       &#039;,1,&#039;TR        &#039;,&#039;          &#039;,0,0,st+cs,0,0,121)        &amp;amp;       &lt;br /&gt;
  ]&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
 Index: src/science/core/chemistry/ukca_constants.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/ukca_constants.F90	(revision 7769)&lt;br /&gt;
 +++ src/science/core/chemistry/ukca_constants.F90	(revision 7770)&lt;br /&gt;
 @@ -372,6 +372,10 @@&lt;br /&gt;
  !                            Same as Sec_org&lt;br /&gt;
  REAL, PARAMETER :: c_cri        = 5.1782&lt;br /&gt;
  &lt;br /&gt;
 +! define conversion factors for tutorial species&lt;br /&gt;
 +REAL, PARAMETER :: c_alice      = 1.000&lt;br /&gt;
 +REAL, PARAMETER :: c_bob        = 1.000&lt;br /&gt;
 +&lt;br /&gt;
  !     molecular masses in g/mol of emitted species,&lt;br /&gt;
  !     for budget calculations&lt;br /&gt;
  REAL, PARAMETER :: m_ho2     =  33.007&lt;br /&gt;
 Index: src/science/core/chemistry/ukca_cspecies.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/ukca_cspecies.F90	(revision 7769)&lt;br /&gt;
 +++ src/science/core/chemistry/ukca_cspecies.F90	(revision 7770)&lt;br /&gt;
 @@ -184,7 +184,7 @@&lt;br /&gt;
      c_txcarb22, c_ru12pan, c_rtn26pan, c_aroh14, c_aroh17, c_arnoh14,          &amp;amp;&lt;br /&gt;
      c_arnoh17, c_anhy, c_cri,c_dhpcarb9, c_hpucarb12, c_hucarb9, c_iepox,      &amp;amp;&lt;br /&gt;
      c_hmml, c_dhpr12ooh, c_dhcarb9, c_ru12no3, c_ru10no3, c_dhpr12o2,          &amp;amp;&lt;br /&gt;
 -    c_ru10ao2, c_maco3&lt;br /&gt;
 +    c_ru10ao2, c_maco3, c_alice, c_bob&lt;br /&gt;
  &lt;br /&gt;
  &lt;br /&gt;
  USE asad_mod,        ONLY: advt, nadvt, speci, jpctr, jpspec&lt;br /&gt;
 @@ -466,6 +466,10 @@&lt;br /&gt;
  WHERE (advt == &#039;PASSIVE O3&#039;) c_species = 1.0&lt;br /&gt;
  WHERE (advt == &#039;AGE OF AIR&#039;) c_species = 1.0&lt;br /&gt;
  &lt;br /&gt;
 +! tutorial species&lt;br /&gt;
 +WHERE (advt == &#039;ALICE     &#039;) c_species = c_alice&lt;br /&gt;
 +WHERE (advt == &#039;BOB       &#039;) c_species = c_bob&lt;br /&gt;
 +&lt;br /&gt;
  ! non-advected tracers&lt;br /&gt;
  c_na_species=0.0&lt;br /&gt;
  WHERE (nadvt == &#039;OH        &#039;) c_na_species = c_oh&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task07.1/Task07.1_ukca.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task07.1/&lt;br /&gt;
&lt;br /&gt;
===Task 7.2: Test your changes in another chemistry scheme===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 7.2:&#039;&#039;&#039; Change the chemistry and aerosol settings to test these changes with StratTrop chemistry, GLOMAP-mode aerosols, and with heterogeneous chemistry turned back on.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Solution &lt;br /&gt;
|-&lt;br /&gt;
| Change the value of &amp;lt;tt&amp;gt;i_ukca_chem&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;&amp;lt;tt&amp;gt;51&amp;lt;/tt&amp;gt;&#039;&#039;&#039; (StratTrop)&lt;br /&gt;
|-&lt;br /&gt;
| Change the value of &amp;lt;tt&amp;gt;l_ukca_chem_aero&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;True&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Ensure that the value of &amp;lt;tt&amp;gt;l_ukca_mode&amp;lt;/tt&amp;gt; is &#039;&#039;&#039;True&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Change the value of &amp;lt;tt&amp;gt;l_ukca_het_psc&amp;lt;/tt&amp;gt; to be &#039;&#039;&#039;True&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that changing these setting will automatically make lots of other changes to variables within Rose. &#039;&#039;&#039;&#039;&#039;You do not need to worry about these additional changes.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
As you are only making namelist changes there is no need to recompile your box model.&lt;br /&gt;
&lt;br /&gt;
====Worked Solution to Task 7.2====&lt;br /&gt;
&lt;br /&gt;
You were asked to:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Change the chemistry and aerosol settings to test these changes with StratTrop chemistry, GLOMAP-mode aerosols, and with heterogeneous chemistry turned back on.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The changes to Rose are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337643/d/s/0/4/2/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/ukca/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/ukca/rose-app.conf	(revision 337635)&lt;br /&gt;
 +++ app/ukca/rose-app.conf	(revision 337643)&lt;br /&gt;
 @@ -479,14 +479,14 @@&lt;br /&gt;
  !!i_ageair_reset_method=1&lt;br /&gt;
  !!i_inferno_emi=&lt;br /&gt;
  !!i_mode_bln_param_method=0&lt;br /&gt;
 -!!i_mode_nzts=15&lt;br /&gt;
 -!!i_mode_setup=2&lt;br /&gt;
 -!!i_ukca_activation_scheme=0&lt;br /&gt;
 -i_ukca_chem=59&lt;br /&gt;
 +i_mode_nzts=15&lt;br /&gt;
 +i_mode_setup=2&lt;br /&gt;
 +i_ukca_activation_scheme=0&lt;br /&gt;
 +i_ukca_chem=51&lt;br /&gt;
  i_ukca_chem_version=121&lt;br /&gt;
  i_ukca_conserve_method=3&lt;br /&gt;
 -!!i_ukca_dms_flux=1&lt;br /&gt;
 -!!i_ukca_hetconfig=0&lt;br /&gt;
 +i_ukca_dms_flux=1&lt;br /&gt;
 +i_ukca_hetconfig=0&lt;br /&gt;
  !!i_ukca_hiorder_scheme=0&lt;br /&gt;
  i_ukca_light_param=0&lt;br /&gt;
  !!i_ukca_nwbins=20&lt;br /&gt;
 @@ -510,8 +510,8 @@&lt;br /&gt;
  !!l_dust_mp_slinn_impc_scav=.false.&lt;br /&gt;
  l_environ_jo2=.false.&lt;br /&gt;
  l_environ_jo2b=.false.&lt;br /&gt;
 -!!l_mode_bhn_on=.true.&lt;br /&gt;
 -!!l_mode_bln_on=.false.&lt;br /&gt;
 +l_mode_bhn_on=.true.&lt;br /&gt;
 +l_mode_bln_on=.false.&lt;br /&gt;
  !!l_no3_prod_in_aero_step=.false.&lt;br /&gt;
  l_ukca=.true.&lt;br /&gt;
  l_ukca_ageair=.false.&lt;br /&gt;
 @@ -519,7 +519,7 @@&lt;br /&gt;
  !!l_ukca_aie2=.false.&lt;br /&gt;
  l_ukca_asad_columns=.true.&lt;br /&gt;
  l_ukca_asad_full=.false.&lt;br /&gt;
 -l_ukca_chem_aero=.false.&lt;br /&gt;
 +l_ukca_chem_aero=.true.&lt;br /&gt;
  !!l_ukca_classic_hetchem=.false.&lt;br /&gt;
  !!l_ukca_coarse_no3_prod=.true.&lt;br /&gt;
  l_ukca_ddep_lev1=.false.&lt;br /&gt;
 @@ -527,59 +527,59 @@&lt;br /&gt;
  l_ukca_debug_asad=.true.&lt;br /&gt;
  l_ukca_dry_dep_so2wet=.false.&lt;br /&gt;
  !!l_ukca_dust=.false.&lt;br /&gt;
 -!!l_ukca_emsdrvn_ch4=.false.&lt;br /&gt;
 +l_ukca_emsdrvn_ch4=.false.&lt;br /&gt;
  !!l_ukca_fine_no3_prod=.true.&lt;br /&gt;
  l_ukca_h2o_feedback=.false.&lt;br /&gt;
 -l_ukca_het_psc=.false.&lt;br /&gt;
 +l_ukca_het_psc=.true.&lt;br /&gt;
  l_ukca_ibvoc=.false.&lt;br /&gt;
 -!!l_ukca_inferno=.false.&lt;br /&gt;
 +l_ukca_inferno=.false.&lt;br /&gt;
  !!l_ukca_inferno_ch4=.false.&lt;br /&gt;
  l_ukca_intdd=.true.&lt;br /&gt;
  l_ukca_intph=.false.&lt;br /&gt;
 -!!l_ukca_limit_nat=.false.&lt;br /&gt;
 +l_ukca_limit_nat=.false.&lt;br /&gt;
  l_ukca_linox_scaling=.false.&lt;br /&gt;
 -!!l_ukca_mode=.false.&lt;br /&gt;
 +l_ukca_mode=.true.&lt;br /&gt;
  l_ukca_prescribech4=.false.&lt;br /&gt;
  !!l_ukca_prim_moc=.false.&lt;br /&gt;
 -!!l_ukca_primbcoc=.false.&lt;br /&gt;
 +l_ukca_primbcoc=.false.&lt;br /&gt;
  !!l_ukca_primdu=.false.&lt;br /&gt;
 -!!l_ukca_primss=.false.&lt;br /&gt;
 -!!l_ukca_primsu=.false.&lt;br /&gt;
 +l_ukca_primss=.false.&lt;br /&gt;
 +l_ukca_primsu=.false.&lt;br /&gt;
  l_ukca_qch4inter=.false.&lt;br /&gt;
  l_ukca_quasinewton=.false.&lt;br /&gt;
 -!!l_ukca_radaer=.false.&lt;br /&gt;
 +l_ukca_radaer=.false.&lt;br /&gt;
  !!l_ukca_radaer_sustrat=.false.&lt;br /&gt;
  l_ukca_radch4=.false.&lt;br /&gt;
 -!!l_ukca_radf11=.false.&lt;br /&gt;
 -!!l_ukca_radf113=.false.&lt;br /&gt;
 -!!l_ukca_radf12=.false.&lt;br /&gt;
 -!!l_ukca_radf22=.false.&lt;br /&gt;
 +l_ukca_radf11=.false.&lt;br /&gt;
 +l_ukca_radf113=.false.&lt;br /&gt;
 +l_ukca_radf12=.false.&lt;br /&gt;
 +l_ukca_radf22=.false.&lt;br /&gt;
  l_ukca_radn2o=.false.&lt;br /&gt;
  l_ukca_rado3=.false.&lt;br /&gt;
  l_ukca_ro2_ntp=.true.&lt;br /&gt;
  l_ukca_ro2_perm=.true.&lt;br /&gt;
 -!!l_ukca_sa_clim=.false.&lt;br /&gt;
 -!!l_ukca_scale_biom_aer_ems=.false.&lt;br /&gt;
 +l_ukca_sa_clim=.false.&lt;br /&gt;
 +l_ukca_scale_biom_aer_ems=.false.&lt;br /&gt;
  !!l_ukca_scale_marine_pom_ems=.false.&lt;br /&gt;
  !!l_ukca_scale_sea_salt_ems=.false.&lt;br /&gt;
 -!!l_ukca_scale_seadms_ems=.false.&lt;br /&gt;
 +l_ukca_scale_seadms_ems=.false.&lt;br /&gt;
  !!l_ukca_scale_soa_yield_isop=.false.&lt;br /&gt;
 -!!l_ukca_scale_soa_yield_mt=.false.&lt;br /&gt;
 +l_ukca_scale_soa_yield_mt=.false.&lt;br /&gt;
  l_ukca_set_trace_gases=.true.&lt;br /&gt;
  !!l_ukca_sfix=.false.&lt;br /&gt;
 -!!l_ukca_so2ems_expvolc=.false.&lt;br /&gt;
 +l_ukca_so2ems_expvolc=.false.&lt;br /&gt;
  !!l_ukca_so2ems_plumeria=.false.&lt;br /&gt;
  !!l_ukca_src_in_conservation=.true.&lt;br /&gt;
 -!!l_ukca_trophet=.false.&lt;br /&gt;
 +l_ukca_trophet=.false.&lt;br /&gt;
  !!l_ukca_use_background_aerosol=.false.&lt;br /&gt;
  lightnox_scale_fac=0.5&lt;br /&gt;
  !!marine_pom_ems_scaling=0&lt;br /&gt;
  !!max_ageair_reset_height=0.0&lt;br /&gt;
  !!max_ageair_reset_level=0&lt;br /&gt;
 -!!mode_activation_dryr=37.5&lt;br /&gt;
 -!!mode_aitsol_cvscav=0.5&lt;br /&gt;
 -!!mode_incld_so2_rfrac=0.25&lt;br /&gt;
 -!!mode_parfrac=2.5&lt;br /&gt;
 +mode_activation_dryr=37.5&lt;br /&gt;
 +mode_aitsol_cvscav=0.5&lt;br /&gt;
 +mode_incld_so2_rfrac=0.25&lt;br /&gt;
 +mode_parfrac=2.5&lt;br /&gt;
  !!nerupt=0&lt;br /&gt;
  !!nit=0&lt;br /&gt;
  nrsteps=45&lt;br /&gt;
 @@ -640,7 +640,7 @@&lt;br /&gt;
  l_fix_ukca_impscav=.false.&lt;br /&gt;
  !!l_fix_ukca_offox_h2o_fac=.false.&lt;br /&gt;
  l_fix_ukca_water_content=.false.&lt;br /&gt;
 -!!l_improve_aero_drydep=.false.&lt;br /&gt;
 +l_improve_aero_drydep=.false.&lt;br /&gt;
  !!l_improve_cv_cons=.false.&lt;br /&gt;
  l_methox_fix=.true.&lt;br /&gt;
  &lt;br /&gt;
 @@ -649,5 +649,5 @@&lt;br /&gt;
  !!a_convect_segments=-99&lt;br /&gt;
  !!a_convect_trac_seg_size=1&lt;br /&gt;
  ukca_chem_seg_size=1&lt;br /&gt;
 -!!ukca_mode_seg_size=1&lt;br /&gt;
 +ukca_mode_seg_size=1&lt;br /&gt;
  ussp_seg_size=1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task07.2/Task07.2_rose.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task07.2/&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Make a ticket at the UKCA trac pages&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Make a UKCA branch&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Include this branch within your Rose suite&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Make your code changes to &amp;lt;tt&amp;gt;ukca_chem_master.F90&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;ukca_constants.F90&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;ukca_cspecies.F90&amp;lt;/tt&amp;gt;&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Ensure that you are using the correct value of &amp;lt;tt&amp;gt;i_ukca_chem_version&amp;lt;/tt&amp;gt;&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Test with multiple chemistry schemes as required&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 8|Tutorial 8]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_10&amp;diff=11078</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 10</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_10&amp;diff=11078"/>
		<updated>2026-01-13T13:51:19Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* Diagnostics */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;HARD&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;2 or more hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=13444s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
This is a continuation of what you learned in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]], where you regridded a set of emissions to the UM grid and included them for an existing tracers. During this tutorial you will make new UKCA netCDF emissions files and then you will learn how to add new emissions into UKCA so that they emit into one of your new tracers.&lt;br /&gt;
&lt;br /&gt;
At the end of the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_9|previous tutorial]] you will now know how to create new tracers in the UM for use by UKCA. However, while the chemical reaction(s) added in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_8|tutorial 8]] are active, as the tracers have been initialised to very small values these are not behaving as could be expected. This tutorial will teach you how to create an emissions file that the UKCA will read, and that you can then tell UKCA to use and emit into your tracer(s). These emissions will then become the higher concentrations that will drive the new chemistry.&lt;br /&gt;
&lt;br /&gt;
This example only deals with a single field. For a more detailed examples on changing emissions for all species, please see the [[Emissions for ACSIS]] webpage.&lt;br /&gt;
&lt;br /&gt;
==Task 10.1: Create a new NetCDF emissions file ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;Task 10.1:&#039;&#039;&#039; In the &amp;lt;pre&amp;gt;Tutorials/UMvn13.9/Task10.1&amp;lt;/pre&amp;gt; directory there is the file &#039;&#039;&#039;Emissions_of_ALICE.nc&#039;&#039;&#039; which is a 0.5x0.5 degree resolution surface emission field. You should regrid this file to the &#039;&#039;&#039;N48 ENDGame grid&#039;&#039;&#039;, and output it as a netCDF file that has the required netCDF metadata for a climatological surface emission without any diurnal cycle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should take the script you used in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]] and adapt it to work with this new file and new species that is being emitted into.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hints &lt;br /&gt;
|-&lt;br /&gt;
| Remember to change the location of the &amp;lt;tt&amp;gt;emiss&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
|-&lt;br /&gt;
| Remember to change the values of the attributes &amp;lt;tt&amp;gt;var_name&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;long_name&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;tracer_name&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| Remember to change the name of the output file set by &amp;lt;tt&amp;gt;outpath&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Solution to Task10.1==&lt;br /&gt;
&lt;br /&gt;
You were given the task:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;In the &amp;lt;pre&amp;gt;Tutorials/UMvn13.9/Task10.1&amp;lt;/pre&amp;gt; directory there is the file &#039;&#039;&#039;Emissions_of_ALICE.nc&#039;&#039;&#039; which is a 0.5x0.5 degree resolution surface emission field. You should regrid this file to the &#039;&#039;&#039;N48 ENDGame grid&#039;&#039;&#039;, and output it as a netCDF file that has the required netCDF metadata for a climatological surface emission without any diurnal cycle.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
and were given the hints:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Remember to change the location of the &amp;lt;tt&amp;gt;emiss&amp;lt;/tt&amp;gt; file.&#039;&#039;&lt;br /&gt;
* &#039;&#039;Remember to change the values of the attributes &amp;lt;tt&amp;gt;var_name&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;long_name&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;tracer_name&amp;lt;/tt&amp;gt;.&#039;&#039;&lt;br /&gt;
* &#039;&#039;Remember to change the name of the output file set by &amp;lt;tt&amp;gt;outpath&amp;lt;/tt&amp;gt;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It should be straight-forward adapt your existing script to work for ALICE. If you are having problems, a solution script can be found at&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;[https://github.com/theabro/ukca/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_UM-UKCA_T101.ipynb Solution to Task 10.1]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the file has been regridded, you should see the output looking like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_alice_05x05.png|ALICE emissions prior to regridding. &lt;br /&gt;
Image:UM139_alice_n48e.png|ALICE emissions after regridding.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A file that has been produced by the above script can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task10.1/ukca_emiss_ALICE.nc&lt;br /&gt;
&lt;br /&gt;
==Task 10.2: make the required code changes to add your emission into UKCA==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 10.2:&#039;&#039;&#039; You should now make the UKCA code changes to add your emission into the &#039;&#039;&#039;ALICE&#039;&#039;&#039; tracer. Use STASH code &amp;lt;tt&amp;gt;s50i315&amp;lt;/tt&amp;gt; for the diagnostic and output this to the &#039;&#039;&#039;UPA&#039;&#039;&#039; stream as a 3-hour mean.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| You will need to add-in the molar mass of ALICE. You can calculate this from the mass of air and the conversion factor defined in [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_7#Task_7.1:_Include_ALICE_and_BOB|Task 7.1]].&amp;lt;br/&amp;gt; You will need to add code to allow a diagnostic of the emission to be output.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Rose changes==&lt;br /&gt;
&lt;br /&gt;
===Include your new emissions file===&lt;br /&gt;
&lt;br /&gt;
You should include your new emissions file as you did in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5#Rose_changes|Task 5.2]].&lt;br /&gt;
&lt;br /&gt;
===Diagnostics===&lt;br /&gt;
&lt;br /&gt;
You should make your STASHmaster_A entry and add this to the STASH panel as you have done in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_4|Tutorial 4]] and [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]]. Be careful when you make this entry. You should ensure that the option codes are valid for the chemistry scheme you are using (StratTrop). There are other STASH entries that define the levels used, so if you copy an existing STASHmaster entry, ensure that it is for a surface emission. &lt;br /&gt;
&lt;br /&gt;
You won&#039;t need to make any changes to the location of the STASHmaster file &#039;&#039;&#039;so long as you commit your changes prior to running the suite&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Note that here you are making the diagnostic entry before you have made code changes that will populate this field, which are done below.&lt;br /&gt;
&lt;br /&gt;
==Code changes==&lt;br /&gt;
&lt;br /&gt;
Code changes are split between changes that need to be made to the UM and those that are made to UKCA. &lt;br /&gt;
&lt;br /&gt;
===UKCA code changes===&lt;br /&gt;
&lt;br /&gt;
====Code changes to use the new emissions====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/top_level/ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
You will need to edit the &#039;&#039;&#039;&amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array for the scheme that you are using to include the new species that you are emitting into. By convention, these are ordered as 2D fields followed by 3D fields, with chemical emissions first and then aerosol emissions, although this order is unimportant other than the fact that the 2D emissions should be placed before the 3D emissions of &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;SO2_nat&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;BC_biomass&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;OC_biomass&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, and &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;NO_aircrft&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; if these are present. &lt;br /&gt;
&lt;br /&gt;
If the tracer is purely chemical and is always on (i.e. is not included only when aerosol chemistry is turned on) then you will need to put this in both &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt; arrays (i.e. one for the chemistry scheme without aerosols and one with aerosols). Also remember to increment this size of the &#039;&#039;&#039;&amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array, given by &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_chem_emissions&amp;lt;/tt&amp;gt;&#039;&#039;&#039; variable. &lt;br /&gt;
&lt;br /&gt;
For this example you will need to make changes for StratTrop &#039;&#039;and&#039;&#039; CRI-Strat (version 2) schemes, both with an without aerosol chemistry.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/science/core/chemistry/ukca_constants.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
You will need to define the &#039;&#039;&#039;&amp;lt;tt&amp;gt;M_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; for the emitted species, e.g. &amp;lt;tt&amp;gt;m_alice&amp;lt;/tt&amp;gt;. The value of this should be consistent with the &#039;&#039;&#039;&amp;lt;tt&amp;gt;C_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; value set in the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7#src.2Fscience.2Fcore.2Fchemistry.2Fukca_constants.F90 | adding new tracers tutorial]].&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/science/core/chemistry/get_molmass_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
You will need to add to the &#039;&#039;&#039;&amp;lt;tt&amp;gt;species_name&amp;lt;/tt&amp;gt;&#039;&#039;&#039; &amp;lt;tt&amp;gt;CASE&amp;lt;/tt&amp;gt; statement, to include a line such as this&lt;br /&gt;
&lt;br /&gt;
 CASE (&#039;ALICE     &#039;)&lt;br /&gt;
   get_molmass = m_alice&lt;br /&gt;
&lt;br /&gt;
for each new species that you are emitting into.&lt;br /&gt;
&lt;br /&gt;
As the &amp;lt;tt&amp;gt;M_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt; conversion factors are defined in the &amp;lt;tt&amp;gt;ukca_constants&amp;lt;/tt&amp;gt; module you will need to explicitly add them to the &lt;br /&gt;
&lt;br /&gt;
 USE ukca_constants, ONLY: ...&lt;br /&gt;
&lt;br /&gt;
statement at the top of the module.&lt;br /&gt;
&lt;br /&gt;
====Code changes for the emissions diagnostics====&lt;br /&gt;
&lt;br /&gt;
Additionally, by default, when emitting into a new species, the code requires you to create a diagnostic for these emissions as well. These changes are also considered below.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/diagnostics/ukca_emdiags_struct_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
This routine contains the derived type that holds the emissions fluxes for all species. You will need to add a logical (used to determine whether the output has been requested in STASH) and a pointer to a 2D or 3D array that will hold the emissions flux.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
In this routine you will need to add the initialisation of the logical added in &amp;lt;tt&amp;gt;ukca_emdiags_struct_mod.F90&amp;lt;/tt&amp;gt;, as well as a small block of code that copies the 2D/3D &amp;lt;tt&amp;gt;em_diags&amp;lt;/tt&amp;gt; data into the newly created pointer in the derived type. The logical will also need to be set to &amp;lt;tt&amp;gt;.TRUE.&amp;lt;/tt&amp;gt; if STASH output has been requested (determined by the &amp;lt;tt&amp;gt;sf(item,section)&amp;lt;/tt&amp;gt; look-up array).&lt;br /&gt;
&lt;br /&gt;
Here is it easiest to copy an existing code-block and make the necessary changes for your new emission.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/diagnostics/ukca_emiss_diags_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
In this routine you will add a unique code-block for this diagnostic that copies the pointer in the derived type into the &amp;lt;tt&amp;gt;stashwork&amp;lt;/tt&amp;gt; array using the &amp;lt;tt&amp;gt;copydiag&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;copydiag_3d&amp;lt;/tt&amp;gt; routines. The &amp;lt;tt&amp;gt;stashwork&amp;lt;/tt&amp;gt; array contains all the fields that will be output through STASH.&lt;br /&gt;
&lt;br /&gt;
Here is it easiest to copy an existing code-block and make the necessary changes for your new emission.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/science/core/emissions/ukca_emiss_ctl_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
The call to &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_emiss_diags&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is protected by an IF statement, and you&#039;ll need to add a check to the entry in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;sf&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array to see if the diagnostic is on. This should be of the format &#039;&#039;&#039;&amp;lt;tt&amp;gt;sf(N,section)&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, where &#039;&#039;&#039;N&#039;&#039;&#039; is the item number of your new emissions diagnostic.&lt;br /&gt;
&lt;br /&gt;
===UM code changes===&lt;br /&gt;
&lt;br /&gt;
These code changes need to be made in a UM branch, and relate to the emissions diagnostics.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/ukca_interface/get_emdiag_stash_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Once you have decided on the STASH code to use, you need to add the species and 3-digit &#039;&#039;&#039;item&#039;&#039;&#039; code to this routine in the CASE statement.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;STASHmaster_A&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;STASHmaster-meta.conf&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
These files are contained in the &amp;lt;tt&amp;gt;rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/&amp;lt;/tt&amp;gt; directory of the UM.&lt;br /&gt;
&lt;br /&gt;
You should add a diagnostic in a similar way to the [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_7#STASHmaster_A|section 34 tracers]], but in this case to &#039;&#039;&#039;section 50&#039;&#039;&#039;. It is best to copy an existing 2D (or 3D) emissions diagnostic specification into an empty slot at the end of the emissions list (e.g. section 50, item 315 for instance), and make only the required edits to that.&lt;br /&gt;
&lt;br /&gt;
Once you have made these code changes you should &#039;&#039;&#039;commit your branch&#039;&#039;&#039; to ensure that these STASHmaster changes are picked-up by your suite correctly when running.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that 2D emissions diagnostics won&#039;t need to have a corresponding pressure-level field added in section 52. Only 3D emissions diagnostics fields will need this.&lt;br /&gt;
&lt;br /&gt;
==Worked Solution to Task 10.2==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_s34i498_T102.png|Surface level (20m) concentrations (kg/kg) of ALICE after emissions have been applied.&lt;br /&gt;
Image:UM139_s34i499_T102.png|Surface level (20m) concentrations (kg/kg) of BOB after emissions have been applied.&lt;br /&gt;
Image:UM139_s50i315_T102.png|Emissions flux of ALICE (moles/s).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were given the task&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You should now make the UKCA code changes to add your emission into the &#039;&#039;&#039;ALICE&#039;&#039;&#039; tracer. Use STASH code &amp;lt;tt&amp;gt;s50i315&amp;lt;/tt&amp;gt; for the diagnostic and output this to the &#039;&#039;&#039;UPA&#039;&#039;&#039; stream as a 3-hour mean.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You were given the hints&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You will need to add-in the molar mass of ALICE. You can calculate this from the mass of air and the conversion factor defined in [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_3#Task_3.1:_Include_ALICE_and_BOB|Task 3.1]].&#039;&#039;&lt;br /&gt;
* &#039;&#039;You will need to add code to allow a diagnostic of the emission to be output.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once you have made the required code and Rose changes, you should now see that the ALICE tracer now looks a bit like the emissions field you created in [[#Task_8.1:_Create_a_new_NetCDF_emissions_file|Task 8.1]].&lt;br /&gt;
&lt;br /&gt;
The specific Rose changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337770/d/u/5/1/6/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/um/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/um/rose-app.conf	(revision 337756)&lt;br /&gt;
 +++ app/um/rose-app.conf	(revision 337770)&lt;br /&gt;
 @@ -3278,7 +3278,8 @@&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_C5H8.nc&#039;,&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/biogenic/v1/biogenic/MEGAN-MACC_biogenic_MeOH_clim_2001-2010.nc&#039;,&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_CO.nc&#039;,&lt;br /&gt;
 -             =&#039;/home/vagrant/ukca_emiss_CO.nc&#039;&lt;br /&gt;
 +             =&#039;/home/vagrant/ukca_emiss_CO.nc&#039;,&lt;br /&gt;
 +             =&#039;/home/vagrant/ukca_emiss_ALICE.nc&#039;&lt;br /&gt;
  ukca_h1202mmr=3.788e-13&lt;br /&gt;
  ukca_h1211mmr=2.225e-11&lt;br /&gt;
  ukca_h1301mmr=1.363e-11&lt;br /&gt;
 @@ -4348,6 +4349,14 @@&lt;br /&gt;
  tim_name=&#039;T3HMN&#039;&lt;br /&gt;
  use_name=&#039;UPA&#039;&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_streq(50315_f7d499b0)]&lt;br /&gt;
 +dom_name=&#039;DIAG&#039;&lt;br /&gt;
 +isec=50&lt;br /&gt;
 +item=315&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;T3HMN&#039;&lt;br /&gt;
 +use_name=&#039;UPA&#039;&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_streq(51001_3e6241a4)]&lt;br /&gt;
  dom_name=&#039;DP27CCM&#039;&lt;br /&gt;
  isec=51&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task10.2/Task10.2_rose.patch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specific UKCA changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/changeset/7784/main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: src/control/core/diagnostics/ukca_emdiags_struct_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/diagnostics/ukca_emdiags_struct_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/diagnostics/ukca_emdiags_struct_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -65,8 +65,9 @@&lt;br /&gt;
    LOGICAL :: l_em_etcho&lt;br /&gt;
    LOGICAL :: l_em_hoch2cho&lt;br /&gt;
    LOGICAL :: l_em_mek&lt;br /&gt;
 +  ! UKCA Tutorial&lt;br /&gt;
 +  LOGICAL :: l_em_alice&lt;br /&gt;
  &lt;br /&gt;
 -&lt;br /&gt;
    ! Pointers to hold emission diagnostics&lt;br /&gt;
    REAL, POINTER :: em_no     (:,:)&lt;br /&gt;
    REAL, POINTER :: em_ch4    (:,:)&lt;br /&gt;
 @@ -104,6 +105,8 @@&lt;br /&gt;
    REAL, POINTER :: em_etcho   (:,:)&lt;br /&gt;
    REAL, POINTER :: em_hoch2cho(:,:)&lt;br /&gt;
    REAL, POINTER :: em_mek     (:,:)&lt;br /&gt;
 +  ! UKCA Tutorial&lt;br /&gt;
 +  REAL, POINTER :: em_alice   (:,:)&lt;br /&gt;
  &lt;br /&gt;
  END TYPE emdiags_struct&lt;br /&gt;
  &lt;br /&gt;
 Index: src/control/core/diagnostics/ukca_emiss_diags_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/diagnostics/ukca_emiss_diags_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/diagnostics/ukca_emiss_diags_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -495,6 +495,15 @@&lt;br /&gt;
                   emdiags%em_mek (:,:), row_length, rows)&lt;br /&gt;
  END IF&lt;br /&gt;
  &lt;br /&gt;
 +!---------------------------------------------------------------------&lt;br /&gt;
 +! Sec 50, item 315: ALICE surface emissions for UKCA Tutorial&lt;br /&gt;
 +item = get_emdiag_stash (&#039;ALICE     &#039;)&lt;br /&gt;
 +IF (sf(item, section)) THEN&lt;br /&gt;
 +  CALL copydiag (stashwork (si(item,section,im_index):                         &amp;amp;&lt;br /&gt;
 +                 si_last(item,section,im_index)),                              &amp;amp;&lt;br /&gt;
 +                 emdiags%em_alice (:,:), row_length, rows)&lt;br /&gt;
 +END IF&lt;br /&gt;
 +&lt;br /&gt;
  IF (lhook) CALL dr_hook(ModuleName//&#039;:&#039;//RoutineName,zhook_out,zhook_handle)&lt;br /&gt;
  &lt;br /&gt;
  RETURN&lt;br /&gt;
 Index: src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -121,6 +121,8 @@&lt;br /&gt;
    emdiags%l_em_etcho   = .FALSE.&lt;br /&gt;
    emdiags%l_em_hoch2cho= .FALSE.&lt;br /&gt;
    emdiags%l_em_mek     = .FALSE.&lt;br /&gt;
 +  ! UKCA Tutorial&lt;br /&gt;
 +  emdiags%l_em_alice   = .FALSE.&lt;br /&gt;
  &lt;br /&gt;
    l_first             = .FALSE.&lt;br /&gt;
  END IF&lt;br /&gt;
 @@ -535,6 +537,17 @@&lt;br /&gt;
      END IF&lt;br /&gt;
    END IF&lt;br /&gt;
  &lt;br /&gt;
 +! UKCA Tutorial&lt;br /&gt;
 +CASE (&#039;ALICE      &#039;)&lt;br /&gt;
 +  IF (emdiags%l_em_alice) THEN&lt;br /&gt;
 +    emdiags%em_alice (:,:)      = em_diags (:,:,1)&lt;br /&gt;
 +  ELSE&lt;br /&gt;
 +    IF (sf(item,section)) THEN&lt;br /&gt;
 +      ALLOCATE (emdiags%em_alice (row_length, rows))&lt;br /&gt;
 +      emdiags%em_alice (:,:)    = em_diags (:,:,1)&lt;br /&gt;
 +      emdiags%l_em_alice        = .TRUE.&lt;br /&gt;
 +    END IF&lt;br /&gt;
 +  END IF&lt;br /&gt;
  &lt;br /&gt;
  CASE DEFAULT&lt;br /&gt;
      ! Report error unless this is an aerosol emission (BC_fossil:, etc)&lt;br /&gt;
 Index: src/control/core/top_level/ukca_config_defs_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -354,7 +354,7 @@&lt;br /&gt;
      ! =======================&lt;br /&gt;
    ELSE IF (ukca_config%l_ukca_strattrop) THEN&lt;br /&gt;
      IF (.NOT. ukca_config%l_ukca_achem) THEN  ! If NOT using aerosol chemistry&lt;br /&gt;
 -      n_chem_emissions = 10&lt;br /&gt;
 +      n_chem_emissions = 11&lt;br /&gt;
        n_3d_emissions = 1       ! aircraft NOX&lt;br /&gt;
        n_aero_tracers =  0&lt;br /&gt;
        ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
 @@ -361,13 +361,13 @@&lt;br /&gt;
        em_chem_spec =                                                           &amp;amp;&lt;br /&gt;
            [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;HCHO      &#039;,                &amp;amp;&lt;br /&gt;
              &#039;C2H6      &#039;,&#039;C3H8      &#039;,&#039;Me2CO     &#039;,&#039;MeCHO     &#039;,               &amp;amp;&lt;br /&gt;
 -            &#039;C5H8      &#039;,&#039;MeOH      &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +            &#039;C5H8      &#039;,&#039;MeOH      &#039;,&#039;ALICE     &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
        n_chem_tracers = 73         ! No chem tracers&lt;br /&gt;
        nr_therm       = 221        ! thermal reactions&lt;br /&gt;
        nr_phot        = 55         ! photolytic (ATA)&lt;br /&gt;
  &lt;br /&gt;
      ELSE  ! If using aerosol chemistry&lt;br /&gt;
 -      n_chem_emissions = 19      ! em_chem_spec below&lt;br /&gt;
 +      n_chem_emissions = 20      ! em_chem_spec below&lt;br /&gt;
        n_3d_emissions   = 4       ! BC, OC, volc SO2 &amp;amp; aircraft NOX&lt;br /&gt;
  &lt;br /&gt;
        ! add extra allocation for microplastics (i_mode_setup 13)&lt;br /&gt;
 @@ -376,13 +376,13 @@&lt;br /&gt;
        END IF&lt;br /&gt;
  &lt;br /&gt;
        ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
 -      em_chem_spec(1:23) =                                                     &amp;amp;&lt;br /&gt;
 +      em_chem_spec(1:24) =                                                     &amp;amp;&lt;br /&gt;
            [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;HCHO      &#039;,                &amp;amp;&lt;br /&gt;
              &#039;C2H6      &#039;,&#039;C3H8      &#039;,&#039;Me2CO     &#039;,&#039;MeCHO     &#039;,               &amp;amp;&lt;br /&gt;
              &#039;C5H8      &#039;,&#039;BC_fossil &#039;,&#039;BC_biofuel&#039;,&#039;OM_fossil &#039;,               &amp;amp;&lt;br /&gt;
              &#039;OM_biofuel&#039;,&#039;Monoterp  &#039;,&#039;MeOH      &#039;,&#039;SO2_low   &#039;,               &amp;amp;&lt;br /&gt;
 -            &#039;SO2_high  &#039;,&#039;NH3       &#039;,&#039;DMS       &#039;,&#039;SO2_nat   &#039;,               &amp;amp;&lt;br /&gt;
 -            &#039;BC_biomass&#039;,&#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +            &#039;SO2_high  &#039;,&#039;NH3       &#039;,&#039;DMS       &#039;,&#039;ALICE     &#039;,               &amp;amp;&lt;br /&gt;
 +            &#039;SO2_nat   &#039;,&#039;BC_biomass&#039;,&#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
        IF (ukca_config%i_ukca_chem_version &amp;gt;= ichem_ver132) THEN&lt;br /&gt;
          ! Include secondary organic species from isoprene oxidation (SEC_ORG_I)&lt;br /&gt;
          n_aero_tracers = 13&lt;br /&gt;
 @@ -463,7 +463,7 @@&lt;br /&gt;
        nr_therm        = 572  ! thermal reactions&lt;br /&gt;
        nr_phot         = 121  ! photolytic reacs&lt;br /&gt;
      END IF&lt;br /&gt;
 -    n_chem_emissions  = 26&lt;br /&gt;
 +    n_chem_emissions  = 27&lt;br /&gt;
      n_3d_emissions    = 1       ! aircraft NOX&lt;br /&gt;
      ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
      em_chem_spec =                                                             &amp;amp;&lt;br /&gt;
 @@ -473,7 +473,7 @@&lt;br /&gt;
          &#039;BPINENE   &#039;,&#039;BENZENE   &#039;,&#039;TOLUENE   &#039;,&#039;oXYLENE   &#039;,                   &amp;amp;&lt;br /&gt;
          &#039;MeOH      &#039;,&#039;EtOH      &#039;,&#039;HCHO      &#039;,&#039;MeCHO     &#039;,                   &amp;amp;&lt;br /&gt;
          &#039;EtCHO     &#039;,&#039;Me2CO     &#039;,&#039;MEK       &#039;,&#039;HCOOH     &#039;,                   &amp;amp;&lt;br /&gt;
 -        &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +        &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;ALICE     &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
    ELSE ! With aerosol&lt;br /&gt;
      IF (ukca_config%i_ukca_chem_version &amp;gt;= 119) THEN  ! CRI-Strat 2 with aerosol&lt;br /&gt;
        n_chem_tracers  = 173   ! advected chemical tracers (+9, -4)&lt;br /&gt;
 @@ -494,7 +494,7 @@&lt;br /&gt;
          nr_therm      = 593        ! thermal reactions&lt;br /&gt;
        END IF&lt;br /&gt;
      END IF&lt;br /&gt;
 -    n_chem_emissions = 34      ! em_chem_spec below&lt;br /&gt;
 +    n_chem_emissions = 35      ! em_chem_spec below&lt;br /&gt;
      n_3d_emissions   = 4       ! BC, OC, volc SO2 &amp;amp; aircraft NOX&lt;br /&gt;
  &lt;br /&gt;
      ! add extra allocation for microplastics&lt;br /&gt;
 @@ -503,7 +503,7 @@&lt;br /&gt;
      END IF&lt;br /&gt;
  &lt;br /&gt;
      ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
 -    em_chem_spec(1:38) =                                                       &amp;amp;&lt;br /&gt;
 +    em_chem_spec(1:39) =                                                       &amp;amp;&lt;br /&gt;
          [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;C2H6      &#039;,                  &amp;amp;&lt;br /&gt;
            &#039;C3H8      &#039;,&#039;C4H10     &#039;,&#039;C2H4      &#039;,&#039;C3H6      &#039;,                 &amp;amp;&lt;br /&gt;
            &#039;TBUT2ENE  &#039;,&#039;C2H2      &#039;,&#039;C5H8      &#039;,&#039;APINENE   &#039;,                 &amp;amp;&lt;br /&gt;
 @@ -512,8 +512,8 @@&lt;br /&gt;
            &#039;EtCHO     &#039;,&#039;Me2CO     &#039;,&#039;MEK       &#039;,&#039;HCOOH     &#039;,                 &amp;amp;&lt;br /&gt;
            &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;BC_fossil &#039;,&#039;BC_biofuel&#039;,                 &amp;amp;&lt;br /&gt;
            &#039;OM_fossil &#039;,&#039;OM_biofuel&#039;,&#039;SO2_low   &#039;,&#039;SO2_high  &#039;,                 &amp;amp;&lt;br /&gt;
 -          &#039;NH3       &#039;,&#039;DMS       &#039;,&#039;SO2_nat   &#039;,&#039;BC_biomass&#039;,                 &amp;amp;&lt;br /&gt;
 -          &#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +          &#039;NH3       &#039;,&#039;DMS       &#039;,&#039;ALICE     &#039;,&#039;SO2_nat   &#039;,                 &amp;amp;&lt;br /&gt;
 +          &#039;BC_biomass&#039;,&#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
  &lt;br /&gt;
      ! adding microplastics to em_chem_spec&lt;br /&gt;
      IF (ukca_config%l_ukca_mode .AND. glomap_config%i_mode_setup == 13) THEN&lt;br /&gt;
 Index: src/science/core/chemistry/get_molmass_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/get_molmass_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/science/core/chemistry/get_molmass_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -50,7 +50,7 @@&lt;br /&gt;
                             m_nh3, m_no, m_no2, m_oclo, m_ocs, m_oxylene,       &amp;amp;&lt;br /&gt;
                             m_so2, m_so4, m_toluene, m_c2h2, m_tbut2ene,        &amp;amp;&lt;br /&gt;
                             m_benzene, m_etoh, m_etcho, m_mek, m_hcooh,         &amp;amp;&lt;br /&gt;
 -                           m_meco2h, m_hoch2cho, m_mp&lt;br /&gt;
 +                           m_meco2h, m_hoch2cho, m_mp, m_alice&lt;br /&gt;
  &lt;br /&gt;
  USE ereport_mod,     ONLY: ereport&lt;br /&gt;
  USE parkind1,        ONLY: jpim,  jprb     ! DrHook&lt;br /&gt;
 @@ -283,6 +283,11 @@&lt;br /&gt;
  CASE (&#039;HOCH2CHO  &#039;)&lt;br /&gt;
    get_molmass = m_hoch2cho&lt;br /&gt;
  &lt;br /&gt;
 +! -----------------------------------------&lt;br /&gt;
 +!   UKCA Tutorial Tracer&lt;br /&gt;
 +CASE (&#039;ALICE     &#039;)&lt;br /&gt;
 +  get_molmass = m_alice&lt;br /&gt;
 +&lt;br /&gt;
    ! -----------------------------------------&lt;br /&gt;
    !   Others (report warning)&lt;br /&gt;
  CASE (&#039;AGE       &#039;)&lt;br /&gt;
 Index: src/science/core/chemistry/ukca_constants.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/ukca_constants.F90	(revision 7771)&lt;br /&gt;
 +++ src/science/core/chemistry/ukca_constants.F90	(revision 7784)&lt;br /&gt;
 @@ -632,6 +632,9 @@&lt;br /&gt;
  !   - Using m_cri = 150g/mol (same as Sec_org)&lt;br /&gt;
  REAL, PARAMETER :: m_cri = 150.0&lt;br /&gt;
  &lt;br /&gt;
 +! UKCA Tutorial tracers - only ALICE is emitted&lt;br /&gt;
 +REAL, PARAMETER :: m_alice = 28.97&lt;br /&gt;
 +&lt;br /&gt;
  ! For solar calculations&lt;br /&gt;
  &lt;br /&gt;
  REAL, PARAMETER :: fxb = 23.45 / recip_pi_over_180  ! Latitude of tropic of&lt;br /&gt;
 Index: src/science/core/emissions/ukca_emiss_ctl_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/emissions/ukca_emiss_ctl_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/science/core/emissions/ukca_emiss_ctl_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -1226,7 +1226,7 @@&lt;br /&gt;
          sf(304,section) .OR. sf(305,section) .OR. sf(306,section) .OR.         &amp;amp;&lt;br /&gt;
          sf(307,section) .OR. sf(308,section) .OR. sf(309,section) .OR.         &amp;amp;&lt;br /&gt;
          sf(310,section) .OR. sf(311,section) .OR. sf(312,section) .OR.         &amp;amp;&lt;br /&gt;
 -        sf(313,section) .OR. sf(314,section) ) THEN&lt;br /&gt;
 +        sf(313,section) .OR. sf(314,section) .OR. sf(315,section) ) THEN&lt;br /&gt;
  &lt;br /&gt;
        CALL ukca_emiss_diags (row_length, rows, model_levels,                   &amp;amp;&lt;br /&gt;
                               len_stashwork50, stashwork50)&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task10.2/Task10.2_ukca.patch&lt;br /&gt;
&lt;br /&gt;
The specific UM changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/um/changeset/131866/main/branches/dev/lukeabraham/vn13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster-meta.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster-meta.conf	(revision 131864)&lt;br /&gt;
 +++ rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster-meta.conf	(revision 131866)&lt;br /&gt;
 @@ -29016,6 +29016,14 @@&lt;br /&gt;
      =&lt;br /&gt;
      =Available only if NetCDF emission system of UKCA is used&lt;br /&gt;
  &lt;br /&gt;
 +[stashmaster:code(50315)]&lt;br /&gt;
 +description=ALICE surf emissions (kg m-2 s-1)&lt;br /&gt;
 +help=Surface emission flux of ALICE (2D)&lt;br /&gt;
 +    =kg m-2 s-1&lt;br /&gt;
 +    =Valid on all timesteps&lt;br /&gt;
 +    =&lt;br /&gt;
 +    =Available only if NetCDF emission system of UKCA is used&lt;br /&gt;
 +&lt;br /&gt;
  [stashmaster:code(50331)]&lt;br /&gt;
  help=Chemical reaction flux for COS + hv =&amp;gt; CO + SO2&lt;br /&gt;
      =(moles/s)&lt;br /&gt;
 Index: rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster_A&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster_A	(revision 131864)&lt;br /&gt;
 +++ rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster_A	(revision 131866)&lt;br /&gt;
 @@ -29868,6 +29868,12 @@&lt;br /&gt;
  4|    1 |    0 | -99  -99  -99  -99  -99  -99  -99  -99  -99  -99 |&lt;br /&gt;
  5|    0 |    0 |    0 |  129 |    0 |    0 |    0 |    0 |    0 |&lt;br /&gt;
  #&lt;br /&gt;
 +1|    1 |   50 |  315 |ALICE surf emissions (kg m-2 s-1)   |&lt;br /&gt;
 +2|    0 |    0 |    1 |    1 |    5 |   -1 |   -1 |    0 |    0 |    0 |    0 |&lt;br /&gt;
 +3| 000000000000000000010000010000 | 00000000000000000001 |    3 |&lt;br /&gt;
 +4|    1 |    0 | -99  -99  -99  -99  -99  -99  -99  -99  -99  -99 |&lt;br /&gt;
 +5|    0 |    0 |    0 |  129 |    0 |    0 |    0 |    0 |    0 |&lt;br /&gt;
 +#&lt;br /&gt;
  1|    1 |   50 |  331 |RXN FLUX: COS + hv =&amp;gt; CO + SO2      |&lt;br /&gt;
  2|    0 |    0 |   17 |    1 |    2 |   10 |   11 |    0 |    0 |    0 |    0 |&lt;br /&gt;
  3| 000000000000000000110000010000 | 00000000000000000001 |    3 |&lt;br /&gt;
 Index: src/control/ukca_interface/get_emdiag_stash_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/ukca_interface/get_emdiag_stash_mod.F90	(revision 131864)&lt;br /&gt;
 +++ src/control/ukca_interface/get_emdiag_stash_mod.F90	(revision 131866)&lt;br /&gt;
 @@ -175,6 +175,9 @@&lt;br /&gt;
  CASE (&#039;MEK       &#039;)&lt;br /&gt;
    get_emdiag_stash = 314&lt;br /&gt;
  &lt;br /&gt;
 +CASE (&#039;ALICE     &#039;)&lt;br /&gt;
 +  get_emdiag_stash = 315&lt;br /&gt;
 +&lt;br /&gt;
  CASE DEFAULT&lt;br /&gt;
    ! Report error&lt;br /&gt;
    ierr = 1&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task10.2/Task10.2_um.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task10.2/&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Obtain emissions data for the species of interest.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Regrid the emissions to the correct MetUM resolution that you are using.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save these emissions as netCDF, including the required metadata that UKCA requires.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In your suite, include this file in the &amp;lt;tt&amp;gt;ukca_em_files&amp;lt;/tt&amp;gt; variable in the UKCA panel: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; UM Science Settings &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Section 34 - UKCA: UK Aerosols and Chemistry &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Emissions.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Put the species being emitted into the &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt; array in &amp;lt;tt&amp;gt; ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;, and increment &amp;lt;tt&amp;gt;n_chem_emissions&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Put the correct M_species value in &amp;lt;tt&amp;gt;ukca_constants.F90&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;get_molmass_mod.F90&amp;lt;/tt&amp;gt;, append the CASE statement with your new species.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Make diagnostics output slots for your new emissions in &amp;lt;tt&amp;gt;STASHmaster_A&amp;lt;/tt&amp;gt; and add help-text to &amp;lt;tt&amp;gt;STASHmaster-meta.conf&amp;lt;/tt&amp;gt;. &lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, using a text editor, open the &amp;lt;tt&amp;gt;app/um/rose-app.conf&amp;lt;/tt&amp;gt; file from your &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, and add the line &amp;lt;tt&amp;gt;STASHMASTER=STASHmaster&amp;lt;/tt&amp;gt; in the &amp;lt;tt&amp;gt;[env]&amp;lt;/tt&amp;gt; block, then save and close the file.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, using a text editor, open the &amp;lt;tt&amp;gt;rose-suite.conf&amp;lt;/tt&amp;gt; file from your &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, and add the following lines to the top of the file, before saving and closing it:&lt;br /&gt;
 [file:app/um/file/STASHmaster]&lt;br /&gt;
 source=fcm:um.xm_br/dev/[your MOSRS userid]/vnX.Y_your_branch_name/rose-meta/um-atmos/HEAD/etc/stash/STASHmaster@HEAD&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Point the metadata in your suite to the &amp;lt;tt&amp;gt;rose-meta/um-atmos/HEAD&amp;lt;/tt&amp;gt; of your branch&#039;s working copy.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, include your branch in your suite at: fcm_make &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; env &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Sources.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;get_emdiag_stash_mod.F90&amp;lt;/tt&amp;gt; add the species and 3-digit item code to the CASE statement.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_emdiags_struct_mod.F90&amp;lt;/tt&amp;gt; add a logical and array pointer to the derived type for your new species.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_update_emdiagstruct_mod.F90&amp;lt;/tt&amp;gt; initialise your new derived type entries, and add a block of code to copy the emissions field into the diagnostic pointer.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_emiss_diags_mod.F90&amp;lt;/tt&amp;gt; add a code block to copy the field to the &amp;lt;tt&amp;gt;stashwork&amp;lt;/tt&amp;gt; array using &amp;lt;tt&amp;gt;copydiag&amp;lt;/tt&amp;gt;/&amp;lt;tt&amp;gt;copydiag_3d&amp;lt;/tt&amp;gt;. &lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_emiss_ctl_mod.F90&amp;lt;/tt&amp;gt; add the &amp;lt;tt&amp;gt;sf(ITEM,section)&amp;lt;/tt&amp;gt; check in the IF statement protecting the call to &amp;lt;tt&amp;gt;ukca_emiss_diags&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; &amp;lt;tt&amp;gt; fcm commit&amp;lt;/tt&amp;gt; the changes to your branch.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Output your emissions diagnostic in: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run the TidyStashTransform transform macro.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save your suite.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In the &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, run &amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt; to commit your changes to the repository.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run your suite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 11|Tutorial 11]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
	<entry>
		<id>https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_10&amp;diff=11077</id>
		<title>UKCA Chemistry and Aerosol UMvn13.9 Tutorial 10</title>
		<link rel="alternate" type="text/html" href="https://www.ukca.ac.uk/wiki/index.php?title=UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_10&amp;diff=11077"/>
		<updated>2026-01-13T13:42:58Z</updated>

		<summary type="html">&lt;p&gt;Nla27: /* src/science/core/chemistry/ukca_constants.F90 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border = &amp;quot;1px&amp;quot;         &lt;br /&gt;
|- &lt;br /&gt;
| Difficulty ||  &#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;HARD&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
|- &lt;br /&gt;
| Time to Complete ||  &#039;&#039;&#039;2 or more hours&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Video instructions || https://www.youtube.com/watch?v=aysibeNdLUY&amp;amp;t=13444s &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Remember to run &amp;lt;tt&amp;gt;mosrs-cache-password&amp;lt;/tt&amp;gt;.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==What you will learn in this Tutorial==&lt;br /&gt;
&lt;br /&gt;
This is a continuation of what you learned in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]], where you regridded a set of emissions to the UM grid and included them for an existing tracers. During this tutorial you will make new UKCA netCDF emissions files and then you will learn how to add new emissions into UKCA so that they emit into one of your new tracers.&lt;br /&gt;
&lt;br /&gt;
At the end of the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_9|previous tutorial]] you will now know how to create new tracers in the UM for use by UKCA. However, while the chemical reaction(s) added in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_8|tutorial 8]] are active, as the tracers have been initialised to very small values these are not behaving as could be expected. This tutorial will teach you how to create an emissions file that the UKCA will read, and that you can then tell UKCA to use and emit into your tracer(s). These emissions will then become the higher concentrations that will drive the new chemistry.&lt;br /&gt;
&lt;br /&gt;
This example only deals with a single field. For a more detailed examples on changing emissions for all species, please see the [[Emissions for ACSIS]] webpage.&lt;br /&gt;
&lt;br /&gt;
==Task 10.1: Create a new NetCDF emissions file ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;Task 10.1:&#039;&#039;&#039; In the &amp;lt;pre&amp;gt;Tutorials/UMvn13.9/Task10.1&amp;lt;/pre&amp;gt; directory there is the file &#039;&#039;&#039;Emissions_of_ALICE.nc&#039;&#039;&#039; which is a 0.5x0.5 degree resolution surface emission field. You should regrid this file to the &#039;&#039;&#039;N48 ENDGame grid&#039;&#039;&#039;, and output it as a netCDF file that has the required netCDF metadata for a climatological surface emission without any diurnal cycle.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You should take the script you used in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]] and adapt it to work with this new file and new species that is being emitted into.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hints &lt;br /&gt;
|-&lt;br /&gt;
| Remember to change the location of the &amp;lt;tt&amp;gt;emiss&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
|-&lt;br /&gt;
| Remember to change the values of the attributes &amp;lt;tt&amp;gt;var_name&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;long_name&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;tracer_name&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| Remember to change the name of the output file set by &amp;lt;tt&amp;gt;outpath&amp;lt;/tt&amp;gt;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Solution to Task10.1==&lt;br /&gt;
&lt;br /&gt;
You were given the task:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;In the &amp;lt;pre&amp;gt;Tutorials/UMvn13.9/Task10.1&amp;lt;/pre&amp;gt; directory there is the file &#039;&#039;&#039;Emissions_of_ALICE.nc&#039;&#039;&#039; which is a 0.5x0.5 degree resolution surface emission field. You should regrid this file to the &#039;&#039;&#039;N48 ENDGame grid&#039;&#039;&#039;, and output it as a netCDF file that has the required netCDF metadata for a climatological surface emission without any diurnal cycle.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
and were given the hints:&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Remember to change the location of the &amp;lt;tt&amp;gt;emiss&amp;lt;/tt&amp;gt; file.&#039;&#039;&lt;br /&gt;
* &#039;&#039;Remember to change the values of the attributes &amp;lt;tt&amp;gt;var_name&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;long_name&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;tracer_name&amp;lt;/tt&amp;gt;.&#039;&#039;&lt;br /&gt;
* &#039;&#039;Remember to change the name of the output file set by &amp;lt;tt&amp;gt;outpath&amp;lt;/tt&amp;gt;.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
It should be straight-forward adapt your existing script to work for ALICE. If you are having problems, a solution script can be found at&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;[https://github.com/theabro/ukca/blob/master/Tutorials/UMvn13.9/notebooks/Solutions/iris_UM-UKCA_T101.ipynb Solution to Task 10.1]&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once the file has been regridded, you should see the output looking like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_alice_05x05.png|ALICE emissions prior to regridding. &lt;br /&gt;
Image:UM139_alice_n48e.png|ALICE emissions after regridding.&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A file that has been produced by the above script can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task10.1/ukca_emiss_ALICE.nc&lt;br /&gt;
&lt;br /&gt;
==Task 10.2: make the required code changes to add your emission into UKCA==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:green&amp;quot;&amp;gt;&#039;&#039;&#039;TASK 10.2:&#039;&#039;&#039; You should now make the UKCA code changes to add your emission into the &#039;&#039;&#039;ALICE&#039;&#039;&#039; tracer. Use STASH code &amp;lt;tt&amp;gt;s50i315&amp;lt;/tt&amp;gt; for the diagnostic and output this to the &#039;&#039;&#039;UPA&#039;&#039;&#039; stream as a 3-hour mean.&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;collapsible collapsed wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Hint &lt;br /&gt;
|-&lt;br /&gt;
| You will need to add-in the molar mass of ALICE. You can calculate this from the mass of air and the conversion factor defined in [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_7#Task_7.1:_Include_ALICE_and_BOB|Task 7.1]].&amp;lt;br/&amp;gt; You will need to add code to allow a diagnostic of the emission to be output.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Rose changes==&lt;br /&gt;
&lt;br /&gt;
===Include your new emissions file===&lt;br /&gt;
&lt;br /&gt;
You should include your new emissions file as you did in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5#Rose_changes|Task 5.2]].&lt;br /&gt;
&lt;br /&gt;
===Diagnostics===&lt;br /&gt;
&lt;br /&gt;
You should make your STASHmaster_A entry and add this to the STASH panel as you have done in [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_4|Tutorial 4]] and [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_5|Tutorial 5]]. &lt;br /&gt;
&lt;br /&gt;
You won&#039;t need to make any changes to the location of the STASHmaster file &#039;&#039;&#039;so long as you commit your changes prior to running the suite&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
Note that here you are making the diagnostic entry before you have made code changes that will populate this field, which are done below.&lt;br /&gt;
&lt;br /&gt;
==Code changes==&lt;br /&gt;
&lt;br /&gt;
Code changes are split between changes that need to be made to the UM and those that are made to UKCA. &lt;br /&gt;
&lt;br /&gt;
===UKCA code changes===&lt;br /&gt;
&lt;br /&gt;
====Code changes to use the new emissions====&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/top_level/ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
You will need to edit the &#039;&#039;&#039;&amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array for the scheme that you are using to include the new species that you are emitting into. By convention, these are ordered as 2D fields followed by 3D fields, with chemical emissions first and then aerosol emissions, although this order is unimportant other than the fact that the 2D emissions should be placed before the 3D emissions of &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;SO2_nat&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;BC_biomass&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;OC_biomass&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, and &#039;&#039;&#039;&amp;lt;tt&amp;gt;&#039;NO_aircrft&#039;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; if these are present. &lt;br /&gt;
&lt;br /&gt;
If the tracer is purely chemical and is always on (i.e. is not included only when aerosol chemistry is turned on) then you will need to put this in both &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt; arrays (i.e. one for the chemistry scheme without aerosols and one with aerosols). Also remember to increment this size of the &#039;&#039;&#039;&amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array, given by &#039;&#039;&#039;&amp;lt;tt&amp;gt;n_chem_emissions&amp;lt;/tt&amp;gt;&#039;&#039;&#039; variable. &lt;br /&gt;
&lt;br /&gt;
For this example you will need to make changes for StratTrop &#039;&#039;and&#039;&#039; CRI-Strat (version 2) schemes, both with an without aerosol chemistry.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/science/core/chemistry/ukca_constants.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
You will need to define the &#039;&#039;&#039;&amp;lt;tt&amp;gt;M_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; for the emitted species, e.g. &amp;lt;tt&amp;gt;m_alice&amp;lt;/tt&amp;gt;. The value of this should be consistent with the &#039;&#039;&#039;&amp;lt;tt&amp;gt;C_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt;&#039;&#039;&#039; value set in the [[UKCA_Chemistry_and_Aerosol_UMvn13.9_Tutorial_7#src.2Fscience.2Fcore.2Fchemistry.2Fukca_constants.F90 | adding new tracers tutorial]].&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/science/core/chemistry/get_molmass_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
You will need to add to the &#039;&#039;&#039;&amp;lt;tt&amp;gt;species_name&amp;lt;/tt&amp;gt;&#039;&#039;&#039; &amp;lt;tt&amp;gt;CASE&amp;lt;/tt&amp;gt; statement, to include a line such as this&lt;br /&gt;
&lt;br /&gt;
 CASE (&#039;ALICE     &#039;)&lt;br /&gt;
   get_molmass = m_alice&lt;br /&gt;
&lt;br /&gt;
for each new species that you are emitting into.&lt;br /&gt;
&lt;br /&gt;
As the &amp;lt;tt&amp;gt;M_&amp;lt;span style=&amp;quot;color:blue&amp;quot;&amp;gt;species&amp;lt;/span&amp;gt;&amp;lt;/tt&amp;gt; conversion factors are defined in the &amp;lt;tt&amp;gt;ukca_constants&amp;lt;/tt&amp;gt; module you will need to explicitly add them to the &lt;br /&gt;
&lt;br /&gt;
 USE ukca_constants, ONLY: ...&lt;br /&gt;
&lt;br /&gt;
statement at the top of the module.&lt;br /&gt;
&lt;br /&gt;
====Code changes for the emissions diagnostics====&lt;br /&gt;
&lt;br /&gt;
Additionally, by default, when emitting into a new species, the code requires you to create a diagnostic for these emissions as well. These changes are also considered below.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/diagnostics/ukca_emdiags_struct_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
This routine contains the derived type that holds the emissions fluxes for all species. You will need to add a logical (used to determine whether the output has been requested in STASH) and a pointer to a 2D or 3D array that will hold the emissions flux.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
In this routine you will need to add the initialisation of the logical added in &amp;lt;tt&amp;gt;ukca_emdiags_struct_mod.F90&amp;lt;/tt&amp;gt;, as well as a small block of code that copies the 2D/3D &amp;lt;tt&amp;gt;em_diags&amp;lt;/tt&amp;gt; data into the newly created pointer in the derived type. The logical will also need to be set to &amp;lt;tt&amp;gt;.TRUE.&amp;lt;/tt&amp;gt; if STASH output has been requested (determined by the &amp;lt;tt&amp;gt;sf(item,section)&amp;lt;/tt&amp;gt; look-up array).&lt;br /&gt;
&lt;br /&gt;
Here is it easiest to copy an existing code-block and make the necessary changes for your new emission.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/core/diagnostics/ukca_emiss_diags_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
In this routine you will add a unique code-block for this diagnostic that copies the pointer in the derived type into the &amp;lt;tt&amp;gt;stashwork&amp;lt;/tt&amp;gt; array using the &amp;lt;tt&amp;gt;copydiag&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;copydiag_3d&amp;lt;/tt&amp;gt; routines. The &amp;lt;tt&amp;gt;stashwork&amp;lt;/tt&amp;gt; array contains all the fields that will be output through STASH.&lt;br /&gt;
&lt;br /&gt;
Here is it easiest to copy an existing code-block and make the necessary changes for your new emission.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/science/core/emissions/ukca_emiss_ctl_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
The call to &#039;&#039;&#039;&amp;lt;tt&amp;gt;ukca_emiss_diags&amp;lt;/tt&amp;gt;&#039;&#039;&#039; is protected by an IF statement, and you&#039;ll need to add a check to the entry in the &#039;&#039;&#039;&amp;lt;tt&amp;gt;sf&amp;lt;/tt&amp;gt;&#039;&#039;&#039; array to see if the diagnostic is on. This should be of the format &#039;&#039;&#039;&amp;lt;tt&amp;gt;sf(N,section)&amp;lt;/tt&amp;gt;&#039;&#039;&#039;, where &#039;&#039;&#039;N&#039;&#039;&#039; is the item number of your new emissions diagnostic.&lt;br /&gt;
&lt;br /&gt;
===UM code changes===&lt;br /&gt;
&lt;br /&gt;
These code changes need to be made in a UM branch, and relate to the emissions diagnostics.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;src/control/ukca_interface/get_emdiag_stash_mod.F90&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
Once you have decided on the STASH code to use, you need to add the species and 3-digit &#039;&#039;&#039;item&#039;&#039;&#039; code to this routine in the CASE statement.&lt;br /&gt;
&lt;br /&gt;
=====&amp;lt;tt&amp;gt;STASHmaster_A&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;STASHmaster-meta.conf&amp;lt;/tt&amp;gt;=====&lt;br /&gt;
&lt;br /&gt;
These files are contained in the &amp;lt;tt&amp;gt;rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/&amp;lt;/tt&amp;gt; directory of the UM.&lt;br /&gt;
&lt;br /&gt;
You should add a diagnostic in a similar way to the [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_7#STASHmaster_A|section 34 tracers]], but in this case to &#039;&#039;&#039;section 50&#039;&#039;&#039;. It is best to copy an existing 2D (or 3D) emissions diagnostic specification into an empty slot at the end of the emissions list (e.g. section 50, item 315 for instance), and make only the required edits to that.&lt;br /&gt;
&lt;br /&gt;
Once you have made these code changes you should &#039;&#039;&#039;commit your branch&#039;&#039;&#039; to ensure that these STASHmaster changes are picked-up by your suite correctly when running.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note&#039;&#039;&#039; that 2D emissions diagnostics won&#039;t need to have a corresponding pressure-level field added in section 52. Only 3D emissions diagnostics fields will need this.&lt;br /&gt;
&lt;br /&gt;
==Worked Solution to Task 10.2==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
Image:UM139_s34i498_T102.png|Surface level (20m) concentrations (kg/kg) of ALICE after emissions have been applied.&lt;br /&gt;
Image:UM139_s34i499_T102.png|Surface level (20m) concentrations (kg/kg) of BOB after emissions have been applied.&lt;br /&gt;
Image:UM139_s50i315_T102.png|Emissions flux of ALICE (moles/s).&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You were given the task&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You should now make the UKCA code changes to add your emission into the &#039;&#039;&#039;ALICE&#039;&#039;&#039; tracer. Use STASH code &amp;lt;tt&amp;gt;s50i315&amp;lt;/tt&amp;gt; for the diagnostic and output this to the &#039;&#039;&#039;UPA&#039;&#039;&#039; stream as a 3-hour mean.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
You were given the hints&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;You will need to add-in the molar mass of ALICE. You can calculate this from the mass of air and the conversion factor defined in [[UKCA_Chemistry_and_Aerosol_UMvn13.0_Tutorial_3#Task_3.1:_Include_ALICE_and_BOB|Task 3.1]].&#039;&#039;&lt;br /&gt;
* &#039;&#039;You will need to add code to allow a diagnostic of the emission to be output.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Once you have made the required code and Rose changes, you should now see that the ALICE tracer now looks a bit like the emissions field you created in [[#Task_8.1:_Create_a_new_NetCDF_emissions_file|Task 8.1]].&lt;br /&gt;
&lt;br /&gt;
The specific Rose changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/roses-u/changeset/337770/d/u/5/1/6/trunk&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: app/um/rose-app.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- app/um/rose-app.conf	(revision 337756)&lt;br /&gt;
 +++ app/um/rose-app.conf	(revision 337770)&lt;br /&gt;
 @@ -3278,7 +3278,8 @@&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_C5H8.nc&#039;,&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/biogenic/v1/biogenic/MEGAN-MACC_biogenic_MeOH_clim_2001-2010.nc&#039;,&lt;br /&gt;
               =&#039;$UMDIR/ancil/atmos/n48e/ukca_emiss/cmip5/2000/v1/ukca_emiss_CO.nc&#039;,&lt;br /&gt;
 -             =&#039;/home/vagrant/ukca_emiss_CO.nc&#039;&lt;br /&gt;
 +             =&#039;/home/vagrant/ukca_emiss_CO.nc&#039;,&lt;br /&gt;
 +             =&#039;/home/vagrant/ukca_emiss_ALICE.nc&#039;&lt;br /&gt;
  ukca_h1202mmr=3.788e-13&lt;br /&gt;
  ukca_h1211mmr=2.225e-11&lt;br /&gt;
  ukca_h1301mmr=1.363e-11&lt;br /&gt;
 @@ -4348,6 +4349,14 @@&lt;br /&gt;
  tim_name=&#039;T3HMN&#039;&lt;br /&gt;
  use_name=&#039;UPA&#039;&lt;br /&gt;
  &lt;br /&gt;
 +[namelist:umstash_streq(50315_f7d499b0)]&lt;br /&gt;
 +dom_name=&#039;DIAG&#039;&lt;br /&gt;
 +isec=50&lt;br /&gt;
 +item=315&lt;br /&gt;
 +package=&#039;&#039;&lt;br /&gt;
 +tim_name=&#039;T3HMN&#039;&lt;br /&gt;
 +use_name=&#039;UPA&#039;&lt;br /&gt;
 +&lt;br /&gt;
  [namelist:umstash_streq(51001_3e6241a4)]&lt;br /&gt;
  dom_name=&#039;DP27CCM&#039;&lt;br /&gt;
  isec=51&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task10.2/Task10.2_rose.patch&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The specific UKCA changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/ukca/changeset/7784/main/branches/dev/lukeabraham/um13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: src/control/core/diagnostics/ukca_emdiags_struct_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/diagnostics/ukca_emdiags_struct_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/diagnostics/ukca_emdiags_struct_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -65,8 +65,9 @@&lt;br /&gt;
    LOGICAL :: l_em_etcho&lt;br /&gt;
    LOGICAL :: l_em_hoch2cho&lt;br /&gt;
    LOGICAL :: l_em_mek&lt;br /&gt;
 +  ! UKCA Tutorial&lt;br /&gt;
 +  LOGICAL :: l_em_alice&lt;br /&gt;
  &lt;br /&gt;
 -&lt;br /&gt;
    ! Pointers to hold emission diagnostics&lt;br /&gt;
    REAL, POINTER :: em_no     (:,:)&lt;br /&gt;
    REAL, POINTER :: em_ch4    (:,:)&lt;br /&gt;
 @@ -104,6 +105,8 @@&lt;br /&gt;
    REAL, POINTER :: em_etcho   (:,:)&lt;br /&gt;
    REAL, POINTER :: em_hoch2cho(:,:)&lt;br /&gt;
    REAL, POINTER :: em_mek     (:,:)&lt;br /&gt;
 +  ! UKCA Tutorial&lt;br /&gt;
 +  REAL, POINTER :: em_alice   (:,:)&lt;br /&gt;
  &lt;br /&gt;
  END TYPE emdiags_struct&lt;br /&gt;
  &lt;br /&gt;
 Index: src/control/core/diagnostics/ukca_emiss_diags_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/diagnostics/ukca_emiss_diags_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/diagnostics/ukca_emiss_diags_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -495,6 +495,15 @@&lt;br /&gt;
                   emdiags%em_mek (:,:), row_length, rows)&lt;br /&gt;
  END IF&lt;br /&gt;
  &lt;br /&gt;
 +!---------------------------------------------------------------------&lt;br /&gt;
 +! Sec 50, item 315: ALICE surface emissions for UKCA Tutorial&lt;br /&gt;
 +item = get_emdiag_stash (&#039;ALICE     &#039;)&lt;br /&gt;
 +IF (sf(item, section)) THEN&lt;br /&gt;
 +  CALL copydiag (stashwork (si(item,section,im_index):                         &amp;amp;&lt;br /&gt;
 +                 si_last(item,section,im_index)),                              &amp;amp;&lt;br /&gt;
 +                 emdiags%em_alice (:,:), row_length, rows)&lt;br /&gt;
 +END IF&lt;br /&gt;
 +&lt;br /&gt;
  IF (lhook) CALL dr_hook(ModuleName//&#039;:&#039;//RoutineName,zhook_out,zhook_handle)&lt;br /&gt;
  &lt;br /&gt;
  RETURN&lt;br /&gt;
 Index: src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/diagnostics/ukca_update_emdiagstruct_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -121,6 +121,8 @@&lt;br /&gt;
    emdiags%l_em_etcho   = .FALSE.&lt;br /&gt;
    emdiags%l_em_hoch2cho= .FALSE.&lt;br /&gt;
    emdiags%l_em_mek     = .FALSE.&lt;br /&gt;
 +  ! UKCA Tutorial&lt;br /&gt;
 +  emdiags%l_em_alice   = .FALSE.&lt;br /&gt;
  &lt;br /&gt;
    l_first             = .FALSE.&lt;br /&gt;
  END IF&lt;br /&gt;
 @@ -535,6 +537,17 @@&lt;br /&gt;
      END IF&lt;br /&gt;
    END IF&lt;br /&gt;
  &lt;br /&gt;
 +! UKCA Tutorial&lt;br /&gt;
 +CASE (&#039;ALICE      &#039;)&lt;br /&gt;
 +  IF (emdiags%l_em_alice) THEN&lt;br /&gt;
 +    emdiags%em_alice (:,:)      = em_diags (:,:,1)&lt;br /&gt;
 +  ELSE&lt;br /&gt;
 +    IF (sf(item,section)) THEN&lt;br /&gt;
 +      ALLOCATE (emdiags%em_alice (row_length, rows))&lt;br /&gt;
 +      emdiags%em_alice (:,:)    = em_diags (:,:,1)&lt;br /&gt;
 +      emdiags%l_em_alice        = .TRUE.&lt;br /&gt;
 +    END IF&lt;br /&gt;
 +  END IF&lt;br /&gt;
  &lt;br /&gt;
  CASE DEFAULT&lt;br /&gt;
      ! Report error unless this is an aerosol emission (BC_fossil:, etc)&lt;br /&gt;
 Index: src/control/core/top_level/ukca_config_defs_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/control/core/top_level/ukca_config_defs_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -354,7 +354,7 @@&lt;br /&gt;
      ! =======================&lt;br /&gt;
    ELSE IF (ukca_config%l_ukca_strattrop) THEN&lt;br /&gt;
      IF (.NOT. ukca_config%l_ukca_achem) THEN  ! If NOT using aerosol chemistry&lt;br /&gt;
 -      n_chem_emissions = 10&lt;br /&gt;
 +      n_chem_emissions = 11&lt;br /&gt;
        n_3d_emissions = 1       ! aircraft NOX&lt;br /&gt;
        n_aero_tracers =  0&lt;br /&gt;
        ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
 @@ -361,13 +361,13 @@&lt;br /&gt;
        em_chem_spec =                                                           &amp;amp;&lt;br /&gt;
            [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;HCHO      &#039;,                &amp;amp;&lt;br /&gt;
              &#039;C2H6      &#039;,&#039;C3H8      &#039;,&#039;Me2CO     &#039;,&#039;MeCHO     &#039;,               &amp;amp;&lt;br /&gt;
 -            &#039;C5H8      &#039;,&#039;MeOH      &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +            &#039;C5H8      &#039;,&#039;MeOH      &#039;,&#039;ALICE     &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
        n_chem_tracers = 73         ! No chem tracers&lt;br /&gt;
        nr_therm       = 221        ! thermal reactions&lt;br /&gt;
        nr_phot        = 55         ! photolytic (ATA)&lt;br /&gt;
  &lt;br /&gt;
      ELSE  ! If using aerosol chemistry&lt;br /&gt;
 -      n_chem_emissions = 19      ! em_chem_spec below&lt;br /&gt;
 +      n_chem_emissions = 20      ! em_chem_spec below&lt;br /&gt;
        n_3d_emissions   = 4       ! BC, OC, volc SO2 &amp;amp; aircraft NOX&lt;br /&gt;
  &lt;br /&gt;
        ! add extra allocation for microplastics (i_mode_setup 13)&lt;br /&gt;
 @@ -376,13 +376,13 @@&lt;br /&gt;
        END IF&lt;br /&gt;
  &lt;br /&gt;
        ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
 -      em_chem_spec(1:23) =                                                     &amp;amp;&lt;br /&gt;
 +      em_chem_spec(1:24) =                                                     &amp;amp;&lt;br /&gt;
            [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;HCHO      &#039;,                &amp;amp;&lt;br /&gt;
              &#039;C2H6      &#039;,&#039;C3H8      &#039;,&#039;Me2CO     &#039;,&#039;MeCHO     &#039;,               &amp;amp;&lt;br /&gt;
              &#039;C5H8      &#039;,&#039;BC_fossil &#039;,&#039;BC_biofuel&#039;,&#039;OM_fossil &#039;,               &amp;amp;&lt;br /&gt;
              &#039;OM_biofuel&#039;,&#039;Monoterp  &#039;,&#039;MeOH      &#039;,&#039;SO2_low   &#039;,               &amp;amp;&lt;br /&gt;
 -            &#039;SO2_high  &#039;,&#039;NH3       &#039;,&#039;DMS       &#039;,&#039;SO2_nat   &#039;,               &amp;amp;&lt;br /&gt;
 -            &#039;BC_biomass&#039;,&#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +            &#039;SO2_high  &#039;,&#039;NH3       &#039;,&#039;DMS       &#039;,&#039;ALICE     &#039;,               &amp;amp;&lt;br /&gt;
 +            &#039;SO2_nat   &#039;,&#039;BC_biomass&#039;,&#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
        IF (ukca_config%i_ukca_chem_version &amp;gt;= ichem_ver132) THEN&lt;br /&gt;
          ! Include secondary organic species from isoprene oxidation (SEC_ORG_I)&lt;br /&gt;
          n_aero_tracers = 13&lt;br /&gt;
 @@ -463,7 +463,7 @@&lt;br /&gt;
        nr_therm        = 572  ! thermal reactions&lt;br /&gt;
        nr_phot         = 121  ! photolytic reacs&lt;br /&gt;
      END IF&lt;br /&gt;
 -    n_chem_emissions  = 26&lt;br /&gt;
 +    n_chem_emissions  = 27&lt;br /&gt;
      n_3d_emissions    = 1       ! aircraft NOX&lt;br /&gt;
      ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
      em_chem_spec =                                                             &amp;amp;&lt;br /&gt;
 @@ -473,7 +473,7 @@&lt;br /&gt;
          &#039;BPINENE   &#039;,&#039;BENZENE   &#039;,&#039;TOLUENE   &#039;,&#039;oXYLENE   &#039;,                   &amp;amp;&lt;br /&gt;
          &#039;MeOH      &#039;,&#039;EtOH      &#039;,&#039;HCHO      &#039;,&#039;MeCHO     &#039;,                   &amp;amp;&lt;br /&gt;
          &#039;EtCHO     &#039;,&#039;Me2CO     &#039;,&#039;MEK       &#039;,&#039;HCOOH     &#039;,                   &amp;amp;&lt;br /&gt;
 -        &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +        &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;ALICE     &#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
    ELSE ! With aerosol&lt;br /&gt;
      IF (ukca_config%i_ukca_chem_version &amp;gt;= 119) THEN  ! CRI-Strat 2 with aerosol&lt;br /&gt;
        n_chem_tracers  = 173   ! advected chemical tracers (+9, -4)&lt;br /&gt;
 @@ -494,7 +494,7 @@&lt;br /&gt;
          nr_therm      = 593        ! thermal reactions&lt;br /&gt;
        END IF&lt;br /&gt;
      END IF&lt;br /&gt;
 -    n_chem_emissions = 34      ! em_chem_spec below&lt;br /&gt;
 +    n_chem_emissions = 35      ! em_chem_spec below&lt;br /&gt;
      n_3d_emissions   = 4       ! BC, OC, volc SO2 &amp;amp; aircraft NOX&lt;br /&gt;
  &lt;br /&gt;
      ! add extra allocation for microplastics&lt;br /&gt;
 @@ -503,7 +503,7 @@&lt;br /&gt;
      END IF&lt;br /&gt;
  &lt;br /&gt;
      ALLOCATE(em_chem_spec(n_chem_emissions+n_3d_emissions))&lt;br /&gt;
 -    em_chem_spec(1:38) =                                                       &amp;amp;&lt;br /&gt;
 +    em_chem_spec(1:39) =                                                       &amp;amp;&lt;br /&gt;
          [&#039;NO        &#039;,&#039;CH4       &#039;,&#039;CO        &#039;,&#039;C2H6      &#039;,                  &amp;amp;&lt;br /&gt;
            &#039;C3H8      &#039;,&#039;C4H10     &#039;,&#039;C2H4      &#039;,&#039;C3H6      &#039;,                 &amp;amp;&lt;br /&gt;
            &#039;TBUT2ENE  &#039;,&#039;C2H2      &#039;,&#039;C5H8      &#039;,&#039;APINENE   &#039;,                 &amp;amp;&lt;br /&gt;
 @@ -512,8 +512,8 @@&lt;br /&gt;
            &#039;EtCHO     &#039;,&#039;Me2CO     &#039;,&#039;MEK       &#039;,&#039;HCOOH     &#039;,                 &amp;amp;&lt;br /&gt;
            &#039;MeCO2H    &#039;,&#039;HOCH2CHO  &#039;,&#039;BC_fossil &#039;,&#039;BC_biofuel&#039;,                 &amp;amp;&lt;br /&gt;
            &#039;OM_fossil &#039;,&#039;OM_biofuel&#039;,&#039;SO2_low   &#039;,&#039;SO2_high  &#039;,                 &amp;amp;&lt;br /&gt;
 -          &#039;NH3       &#039;,&#039;DMS       &#039;,&#039;SO2_nat   &#039;,&#039;BC_biomass&#039;,                 &amp;amp;&lt;br /&gt;
 -          &#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
 +          &#039;NH3       &#039;,&#039;DMS       &#039;,&#039;ALICE     &#039;,&#039;SO2_nat   &#039;,                 &amp;amp;&lt;br /&gt;
 +          &#039;BC_biomass&#039;,&#039;OM_biomass&#039;,&#039;NO_aircrft&#039;]&lt;br /&gt;
  &lt;br /&gt;
      ! adding microplastics to em_chem_spec&lt;br /&gt;
      IF (ukca_config%l_ukca_mode .AND. glomap_config%i_mode_setup == 13) THEN&lt;br /&gt;
 Index: src/science/core/chemistry/get_molmass_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/get_molmass_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/science/core/chemistry/get_molmass_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -50,7 +50,7 @@&lt;br /&gt;
                             m_nh3, m_no, m_no2, m_oclo, m_ocs, m_oxylene,       &amp;amp;&lt;br /&gt;
                             m_so2, m_so4, m_toluene, m_c2h2, m_tbut2ene,        &amp;amp;&lt;br /&gt;
                             m_benzene, m_etoh, m_etcho, m_mek, m_hcooh,         &amp;amp;&lt;br /&gt;
 -                           m_meco2h, m_hoch2cho, m_mp&lt;br /&gt;
 +                           m_meco2h, m_hoch2cho, m_mp, m_alice&lt;br /&gt;
  &lt;br /&gt;
  USE ereport_mod,     ONLY: ereport&lt;br /&gt;
  USE parkind1,        ONLY: jpim,  jprb     ! DrHook&lt;br /&gt;
 @@ -283,6 +283,11 @@&lt;br /&gt;
  CASE (&#039;HOCH2CHO  &#039;)&lt;br /&gt;
    get_molmass = m_hoch2cho&lt;br /&gt;
  &lt;br /&gt;
 +! -----------------------------------------&lt;br /&gt;
 +!   UKCA Tutorial Tracer&lt;br /&gt;
 +CASE (&#039;ALICE     &#039;)&lt;br /&gt;
 +  get_molmass = m_alice&lt;br /&gt;
 +&lt;br /&gt;
    ! -----------------------------------------&lt;br /&gt;
    !   Others (report warning)&lt;br /&gt;
  CASE (&#039;AGE       &#039;)&lt;br /&gt;
 Index: src/science/core/chemistry/ukca_constants.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/chemistry/ukca_constants.F90	(revision 7771)&lt;br /&gt;
 +++ src/science/core/chemistry/ukca_constants.F90	(revision 7784)&lt;br /&gt;
 @@ -632,6 +632,9 @@&lt;br /&gt;
  !   - Using m_cri = 150g/mol (same as Sec_org)&lt;br /&gt;
  REAL, PARAMETER :: m_cri = 150.0&lt;br /&gt;
  &lt;br /&gt;
 +! UKCA Tutorial tracers - only ALICE is emitted&lt;br /&gt;
 +REAL, PARAMETER :: m_alice = 28.97&lt;br /&gt;
 +&lt;br /&gt;
  ! For solar calculations&lt;br /&gt;
  &lt;br /&gt;
  REAL, PARAMETER :: fxb = 23.45 / recip_pi_over_180  ! Latitude of tropic of&lt;br /&gt;
 Index: src/science/core/emissions/ukca_emiss_ctl_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/science/core/emissions/ukca_emiss_ctl_mod.F90	(revision 7771)&lt;br /&gt;
 +++ src/science/core/emissions/ukca_emiss_ctl_mod.F90	(revision 7784)&lt;br /&gt;
 @@ -1226,7 +1226,7 @@&lt;br /&gt;
          sf(304,section) .OR. sf(305,section) .OR. sf(306,section) .OR.         &amp;amp;&lt;br /&gt;
          sf(307,section) .OR. sf(308,section) .OR. sf(309,section) .OR.         &amp;amp;&lt;br /&gt;
          sf(310,section) .OR. sf(311,section) .OR. sf(312,section) .OR.         &amp;amp;&lt;br /&gt;
 -        sf(313,section) .OR. sf(314,section) ) THEN&lt;br /&gt;
 +        sf(313,section) .OR. sf(314,section) .OR. sf(315,section) ) THEN&lt;br /&gt;
  &lt;br /&gt;
        CALL ukca_emiss_diags (row_length, rows, model_levels,                   &amp;amp;&lt;br /&gt;
                               len_stashwork50, stashwork50)&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task10.2/Task10.2_ukca.patch&lt;br /&gt;
&lt;br /&gt;
The specific UM changes made are:&lt;br /&gt;
&lt;br /&gt;
* https://code.metoffice.gov.uk/trac/um/changeset/131866/main/branches/dev/lukeabraham/vn13.9_ukca_tutorial_solutions&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Index: rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster-meta.conf&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster-meta.conf	(revision 131864)&lt;br /&gt;
 +++ rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster-meta.conf	(revision 131866)&lt;br /&gt;
 @@ -29016,6 +29016,14 @@&lt;br /&gt;
      =&lt;br /&gt;
      =Available only if NetCDF emission system of UKCA is used&lt;br /&gt;
  &lt;br /&gt;
 +[stashmaster:code(50315)]&lt;br /&gt;
 +description=ALICE surf emissions (kg m-2 s-1)&lt;br /&gt;
 +help=Surface emission flux of ALICE (2D)&lt;br /&gt;
 +    =kg m-2 s-1&lt;br /&gt;
 +    =Valid on all timesteps&lt;br /&gt;
 +    =&lt;br /&gt;
 +    =Available only if NetCDF emission system of UKCA is used&lt;br /&gt;
 +&lt;br /&gt;
  [stashmaster:code(50331)]&lt;br /&gt;
  help=Chemical reaction flux for COS + hv =&amp;gt; CO + SO2&lt;br /&gt;
      =(moles/s)&lt;br /&gt;
 Index: rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster_A&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster_A	(revision 131864)&lt;br /&gt;
 +++ rose-meta/um-atmos/HEAD/etc/stash/STASHmaster/STASHmaster_A	(revision 131866)&lt;br /&gt;
 @@ -29868,6 +29868,12 @@&lt;br /&gt;
  4|    1 |    0 | -99  -99  -99  -99  -99  -99  -99  -99  -99  -99 |&lt;br /&gt;
  5|    0 |    0 |    0 |  129 |    0 |    0 |    0 |    0 |    0 |&lt;br /&gt;
  #&lt;br /&gt;
 +1|    1 |   50 |  315 |ALICE surf emissions (kg m-2 s-1)   |&lt;br /&gt;
 +2|    0 |    0 |    1 |    1 |    5 |   -1 |   -1 |    0 |    0 |    0 |    0 |&lt;br /&gt;
 +3| 000000000000000000010000010000 | 00000000000000000001 |    3 |&lt;br /&gt;
 +4|    1 |    0 | -99  -99  -99  -99  -99  -99  -99  -99  -99  -99 |&lt;br /&gt;
 +5|    0 |    0 |    0 |  129 |    0 |    0 |    0 |    0 |    0 |&lt;br /&gt;
 +#&lt;br /&gt;
  1|    1 |   50 |  331 |RXN FLUX: COS + hv =&amp;gt; CO + SO2      |&lt;br /&gt;
  2|    0 |    0 |   17 |    1 |    2 |   10 |   11 |    0 |    0 |    0 |    0 |&lt;br /&gt;
  3| 000000000000000000110000010000 | 00000000000000000001 |    3 |&lt;br /&gt;
 Index: src/control/ukca_interface/get_emdiag_stash_mod.F90&lt;br /&gt;
 ===================================================================&lt;br /&gt;
 --- src/control/ukca_interface/get_emdiag_stash_mod.F90	(revision 131864)&lt;br /&gt;
 +++ src/control/ukca_interface/get_emdiag_stash_mod.F90	(revision 131866)&lt;br /&gt;
 @@ -175,6 +175,9 @@&lt;br /&gt;
  CASE (&#039;MEK       &#039;)&lt;br /&gt;
    get_emdiag_stash = 314&lt;br /&gt;
  &lt;br /&gt;
 +CASE (&#039;ALICE     &#039;)&lt;br /&gt;
 +  get_emdiag_stash = 315&lt;br /&gt;
 +&lt;br /&gt;
  CASE DEFAULT&lt;br /&gt;
    ! Report error&lt;br /&gt;
    ierr = 1&lt;br /&gt;
&lt;br /&gt;
These differences can be found here:&lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/worked_solutions/Task10.2/Task10.2_um.patch&lt;br /&gt;
&lt;br /&gt;
Sample output from this task can be found at &lt;br /&gt;
&lt;br /&gt;
 Tutorials/UMvn13.9/sample_output/Task10.2/&lt;br /&gt;
&lt;br /&gt;
==Checklist==&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Obtain emissions data for the species of interest.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Regrid the emissions to the correct MetUM resolution that you are using.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save these emissions as netCDF, including the required metadata that UKCA requires.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In your suite, include this file in the &amp;lt;tt&amp;gt;ukca_em_files&amp;lt;/tt&amp;gt; variable in the UKCA panel: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; UM Science Settings &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Section 34 - UKCA: UK Aerosols and Chemistry &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Emissions.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Put the species being emitted into the &amp;lt;tt&amp;gt;em_chem_spec&amp;lt;/tt&amp;gt; array in &amp;lt;tt&amp;gt; ukca_config_defs_mod.F90&amp;lt;/tt&amp;gt;, and increment &amp;lt;tt&amp;gt;n_chem_emissions&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Put the correct M_species value in &amp;lt;tt&amp;gt;ukca_constants.F90&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;get_molmass_mod.F90&amp;lt;/tt&amp;gt;, append the CASE statement with your new species.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Make diagnostics output slots for your new emissions in &amp;lt;tt&amp;gt;STASHmaster_A&amp;lt;/tt&amp;gt; and add help-text to &amp;lt;tt&amp;gt;STASHmaster-meta.conf&amp;lt;/tt&amp;gt;. &lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, using a text editor, open the &amp;lt;tt&amp;gt;app/um/rose-app.conf&amp;lt;/tt&amp;gt; file from your &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, and add the line &amp;lt;tt&amp;gt;STASHMASTER=STASHmaster&amp;lt;/tt&amp;gt; in the &amp;lt;tt&amp;gt;[env]&amp;lt;/tt&amp;gt; block, then save and close the file.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, using a text editor, open the &amp;lt;tt&amp;gt;rose-suite.conf&amp;lt;/tt&amp;gt; file from your &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, and add the following lines to the top of the file, before saving and closing it:&lt;br /&gt;
 [file:app/um/file/STASHmaster]&lt;br /&gt;
 source=fcm:um.xm_br/dev/[your MOSRS userid]/vnX.Y_your_branch_name/rose-meta/um-atmos/HEAD/etc/stash/STASHmaster@HEAD&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Point the metadata in your suite to the &amp;lt;tt&amp;gt;rose-meta/um-atmos/HEAD&amp;lt;/tt&amp;gt; of your branch&#039;s working copy.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; If required, include your branch in your suite at: fcm_make &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; env &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Sources.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;get_emdiag_stash_mod.F90&amp;lt;/tt&amp;gt; add the species and 3-digit item code to the CASE statement.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_emdiags_struct_mod.F90&amp;lt;/tt&amp;gt; add a logical and array pointer to the derived type for your new species.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_update_emdiagstruct_mod.F90&amp;lt;/tt&amp;gt; initialise your new derived type entries, and add a block of code to copy the emissions field into the diagnostic pointer.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_emiss_diags_mod.F90&amp;lt;/tt&amp;gt; add a code block to copy the field to the &amp;lt;tt&amp;gt;stashwork&amp;lt;/tt&amp;gt; array using &amp;lt;tt&amp;gt;copydiag&amp;lt;/tt&amp;gt;/&amp;lt;tt&amp;gt;copydiag_3d&amp;lt;/tt&amp;gt;. &lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In &amp;lt;tt&amp;gt;ukca_emiss_ctl_mod.F90&amp;lt;/tt&amp;gt; add the &amp;lt;tt&amp;gt;sf(ITEM,section)&amp;lt;/tt&amp;gt; check in the IF statement protecting the call to &amp;lt;tt&amp;gt;ukca_emiss_diags&amp;lt;/tt&amp;gt;.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; &amp;lt;tt&amp;gt; fcm commit&amp;lt;/tt&amp;gt; the changes to your branch.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Output your emissions diagnostic in: um &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; namelist &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; Model Input and Output &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests and Profiles &amp;lt;math&amp;gt;\rightarrow&amp;lt;/math&amp;gt; STASH Requests.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run the TidyStashTransform transform macro.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Save your suite.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; In the &amp;lt;tt&amp;gt;roses/[SUITE-ID]&amp;lt;/tt&amp;gt; directory, run &amp;lt;tt&amp;gt;fcm commit&amp;lt;/tt&amp;gt; to commit your changes to the repository.&lt;br /&gt;
: &amp;lt;span style=&amp;quot;font-size:20px&amp;quot;&amp;gt;☐&amp;lt;/span&amp;gt; Run your suite.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol UMvn13.9 Tutorial 11|Tutorial 11]]&lt;br /&gt;
&lt;br /&gt;
[[UKCA Chemistry and Aerosol Tutorials at UMvn13.9]]&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;Written by [[User:Nla27 | Luke Abraham]] 2025&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Nla27</name></author>
	</entry>
</feed>