Ocean diagnostics
Ocean diagnostics in MOM6 are configured via the diag_table file, which controls all runtime diagnostic output. Full details of the diag_table format and semantics are available in the MOM6 docs.
In ACCESS-OM3, diag_table is treated as a derived file and should not be edited directly, as any manual changes may be overwritten when configurations are regenerated. Instead, it is generated from the user-editable configuration file diag_table_source.yaml using the Python helper script make_diag_table.py, which is available under /g/data/vk83/apps/make_diag_table/make_diag_table.py. Hence this documentation mainly focuses on the resulting diagnostic filename conventions, rather than the generation workflow.
ACCESS-OM3 diagnostic filename conventions
The diagnostic filename conventions used by ACCESS-OM3 configurations are summarised here. At a high level, diagnostic files follow the pattern:
<file_prefix>.<model>.<dimension>[.<field>[+<vertical_coordinate>][+d2]].<frequency>.<time_cell_method>.<datestamp>.nc
Note
In practice, filenames fall into a small number of well-defined cases, described below.
Common components
<file_prefix>: Alwaysaccess-om3,<model>: Alwaysmom6for the ocean model,<dimension>:- One of
2dor3dfor spatial diagnostics, staticfor static grid data,scalarfor scalar diagnostics.
- One of
Field name or mode token
<field>- For standard
2d/3ddiagnostics, this is the diagnostic field name. - For special cases:
staticfiles do not include a field name,scalarfiles do not include a field name and instead contain multiple scalar diagnostics in a single file.
- For standard
Note
The ACCESS-OM3 convention is to write one physical field per file, except in the two special cases above.
Temporal components
<frequency>: The output interval between records, following naming conventions given in this schema.<time_cell_method>: Specifies how values are accumulated within each output interval, such as "mean", "max", "min", "snap" etc.<datestamp>: Uses FMS time-string formatting, such as%4yr(4-digit year), other options can be%dy(day),%mo(month),%hr(hour),%mn(minute),%sc("second") etc. The datestamp indicates the frequency at which new files are written. E.g.YYYYindicates yearly,YYYY-MMindicates monthly etc.
Note
static files do not include any temporal components
Optional spatial components
<vertical_coordinate>: Is included only for non-native vertical coordinates, such asz,rho2etc-
d2: Indicates half-resolution (downsampling) diagnostics. This is only supported for standard2d/3dspatial diagnostics and requires:NIGLOBAL/Layout_Xdivisible by 2NJGLOBAL/Layout_Ydivisible by 2
where
NIGLOBALandNJGLOBALare the global horizontal grid sizes, andLayout_X,Layout_Yare the processor layouts. Related issue was discussed here.
Practical filename cases
In practice, with the above conventions ACCESS-OM3 uses three distinct filename classes.
1. Standard 2D / 3D diagnostics (most common)
access-om3.mom6.<2d|3d>.<field_name>[+<vertical_coordinate>][+d2].<frequency>.<time_cell_method>.<datestamp>.nc
Example:
access-om3.mom6.3d.thkcello+rho2+d2.1mon.mean.1990.nc
- One
2dor3ddiagnostic field per file, <vertical_coordinate>is included only for non-native vertical coordinates (e.g.z,rho2),d2indicates half-resolution output and is supported only for standard2d/3ddiagnostics.
2. Static grid diagnostics
Static grid variables are written once per run and grouped into a single file.
access-om3.mom6.static.nc
- No field name,
- No frequency, time method, or datestamp,
- No
d2support - Contains multiple static grid variables
3. Scalar (global integral) diagnostics
Global scalar diagnostics are grouped into a single file.
access-om3.mom6.scalar.<frequency>.<time_cell_method>.<datestamp>.nc
Example:
access-om3.mom6.scalar.1day.snap.1990.nc
Characteristics:
- No field name
- Contains multiple scalar diagnostics (e.g.
masso,soga,thetaoga,tosga)