Skip to content

Full ocean namelist values #32

@aidanheerdegen

Description

@aidanheerdegen

Currently the summary is finding all namelist variables that are defined in the various model namelists, e.g. ocean/input.nml, ice/cice_in.nml etc.

Whilst the cice namelists seem to have most (all?) of the namelist variables in the namelist files, MOM5 only has a small subset of the variables, so we're not capturing the default values of many variables.

From the point of view of having a database of everything that went into a model this is a significant knowledge gap.

One option is to add some code to output the namelists before they are updated by reading from the namelist files. Whilst this is potentially a good idea for the future, it doesn't help with historical runs.

We can recover all the ocean namelist variables from the stdout logfile, as MOM5 outputs them from there using f90nml, e.g.

f90nml --format nml <( awk '1;/CICE_COMMIT_HASH/{exit}'  archive/output731/access-om2.out )

This produces 68 namelist groups, with 1434 lines of output.

Note I've used awk to cut down the amount of text f90nml has to parse, with some of the larger files it could take a long time to pull out the namelists which are just at the beginning of the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions