regional-mom6 workflow#
regional-mom6 sets up all the data and files for running a basic regional configuration case of MOM6. This includes:
Run files like
MOM_override,MOM_input, anddiag_table.Boundary condition files like velocity, tracers, tides.
Basic input files like horizontal grid (
hgrid) and the bathymetry.Initial condition files.
regional-mom6 provides the user methods for grabbing and organising the files.
regional-mom6 organizes all files into two directories: an input directory and a run directory.
The input directory includes all of the data we need for our regional case. The run directory includes all of the parameters and outputs (diags) we want for our model. Please see the structure primer document for more information. The rest of the directories include the data like the initial and the boundary conditions.
Therefore, to start for the user to use regional-mom6, they should have two (empty or not) directories for the input and run files, as well as directories for their input data.
The user may also need to provide a path to FRE_tools. (This depends on the HPC machine used, e.g., on Australia’s Gadi this is required, on NCAR-Derecho/Casper this is not required.)
regional_mom6.regional_mom6.experiment
To create all these files, regional-mom6 uses a class called experiment that holds all of the parameters and methods. Users can follow a few quick steps to setup their cases:
Initialise an experiment with all the directories and parameters wanted. The initalisation can also create the horizontal grid and vertical coordinate or read two files called
hgrid.ncandvcoord.ncfrom theinputdirectory.Call different
setup_this_and_thatmethods to setup all the data needed for the case (bathymetry, initial condition, velocity, tracers, tides).Finally, call
setup_run_directoryto setup the run files likeMOM_overridefor their cases.Based on how MOM6 is configured on the machine used, there may be follow-up steps unique to each situation. regional-mom6 provides all of what the user needs to run MOM6.
There are a few convenience functions to help support the process.
Very light read and write config file functions to easily save experiments
A
change_MOM_parametermethod to adjustMOM_parametervalues from within Python.