Skip to main content

ROMS Communication Toolbox: Python utilities to format text input for and run simulations of the Regional Ocean Modeling System (ROMS)

Project description

romscom: ROMS Communication Toolbox

This python toolbox provides tools to communicate with the Regional Ocean Modeling System (ROMS) model. The primary goal of this toolbox is to allow ROMS simulations to be run programmatically, simplifying tasks such as resetting time variables to extend or restart simulations, running parameter sensitivity studies, running large ensembles, or documenting a ROMS workflow.

The concept

I've paired YAML-formatted input files with python-based utilities to manipulate values.

The YAML files mimic the original ROMS standard input format, with key/value pairs for each ROMS input parameter. This format is easy to read by a human (especially with a text editor with YAML syntax highlighting), and allows for the same amount of ample commenting as in the traditional input files. These YAML files offer an advantage over the traditional standard input in that they can be (easily) read by high-level computing languages (like python) and then manipulated programmatically.

With this YAML/dictionary idea at its base, the toolbox then adds tools to maniplate ROMS I/O in order to prepare, run, and check in on simulations. In particular, it offers tools to:

  • Convert between YAML files, python dictionaries, and traditional ROMS standard input format
  • Manipulate time-related variables using dates and timedeltas, allowing more intuitive modification of ROMS start date, time step, archiving options, etc.
  • Examine existing output files to restart a simulation that was paused or crashed
  • Runs ROMS past periods of instability (leading to blow-ups) by temporarily reducing the model time step

See the included documentation for a more detailed description, examples of usage, and function syntax and documentation.

Installation and use

The toolbox can be installed into your environment of choice from PyPI:

pip install romscom

or conda-forge:

conda install -c conda-forge romscom 

Once installed, the primary and accessory functions from this package can be accessed in python via:

import romscom.romscom
import romscom.rcutils

Full function help, including syntax descriptions, can be accessed via the help command:

help(romscom.romscom) # All primary functions
help(romscom.rcutils) # All utility functions
help(romscom.romscom.runtodate) # Single function

This same documentation can also be viewed on the documentation website References pages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

romscom-2025.6.2.tar.gz (763.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

romscom-2025.6.2-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file romscom-2025.6.2.tar.gz.

File metadata

  • Download URL: romscom-2025.6.2.tar.gz
  • Upload date:
  • Size: 763.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for romscom-2025.6.2.tar.gz
Algorithm Hash digest
SHA256 d760437cb071413bfd981231556db4622b0218d5823b23fe1d603761ce3cd880
MD5 bfc30a5fe08bb4d77f8182bd57af07bb
BLAKE2b-256 c33ba61f770b518f2d2eac5acc859102808274b6440fbe7f9ac3b731086dc5ab

See more details on using hashes here.

File details

Details for the file romscom-2025.6.2-py3-none-any.whl.

File metadata

  • Download URL: romscom-2025.6.2-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for romscom-2025.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5eaa6aa82901ebd7f4e4dd79014504ac311f7d45b2c124014c8dea5fc0066b90
MD5 3edbee583100a99a71cc952e4dcd073b
BLAKE2b-256 bf1e4bd050c6b92f70a9d5d153f2002da06dde810c1892874a2b54b1060c649b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page