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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file romscom-2025.6.4.tar.gz.
File metadata
- Download URL: romscom-2025.6.4.tar.gz
- Upload date:
- Size: 763.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d908a34a470b5a1703cc034c1562a72bc2d18743219348366165fba22fefc548
|
|
| MD5 |
0d0eb9d797d7299ee7d1721f5073e39e
|
|
| BLAKE2b-256 |
c1e51131e462dd43949915d123a211490cf6ec208b11137dcaefbe64a46ee7be
|
File details
Details for the file romscom-2025.6.4-py3-none-any.whl.
File metadata
- Download URL: romscom-2025.6.4-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
38c0039a6b05be368799b3cb0df24ef5e1b6ed8f17ed206a823dfcbf8636b7c5
|
|
| MD5 |
d22b95346f8337e0afff3cce57af823d
|
|
| BLAKE2b-256 |
0f2508495e99231ed1d4aaef9f84a33f270978e18069944216941e91203c9806
|