Skip to content

Commit ad05884

Browse files
Merge pull request #7 from ACCESS-NRI/update_nuopc_doc
Update nuopc_config parser documentation
2 parents c615384 + 0b66e49 commit ad05884

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/access/parsers/nuopc_config.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33

44
"""Utilities to handle NUOPC configuration files.
55
6-
The `nuopc.runconfig` files use by the CESM driver, and thus by ACCESS-OM3, are a mixture of two file formats: Resource
7-
Files and Fortran Namelists.
8-
9-
At the top-level, one has the Resource Files as implemented in ESMF. From the ESMF documentation:
6+
The `nuopc.runconfig` files used by the CESM driver, and thus by the NUOPC-based ACCESS models, are a mixture of formats.
7+
At the top-level, one has the Resource Files as implemented in ESMF. From the ESMF documentation:
108
119
A Resource File (RF) is a text file consisting of list of label-value pairs. There is a limit of 1024 characters per
1210
line and the Resource File can contain a maximum of 200 records. Each label should be followed by some data, the
@@ -50,7 +48,7 @@
5048
See https://earthsystemmodeling.org/docs/release/ESMF_8_6_0/ESMF_refdoc/node6.html#SECTION06090000000000000000 for
5149
further details.
5250
53-
The CESM driver then uses tables as defined in Resource Files to store Fortran Namelists instead of simple values:
51+
The CESM driver then uses tables as defined in Resource Files to store lists of key-value pairs instead of simple values:
5452
5553
DRIVER_attributes::
5654
Verbosity = off
@@ -69,6 +67,9 @@
6967
ocn2glc_levels = 1:10:19:26:30:33:35
7068
::
7169
70+
This format of key-value pairs does not seem to be documented and, although it resembles Fortran namlists, it is not.
71+
For example, the keys are case-sensitive, which is not the case in Fortran namelists. The format used to store arrays
72+
of values is also not the same as in Fortran namelists.
7273
"""
7374

7475
from pathlib import Path

0 commit comments

Comments
 (0)