Skip to main content

regional-mom6

Python package for automatic generation of regional configurations for the Modular Ocean Model version 6 (MOM6)

Repo status conda forge pypi Documentation Status

License codecov Code style: black

status

Features

  • Generates multiple types of horizontal and vertical grid utilising NCAR's MOM6_forge
  • Removes non-advective cells from the bathymetry that cause the model to crash.
  • Interpolates input data, which can be on any Arakawa grid at any resolution. No pre-processing of forcing datasets is generally required.
  • Converts ERA5 surface data to fields appropriate for MOM6 surface forcing
  • Handle slicing across 'seams' in of the forcing input datasets (e.g., when the regional configuration includes longitude 180 and the forcing longitude is defined in [-180, 180]).
  • Handles metadata encoding.
  • Creates directory structure with the configuration files as expected by MOM6.
  • Produces MOM6 namelist files matching your experiment

Regional-mom6 is designed to be machine agnostic as much as possible, meaning that as long as you have a working MOM6 executable on your computer, this package gets you most of the way towards running your MOM6 configuration. However, additional support is available for the two main institutions who use and maintain regional-mom6: COSIMA and NCAR's CROCODILE project.

Check out the documentation and try the demos.

For COSIMA / Gadi users

There's an example notebook that's designed specifically for Gadi users. This is the best place to start! Aside from the paths defined in this notebook which are gadi-specific, the other important part is right at the end: the .setup_rom3() method will set up the ACCESS-NRI supported version of MOM6 ready to run with the Payu workflow manager

For people using the Community Earth System Model Framework (CESM)

CESM users should check out the CrocoDash package wraps regional-mom6 (among other things) to set up regional models within the CESM framework.

For users outside Australia and the U.S

This package can still be used to set up your model! The only catch is that you need to supply an executable built on your machine. We maintain a machine agnostic demo on how to use regional-mom6 for everything short of running the model.

We want to hear from you

If you have any suggestions please feel free to open an issue or start a discussion. We welcome any new contributors and we are very keen to help you out along the way!

Installation

We encourage creating a new or using an existing conda environment.

Easy, clean, one liner via conda

The easiest way to install regional-mom6 is via conda.

conda install conda-forge::regional-mom6

That's it -- now enjoy!

"But I want pip, can't I install with pip?"

To install via pip is a bit more cumbersome.

A prerequisite is the binary esmpy dependency, which provides re-gridding capabilities. The easiest way to install esmpy is via conda:

conda install -c conda-forge esmpy

Alternatively, to install esmpy in a Conda-free way, follow the instructions for installing ESMPy from source. With esmpy available, we can then install regional-mom6 via pip. (If we don't have have pip, then conda install pip should do the job.)

With esmpy installed we can now install regional-mom6 via pip:

pip install regional-mom6

The above installs the version of regional-mom6 (plus any required dependencies) that corresponds to the latest tagged release of the package.

"I want to live on the edge! I want the latest developments"

To install regional-mom6 directly from the GitHub repository using pip, first install esmpy as described above. Then:

pip install git+https://github.com/COSIMA/regional-mom6.git

to get the version that corresponds to the latest commit in GitHub. Alternatively, install the version that corresponds to a particular git commit using, for example,

pip install git+https://github.com/COSIMA/regional-mom6.git@061b0ef80c7cbc04de0566df329c4ea472002f7e

Getting started

The example notebooks walk you through how to use the package using two different sets of input datasets. Please ensure that you can get at least one of these working on your setup with your MOM6 executable before trying to modify the example to suit your domain with your bathymetry, forcing, and boundary conditions.

You can download the notebooks from Github or by clicking on the download download button, e.g., at the top-right of the regional Tasmania forced by ERA5 example.

Citing

If you use regional-mom6 in research, teaching, or other activities, we would be grateful if you could mention regional-mom6 and cite our paper in JOSS:

Barnes et al., (2024). regional-mom6: A Python package for automatic generation of regional configurations for the Modular Ocean Model 6. Journal of Open Source Software, 9(100), 6857, doi:10.21105/joss.06857.

The bibtex entry for the paper is:

@article{regional-mom6-JOSS,
  doi = {10.21105/joss.06857},
  url = {https://doi.org/10.21105/joss.06857},
  year = {2024},
  publisher = {The Open Journal},
  volume = {9},
  number = {100},
  pages = {6857},
  author = {Ashley J. Barnes and Navid C. Constantinou and Angus H. Gibson and Andrew E. Kiss and Chris Chapman and John Reily and Dhruv Bhagtani and Luwei Yang},
  title = {{regional-mom6: A Python package for automatic generation of regional configurations for the Modular Ocean Model 6}},
  journal = {Journal of Open Source Software}
}

Metadata

Release files for regional-mom6 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for regional-mom6 1.0.2
File Size Uploaded
regional_mom6-1.0.2.tar.gz 2.9 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for regional-mom6 1.0.2
File Interpreter ABI Platform
regional_mom6-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 2.9 MB

Release files / regional_mom6-1.0.2.tar.gz

Download URL regional_mom6-1.0.2.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
2fd20864f01240442ea356e934487e5ff1430bff3e438a6df5fcbc4b9b04b134
BLAKE2b-256 checksum
How to use checksums
09456b2a54070c119a61d24b12ac658eab50289aa50d81d34147230eeebf1bcb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release files / regional_mom6-1.0.2-py3-none-any.whl

Download URL regional_mom6-1.0.2-py3-none-any.whl
Size 82.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
023b3fb102495ea742bd2fb1161349fd726d77afb69688e9aae61ffb8e0128d1
BLAKE2b-256 checksum
How to use checksums
c703b732d4e475cf4a9bc2e37508925c0e7097f7ec87e70def1c2f85079316d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.4

2 release files

1.0.3

2 release files

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page